@worktif/runtime 0.3.0-edge.10 → 0.3.0-edge.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@worktif/runtime",
3
- "version": "0.3.0-edge.10",
3
+ "version": "0.3.0-edge.12",
4
4
  "description": "Serverless web framework running on AWS Lambda with support for server-side rendering, caching, and CI/CD.",
5
5
  "repository": "git@bitbucket.org:worktif/runtime-target.git",
6
6
  "author": "Raman Marozau <raman@worktif.com>",
7
7
  "license": "Elastic-2.0",
8
8
  "readme": "README.md",
9
9
  "main": "out/dist/lib/index.js",
10
+ "module": "out/dist/lib/index.mjs",
10
11
  "types": "out/dist/lib/index.d.ts",
11
12
  "files": [
12
13
  "out/dist/lib/**/*",
@@ -28,39 +29,40 @@
28
29
  "exports": {
29
30
  ".": {
30
31
  "types": "./out/dist/lib/index.d.ts",
31
- "default": "./out/dist/lib/index.js"
32
+ "import": "./out/dist/lib/index.mjs",
33
+ "require": "./out/dist/lib/index.js"
32
34
  },
33
35
  "./infra": {
34
36
  "types": "./out/dist/src/infra/index.d.ts",
35
- "default": "./out/dist/infra/index.js"
37
+ "require": "./out/dist/infra/index.js"
36
38
  },
37
39
  "./lambda": {
38
40
  "types": "./out/dist/src/core/index.d.ts",
39
- "default": "./out/dist/lambda/bundle.js"
41
+ "require": "./out/dist/lambda/bundle.js"
40
42
  },
41
43
  "./bin": {
42
44
  "types": "./out/dist/src/bin/index.d.ts",
43
- "default": "./out/dist/bin/index.js"
45
+ "require": "./out/dist/bin/index.js"
44
46
  },
45
47
  "./cli": {
46
48
  "types": "./out/dist/src/bin/index.d.ts",
47
- "default": "./out/dist/bin/purenow.js"
49
+ "require": "./out/dist/bin/purenow.js"
48
50
  },
49
51
  "./core": {
50
52
  "types": "./out/dist/src/core/index.d.ts",
51
- "default": "./out/dist/src/core/index.js"
53
+ "require": "./out/dist/src/core/index.js"
52
54
  },
53
55
  "./utils": {
54
56
  "types": "./out/dist/src/utils/index.d.ts",
55
- "default": "./out/dist/src/utils/index.js"
57
+ "require": "./out/dist/src/utils/index.js"
56
58
  },
57
59
  "./types": {
58
60
  "types": "./out/dist/src/types/index.d.ts",
59
- "default": "./out/dist/src/types/index.js"
61
+ "require": "./out/dist/src/types/index.js"
60
62
  },
61
63
  "./runtime-web": {
62
64
  "types": "./out/dist/src/lib/runtime-web/index.d.ts",
63
- "default": "./out/dist/lib/runtime-web/index.js"
65
+ "require": "./out/dist/lib/runtime-web/index.js"
64
66
  },
65
67
  "./package.json": "./package.json"
66
68
  },
@@ -68,18 +70,35 @@
68
70
  "runtime": "./out/dist/bin/purenow.js"
69
71
  },
