@aziontech/bundler 1.1.2 → 1.1.3
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/README.md +33 -33
- package/dist/{index-DPXibJ4R.js → index-dMuB6SYF.js} +2 -2
- package/dist/index.js +7 -7
- package/package.json +15 -16
package/README.md
CHANGED
|
@@ -360,49 +360,49 @@ E2E tests run daily in the [Bundler Examples](https://github.com/aziontech/bundl
|
|
|
360
360
|
Table:
|
|
361
361
|
| Test | Status |
|
|
362
362
|
| ------------------------------------ | ------ |
|
|
363
|
-
| Next 14 2 15 Middleware |
|
|
364
|
-
| Next 13 5 6 I18n |
|
|
365
|
-
| Next 12 3 4 I18n |
|
|
366
|
-
| Hexo Static |
|
|
367
|
-
| Next 13 5 6 Middleware |
|
|
368
|
-
| Next 12 3 4 Middleware |
|
|
369
|
-
| Next Node Pages 12 3 1 |
|
|
370
|
-
| Next 13 5 6 Config |
|
|
371
|
-
| Next 12 3 4 Config |
|
|
372
|
-
| Html |
|
|
373
|
-
| Next Static |
|
|
374
|
-
| Gatsby Static |
|
|
375
|
-
| Next Node Pages 12 3 1 Fs |
|
|
376
|
-
| Sveltekit Static |
|
|
377
|
-
| Vue Vite Static |
|
|
378
|
-
| Qwik Static |
|
|
379
|
-
| Opennext Ssr |
|
|
380
|
-
| Sveltekit Ssr |
|
|
381
|
-
| Next 12 Static |
|
|
382
|
-
| Hugo |
|
|
383
|
-
| Astro Static |
|
|
363
|
+
| Next 14 2 15 Middleware | ✅ |
|
|
364
|
+
| Next 13 5 6 I18n | ✅ |
|
|
365
|
+
| Next 12 3 4 I18n | ✅ |
|
|
366
|
+
| Hexo Static | ✅ |
|
|
367
|
+
| Next 13 5 6 Middleware | ✅ |
|
|
368
|
+
| Next 12 3 4 Middleware | ✅ |
|
|
369
|
+
| Next Node Pages 12 3 1 | ✅ |
|
|
370
|
+
| Next 13 5 6 Config | ✅ |
|
|
371
|
+
| Next 12 3 4 Config | ✅ |
|
|
372
|
+
| Html | ✅ |
|
|
373
|
+
| Next Static | ✅ |
|
|
374
|
+
| Gatsby Static | ✅ |
|
|
375
|
+
| Next Node Pages 12 3 1 Fs | ✅ |
|
|
376
|
+
| Sveltekit Static | ✅ |
|
|
377
|
+
| Vue Vite Static | ✅ |
|
|
378
|
+
| Qwik Static | ✅ |
|
|
379
|
+
| Opennext Ssr | ✅ |
|
|
380
|
+
| Sveltekit Ssr | ✅ |
|
|
381
|
+
| Next 12 Static | ✅ |
|
|
382
|
+
| Hugo | ✅ |
|
|
383
|
+
| Astro Static | ✅ |
|
|
384
384
|
| Simple Js Env Vars | ✅ |
|
|
385
|
-
| Eleventy Static |
|
|
385
|
+
| Eleventy Static | ✅ |
|
|
386
386
|
| Simple Js Network List | ✅ |
|
|
387
|
-
| Angular Static |
|
|
388
|
-
| React Static |
|
|
389
|
-
| Svelte Static |
|
|
387
|
+
| Angular Static | ✅ |
|
|
388
|
+
| React Static | ✅ |
|
|
389
|
+
| Svelte Static | ✅ |
|
|
390
390
|
| Stencil Static | ⚠️ |
|
|
391
|
-
| Vitepress Static |
|
|
392
|
-
| Preact Static |
|
|
393
|
-
| Vuepress Static |
|
|
394
|
-
| Nuxt Static |
|
|
395
|
-
| Docusaurus Static |
|
|
391
|
+
| Vitepress Static | ✅ |
|
|
392
|
+
| Preact Static | ✅ |
|
|
393
|
+
| Vuepress Static | ✅ |
|
|
394
|
+
| Nuxt Static | ✅ |
|
|
395
|
+
| Docusaurus Static | ✅ |
|
|
396
396
|
| Simple Js Firewall Event | ✅ |
|
|
397
|
-
| Nuxt Ssr |
|
|
397
|
+
| Nuxt Ssr | ✅ |
|
|
398
398
|
| Simple Js Network List With Firewall | ✅ |
|
|
399
|
-
| Jekyll Static |
|
|
399
|
+
| Jekyll Static | ✅ |
|
|
400
400
|
| Simple Js Esm Worker | ✅ |
|
|
401
401
|
| Simple Js Esm Node | ✅ |
|
|
402
402
|
| Simple Js Esm | ✅ |
|
|
403
403
|
| Simple Ts Esm | ✅ |
|
|
404
404
|
|
|
405
|
-
Last test run date:
|
|
405
|
+
Last test run date: 07/05/26 04:19:39 AM
|
|
406
406
|
|
|
407
407
|
## Contributing
|
|
408
408
|
|
|
@@ -900,7 +900,7 @@ const lr = { inferPreset: cr }, fr = (e) => Object.values(J).find((t) => t.metad
|
|
|
900
900
|
const a = S.join(r, o, c);
|
|
901
901
|
try {
|
|
902
902
|
const l = await h.lstat(a);
|
|
903
|
-
l.isSymbolicLink() ? await h.unlink(a) : l.isDirectory() ? await h.
|
|
903
|
+
l.isSymbolicLink() ? await h.unlink(a) : l.isDirectory() ? await h.rm(a, { recursive: !0, force: !0 }) : await h.unlink(a);
|
|
904
904
|
} catch (l) {
|
|
905
905
|
g.warn(`Failed to remove ${a}:`, l);
|
|
906
906
|
}
|
|
@@ -911,7 +911,7 @@ const lr = { inferPreset: cr }, fr = (e) => Object.values(J).find((t) => t.metad
|
|
|
911
911
|
}
|
|
912
912
|
try {
|
|
913
913
|
const i = await h.lstat(s);
|
|
914
|
-
i.isSymbolicLink() ? (await h.unlink(s), g.info(`Removed existing symlink: ${s}`)) : i.isDirectory() && (await h.
|
|
914
|
+
i.isSymbolicLink() ? (await h.unlink(s), g.info(`Removed existing symlink: ${s}`)) : i.isDirectory() && (await h.rm(s, { recursive: !0, force: !0 }), g.info(`Removed existing directory: ${s}`));
|
|
915
915
|
} catch {
|
|
916
916
|
}
|
|
917
917
|
await h.symlink(t, s, "dir"), g.info(`Storage link created: ${o} -> ${t}`), await mr(o, {
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ function E() {
|
|
|
45
45
|
}
|
|
46
46
|
function k() {
|
|
47
47
|
n.version(globalThis.bundler.version), n.command("store <command>").description("Manage store configuration").option("-c, --config <json>", `Configuration in JSON format (e.g., '{"key": "value"}')`).option("-s, --scope <scope>", "Scope of the store (default: global)").action(async (e, o) => {
|
|
48
|
-
const { storeCommand: t } = await import("./index-
|
|
48
|
+
const { storeCommand: t } = await import("./index-dMuB6SYF.js");
|
|
49
49
|
await t({
|
|
50
50
|
command: e,
|
|
51
51
|
options: o
|
|
@@ -71,7 +71,7 @@ Examples:
|
|
|
71
71
|
$ azbundler build --telemetry json
|
|
72
72
|
`
|
|
73
73
|
).action(async (e) => {
|
|
74
|
-
const { buildCommand: o, manifestCommand: t } = await import("./index-
|
|
74
|
+
const { buildCommand: o, manifestCommand: t } = await import("./index-dMuB6SYF.js"), { dev: i, experimental: l, telemetry: s, ...d } = e;
|
|
75
75
|
if (l && (globalThis.bundler.experimental = !0), s !== void 0) {
|
|
76
76
|
const u = typeof s == "string" ? s : "both";
|
|
77
77
|
process.env.AZ_BUNDLER_TELEMETRY = "true", process.env.AZ_BUNDLER_TELEMETRY_FORMAT = u;
|
|
@@ -82,10 +82,10 @@ Examples:
|
|
|
82
82
|
});
|
|
83
83
|
await t({ action: "generate", config: m });
|
|
84
84
|
}), n.command("dev").description("Start local development environment").argument("[entry]", "Specify the entry file (default: .edge/worker.dev.js)").option("-p, --port <port>", "Specify the port", "3333").option("-x, --experimental [boolean]", "Enable experimental features", !1).option("--skip-framework-build", "Skip framework build step", !1).option("--function-name <name>", "Specify the function name").action(async (e, o) => {
|
|
85
|
-
const { devCommand: t } = await import("./index-
|
|
85
|
+
const { devCommand: t } = await import("./index-dMuB6SYF.js"), { experimental: i } = o;
|
|
86
86
|
i && (globalThis.bundler.experimental = !0), await t({ entry: e, ...o });
|
|
87
87
|
}), n.command("presets <command>").description("Manage presets for Azion projects").argument("[preset]", "Preset name (required for config command)").action(async (e, o) => {
|
|
88
|
-
const { presetsCommand: t } = await import("./index-
|
|
88
|
+
const { presetsCommand: t } = await import("./index-dMuB6SYF.js");
|
|
89
89
|
await t(e, { preset: o });
|
|
90
90
|
}), n.command("manifest [action]").description("Manage manifest files for Azion").argument(
|
|
91
91
|
"[action]",
|
|
@@ -99,7 +99,7 @@ Examples:
|
|
|
99
99
|
$ azbundler manifest -e azion.config.js -o .edge
|
|
100
100
|
`
|
|
101
101
|
).action(async (e, o, t) => {
|
|
102
|
-
const { manifestCommand: i } = await import("./index-
|
|
102
|
+
const { manifestCommand: i } = await import("./index-dMuB6SYF.js");
|
|
103
103
|
await i({
|
|
104
104
|
...o || t,
|
|
105
105
|
action: e
|
|
@@ -117,7 +117,7 @@ Examples:
|
|
|
117
117
|
$ azbundler config replace -k '$EDGE_FUNCTION_NAME' -v "my-func"
|
|
118
118
|
`
|
|
119
119
|
).action(async (e, o) => {
|
|
120
|
-
const { configCommand: t } = await import("./index-
|
|
120
|
+
const { configCommand: t } = await import("./index-dMuB6SYF.js");
|
|
121
121
|
await t({
|
|
122
122
|
command: e,
|
|
123
123
|
options: o
|
|
@@ -130,7 +130,7 @@ Examples:
|
|
|
130
130
|
$ azbundler telemetry --path ./custom-report.html
|
|
131
131
|
`
|
|
132
132
|
).action(async (e) => {
|
|
133
|
-
const { telemetryCommand: o } = await import("./index-
|
|
133
|
+
const { telemetryCommand: o } = await import("./index-dMuB6SYF.js");
|
|
134
134
|
await o(e);
|
|
135
135
|
}), n.parse(process.argv);
|
|
136
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aziontech/bundler",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Tool to launch and build JavaScript/Frameworks. This tool automates polyfills for Edge Computing and assists in creating Workers, notably for the Azion platform.",
|
|
5
5
|
"index": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"author": "aziontech",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@aziontech/builder": "1.0.
|
|
16
|
+
"@aziontech/builder": "1.0.5",
|
|
17
17
|
"@aziontech/bundler-telemetry": "1.0.0",
|
|
18
|
-
"@aziontech/config": "1.0.
|
|
19
|
-
"@aziontech/presets": "1.1.
|
|
18
|
+
"@aziontech/config": "1.0.2",
|
|
19
|
+
"@aziontech/presets": "1.1.2",
|
|
20
20
|
"@aziontech/utils": "1.0.0",
|
|
21
21
|
"@edge-runtime/primitives": "4.0.5",
|
|
22
22
|
"@netlify/framework-info": "^9.9.1",
|
|
@@ -31,27 +31,26 @@
|
|
|
31
31
|
"typescript": "^5.5.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@
|
|
34
|
+
"@aziontech/types": "1.0.0",
|
|
35
|
+
"@jest/globals": "^30.4.1",
|
|
35
36
|
"@swc/core": "^1.3.96",
|
|
36
|
-
"@swc/jest": "^0.2.
|
|
37
|
+
"@swc/jest": "^0.2.39",
|
|
37
38
|
"@types/inquirer": "^9.0.7",
|
|
38
|
-
"@types/jest": "^
|
|
39
|
+
"@types/jest": "^30.0.0",
|
|
39
40
|
"@types/lodash": "^4.17.16",
|
|
40
41
|
"@types/mock-fs": "^4.13.4",
|
|
41
42
|
"@types/semver": "^7.5.8",
|
|
42
43
|
"@types/tmp": "^0.2.6",
|
|
43
|
-
"conventional-changelog-conventionalcommits": "^4.6.0",
|
|
44
44
|
"globals": "^16.0.0",
|
|
45
|
-
"jest": "^
|
|
46
|
-
"jest-puppeteer": "^9.0.1",
|
|
45
|
+
"jest": "^30.4.2",
|
|
47
46
|
"markdown-table": "^3.0.3",
|
|
48
47
|
"mock-fs": "^5.2.0",
|
|
49
|
-
"puppeteer": "^
|
|
50
|
-
"supertest": "^
|
|
48
|
+
"puppeteer": "^25.3.0",
|
|
49
|
+
"supertest": "^7.2.2",
|
|
51
50
|
"tmp": "^0.2.6",
|
|
52
|
-
"ts-jest": "^29.
|
|
51
|
+
"ts-jest": "^29.4.11",
|
|
53
52
|
"ts-node": "^10.9.2",
|
|
54
|
-
"vite": "^7.3.
|
|
53
|
+
"vite": "^7.3.6"
|
|
55
54
|
},
|
|
56
55
|
"repository": {
|
|
57
56
|
"type": "git",
|
|
@@ -81,8 +80,8 @@
|
|
|
81
80
|
"e2e:start": "pnpm submodule:update && tests/scripts/start-e2e-env.sh",
|
|
82
81
|
"e2e:stop": "tests/scripts/stop-e2e-env.sh",
|
|
83
82
|
"e2e:destroy": "tests/scripts/destroy-e2e-env.sh",
|
|
84
|
-
"test:e2e": "pnpm e2e:start && NODE_OPTIONS='--experimental-vm-modules' jest --detectOpenHandles --runInBand --config=./jest-e2e.config.js tests/e2e/ --json --outputFile e2e_results.json && pnpm e2e:stop; pnpm task:reports",
|
|
85
|
-
"test:nodejs-apis": "pnpm e2e:start && NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --config=./jest-e2e.config.js tests/nodejs-apis/ --json --outputFile nodejs_apis_results.json && pnpm e2e:stop && pnpm task:reports-nodejs-apis",
|
|
83
|
+
"test:e2e": "pnpm e2e:start && NODE_OPTIONS='--experimental-vm-modules' jest --detectOpenHandles --forceExit --runInBand --config=./jest-e2e.config.js tests/e2e/ --json --outputFile e2e_results.json && pnpm e2e:stop; pnpm task:reports",
|
|
84
|
+
"test:nodejs-apis": "pnpm e2e:start && NODE_OPTIONS='--experimental-vm-modules' jest --forceExit --runInBand --config=./jest-e2e.config.js tests/nodejs-apis/ --json --outputFile nodejs_apis_results.json && pnpm e2e:stop && pnpm task:reports-nodejs-apis",
|
|
86
85
|
"submodule:update": "git submodule update --init --recursive && git submodule foreach git pull origin main"
|
|
87
86
|
}
|
|
88
87
|
}
|