@worktif/runtime 0.3.0-edge.10 → 0.3.0-edge.11
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/out/dist/bin/index.js +22 -22
- package/out/dist/bin/purenow.js +7 -196
- package/out/dist/bin/templates/runtime-web/basic/package.json +1 -1
- package/out/dist/infra/index.js +26 -26
- package/out/dist/lambda/bundle.js +10 -10
- package/out/dist/lib/index.js +4 -4
- package/out/dist/lib/index.mjs +4 -0
- package/out/dist/src/bin/commands/build.command.d.ts +14 -0
- package/out/dist/src/bin/commands/index.d.ts +1 -0
- package/out/dist/src/bin/runtime-web-cli.d.ts +4 -0
- package/out/dist/src/core/runtime-web/factory/lambda-handler-factory.d.ts +1 -1
- package/out/dist/src/core/runtime-web/factory/lambda-handler-factory.d.ts.map +1 -1
- package/out/dist/src/infra/runtime-web/constructs/lambda-builder.d.ts +3 -0
- package/package.json +42 -20
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktif/runtime",
|
|
3
|
-
"version": "0.3.0-edge.
|
|
3
|
+
"version": "0.3.0-edge.11",
|
|
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
|
-
"
|
|
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
|
-
"
|
|
37
|
+
"require": "./out/dist/infra/index.js"
|
|
36
38
|
},
|
|
37
39
|
"./lambda": {
|
|
38
40
|
"types": "./out/dist/src/core/index.d.ts",
|
|
39
|
-
"
|
|
41
|
+
"require": "./out/dist/lambda/bundle.js"
|
|
40
42
|
},
|
|
41
43
|
"./bin": {
|
|
42
44
|
"types": "./out/dist/src/bin/index.d.ts",
|
|
43
|
-
"
|
|
45
|
+
"require": "./out/dist/bin/index.js"
|
|
44
46
|
},
|
|
45
47
|
"./cli": {
|
|
46
48
|
"types": "./out/dist/src/bin/index.d.ts",
|
|
47
|
-
"
|
|
49
|
+
"require": "./out/dist/bin/purenow.js"
|
|
48
50
|
},
|
|
49
51
|
"./core": {
|
|
50
52
|
"types": "./out/dist/src/core/index.d.ts",
|
|
51
|
-
"
|
|
53
|
+
"require": "./out/dist/src/core/index.js"
|
|
52
54
|
},
|
|
53
55
|
"./utils": {
|
|
54
56
|
"types": "./out/dist/src/utils/index.d.ts",
|
|
55
|
-
"
|
|
57
|
+
"require": "./out/dist/src/utils/index.js"
|
|
56
58
|
},
|
|
57
59
|
"./types": {
|
|
58
60
|
"types": "./out/dist/src/types/index.d.ts",
|
|
59
|
-
"
|
|
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
|
-
"
|
|
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
|
|
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:
|
|
76
|
-
"build:react:verify": "yarn run build:
|
|
77
|
-
"
|
|
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:
|
|
80
|
-
"cli:build:
|
|
81
|
-
"cli:build:
|
|
82
|
-
"cli:build:
|
|
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",
|
|
@@ -111,6 +130,7 @@
|
|
|
111
130
|
"@testing-library/user-event": "^14.6.1",
|
|
112
131
|
"@types/aws-lambda": "^8.10.149",
|
|
113
132
|
"@types/jest": "^29.5.0",
|
|
133
|
+
"@types/jsdom": "^27.0.0",
|
|
114
134
|
"@types/node": "^22.15.29",
|
|
115
135
|
"@types/react": "^19.2.7",
|
|
116
136
|
"@types/react-dom": "^19.1.6",
|
|
@@ -123,6 +143,7 @@
|
|
|
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
|
}
|