70
72
  "scripts": {
71
- "build": "rm -rf ./.docs && yarn run docs && rm -rf ./dist && rm -rf ./out && yarn run cli:build && yarn run cli:build:infra && yarn run cli:build:cli && yarn run cli:build:bin && node bin/deploy/copy-templates.js && yarn run types && node bin/deploy/generate-lib-types.js && node bin/deploy/validate-bundle-sizes.js",
73
+ "build": "rm -rf ./.docs && yarn run docs && rm -rf ./dist && rm -rf ./out && yarn run build:all && node bin/deploy/copy-templates.js && yarn run types && node bin/deploy/generate-lib-types.js && yarn run validate:bundles",
74
+ "build:all": "yarn run build:config && node dist/cli/build.js && yarn run validate:bundles",
75
+ "build:browser": "yarn run build:config && node dist/cli/build.js --target=react && yarn run validate:bundles",
76
+ "build:lib": "yarn run build:config && node dist/cli/build.js --target=lib && yarn run validate:bundles",
77
+ "build:lib-esm": "yarn run build:config && node dist/cli/build.js --target=lib-esm && yarn run validate:bundles",
78
+ "build:infra": "yarn run build:config && node dist/cli/build.js --target=infra && yarn run validate:bundles",
79
+ "build:cli": "yarn run build:config && node dist/cli/build.js --target=cli && yarn run validate:bundles",
80
+ "build:bin": "yarn run build:config && node dist/cli/build.js --target=bin && yarn run validate:bundles",
81
+ "build:cdk": "yarn run build:config && node dist/cli/build.js --target=cdk && yarn run validate:bundles",
72
82
  "clean": "rm -rf ./dist && rm -rf ./out && rm -rf ./.docs",
73
- "build:lambda": "yarn run build:config && node dist/cli/build.js --target=lambda && node bin/deploy/validate-bundle-sizes.js",
74
83
  "generate:html-template": "node bin/deploy/generate-html-template.js",
75
- "build:react": "yarn run build:config && node dist/cli/build.js --target=react && node bin/deploy/validate-bundle-sizes.js",
76
- "build:react:verify": "yarn run build:react && node scripts/verify-browser-bundle.js",
77
- "build:cdk": "yarn run build:config && node dist/cli/build.js --target=cdk",
84
+ "build:react": "yarn run build:browser",
85
+ "build:react:verify": "yarn run build:browser && node scripts/verify-browser-bundle.js",
86
+ "analyze:bundles": "node bin/deploy/bundle-analyzer.js",
87
+ "analyze:bundles:ci": "node bin/deploy/bundle-analyzer.js --fail-on-error",
88
+ "validate:build": "ts-node bin/deploy/validate-build.ts",
89
+ "validate:bundles": "node bin/deploy/validate-bundle-sizes.js",
90
+ "validate:dev": "node bin/deploy/dev-bundle-validator.js",
91
+ "validate:dev:react": "node bin/deploy/dev-bundle-validator.js react",
92
+ "validate:dev:lambda": "node bin/deploy/dev-bundle-validator.js lambda",
93
+ "validate:dev:cli": "runtime dev:validate",
94
+ "validate:dev:watch": "runtime dev:validate --watch",
95
+ "validate:all": "yarn validate:build react && yarn validate:build lambda && yarn validate:build lib",
78
96
  "build:config": "esbuild --bundle --platform=node bin/deploy/cloud.build/esbuild.build.ts --outfile=dist/cli/build.js --external:esbuild",
79
- "cli:build": "yarn run build:config && node dist/cli/build.js",
80
- "cli:build:infra": "yarn run build:config && node dist/cli/build.js --target=infra",
81
- "cli:build:cli": "yarn run build:config && node dist/cli/build.js --target=cli",
82
- "cli:build:bin": "yarn run build:config && node dist/cli/build.js --target=bin",
97
+ "cli:build": "yarn run build:all",
98
+ "cli:build:lib-esm": "yarn run build:lib-esm",
99
+ "cli:build:infra": "yarn run build:infra",
100
+ "cli:build:cli": "yarn run build:cli",
101
+ "cli:build:bin": "yarn run build:bin",
83
102
  "types": "tsc --emitDeclarationOnly && tsc-alias",
84
103
  "prepare": "yarn build",
85
104
  "test": "npx jest --runInBand --colors --verbose --testTimeout=20000",
@@ -102,7 +121,9 @@
102
121
  },
103
122
  "dependencies": {
104
123
  "@worktif/purenow": "^0.3.0-rc.24",
105
- "@worktif/utils": "^0.2.32"
124
+ "@worktif/utils": "^0.2.32",
125
+ "aws-cdk-lib": "^2.172.0",
126
+ "constructs": "^10.4.2"
106
127
  },
107
128
  "devDependencies": {
108
129
  "@testing-library/dom": "^10.4.1",
@@ -111,18 +132,18 @@
111
132
  "@testing-library/user-event": "^14.6.1",
112
133
  "@types/aws-lambda": "^8.10.149",
113
134
  "@types/jest": "^29.5.0",
135
+ "@types/jsdom": "^27.0.0",
114
136
  "@types/node": "^22.15.29",
115
137
  "@types/react": "^19.2.7",
116
138
  "@types/react-dom": "^19.1.6",
117
139
  "@types/react-is": "^19.0.0",
118
140
  "@types/react-router-dom": "^5.3.3",
119
141
  "@types/ws": "^8.18.1",
120
- "aws-cdk-lib": "^2.172.0",
121
142
  "aws-sdk-client-mock": "^4.1.0",
122
- "constructs": "^10.4.2",
123
143
  "fast-check": "^4.3.0",
124
144
  "jest": "^29.7.0",
125
145
  "jest-environment-jsdom": "^29.7.0",
146
+ "jsdom": "^27.3.0",
126
147
  "react": "^19.1.1",
127
148
  "react-dom": "^19.1.1",
128
149
  "react-router": "^7.7.1",
@@ -162,5 +183,6 @@
162
183
  "last 1 firefox version",
163
184
  "last 1 safari version"
164
185
  ]
165
- }
186
+ },
187
+ "sideEffects": false
166
188
  }