sb-mig 5.8.0 → 6.0.0-beta.1
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
CHANGED
|
@@ -13,7 +13,7 @@ If you've found an issue or you have feature request - <a href="https://github.c
|
|
|
13
13
|
|
|
14
14
|
| | |
|
|
15
15
|
| ---- | ------------ |
|
|
16
|
-
| Node |
|
|
16
|
+
| Node | 22.x.x or >=24.x.x |
|
|
17
17
|
|
|
18
18
|
# 5.x.x version released!
|
|
19
19
|
|
|
@@ -32,7 +32,7 @@ If you've found an issue or you have feature request - <a href="https://github.c
|
|
|
32
32
|
|
|
33
33
|
## Breaking changes
|
|
34
34
|
|
|
35
|
-
- Please note that sb-mig no longer extends support for Node versions older than
|
|
35
|
+
- Please note that sb-mig no longer extends support for Node versions older than 22.x.x, as part of its adoption of native ESM support.
|
|
36
36
|
- The sb-mig backup command has now been aligned with all other commands, causing minor changes in its execution (although functionalities have been preserved).
|
|
37
37
|
|
|
38
38
|
Do not hesitate to get in touch if you encounter any issues or require further clarification on any points.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdir, rm } from "fs/promises";
|
|
2
2
|
import path from "path";
|
|
3
|
+
import rollupSwc from "@rollup/plugin-swc";
|
|
3
4
|
import { rollup } from "rollup";
|
|
4
|
-
import ts from "rollup-plugin-ts";
|
|
5
5
|
/**
|
|
6
6
|
* Extract the component name from a file path
|
|
7
7
|
* e.g., "/path/to/my-component.sb.ts" -> "my-component.sb"
|
|
@@ -19,9 +19,14 @@ async function buildFile(inputPath, outputCjs, outputEsm) {
|
|
|
19
19
|
const inputOptions = {
|
|
20
20
|
input: inputPath,
|
|
21
21
|
plugins: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
rollupSwc({
|
|
23
|
+
swc: {
|
|
24
|
+
jsc: {
|
|
25
|
+
parser: {
|
|
26
|
+
syntax: "typescript",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
25
30
|
}),
|
|
26
31
|
],
|
|
27
32
|
};
|
package/dist/cli/index.js
CHANGED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
+
import rollupSwc from "@rollup/plugin-swc";
|
|
2
3
|
import { remove } from "fs-extra";
|
|
3
|
-
import ts from "rollup-plugin-ts";
|
|
4
4
|
import storyblokConfig from "../config/config.js";
|
|
5
5
|
import Logger from "../utils/logger.js";
|
|
6
6
|
import { extractComponentName } from "../utils/path-utils.js";
|
|
@@ -24,9 +24,14 @@ export const buildOnTheFly = async ({ files }) => {
|
|
|
24
24
|
const inputOptions = {
|
|
25
25
|
input: filePath,
|
|
26
26
|
plugins: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
rollupSwc({
|
|
28
|
+
swc: {
|
|
29
|
+
jsc: {
|
|
30
|
+
parser: {
|
|
31
|
+
syntax: "typescript",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
30
35
|
}),
|
|
31
36
|
],
|
|
32
37
|
};
|
|
@@ -8,8 +8,8 @@ exports.precompile = precompile;
|
|
|
8
8
|
exports.getCompiledPath = getCompiledPath;
|
|
9
9
|
const promises_1 = require("fs/promises");
|
|
10
10
|
const path_1 = __importDefault(require("path"));
|
|
11
|
+
const plugin_swc_1 = __importDefault(require("@rollup/plugin-swc"));
|
|
11
12
|
const rollup_1 = require("rollup");
|
|
12
|
-
const rollup_plugin_ts_1 = __importDefault(require("rollup-plugin-ts"));
|
|
13
13
|
/**
|
|
14
14
|
* Extract the component name from a file path
|
|
15
15
|
* e.g., "/path/to/my-component.sb.ts" -> "my-component.sb"
|
|
@@ -28,9 +28,14 @@ async function buildFile(inputPath, outputCjs, outputEsm) {
|
|
|
28
28
|
const inputOptions = {
|
|
29
29
|
input: inputPath,
|
|
30
30
|
plugins: [
|
|
31
|
-
(0,
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
(0, plugin_swc_1.default)({
|
|
32
|
+
swc: {
|
|
33
|
+
jsc: {
|
|
34
|
+
parser: {
|
|
35
|
+
syntax: "typescript",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
34
39
|
}),
|
|
35
40
|
],
|
|
36
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sb-mig",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.1",
|
|
4
4
|
"description": "CLI to rule the world. (and handle stuff related to Storyblok CMS)",
|
|
5
5
|
"author": "Marcin Krawczyk <marckraw@icloud.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"./dist/*": "./dist/*"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": "^22.0.0 || >=24.0.0"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"/dist",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"test:all": "npm run test:unit && npm run test:api-live && npm run test:e2e"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
+
"@rollup/plugin-swc": "^0.4.0",
|
|
76
77
|
"@swc/core": "1.3.41",
|
|
77
78
|
"@swc/helpers": "^0.5.18",
|
|
78
79
|
"chalk": "^4.1.2",
|
|
@@ -84,11 +85,10 @@
|
|
|
84
85
|
"ncp": "^2.0.0",
|
|
85
86
|
"node-fetch": "^3.3.2",
|
|
86
87
|
"rollup": "^3.28.0",
|
|
87
|
-
"rollup-plugin-ts": "^3.4.4",
|
|
88
88
|
"semver": "^7.6.2",
|
|
89
89
|
"storyblok-js-client": "^7.2.1",
|
|
90
90
|
"storyblok-schema-types": "^1.2.4",
|
|
91
|
-
"typescript": "^5.
|
|
91
|
+
"typescript": "^5.9.3",
|
|
92
92
|
"uuid": "^9.0.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@storyblok/react": "^3.0.10",
|
|
104
104
|
"@types/fs-extra": "^11.0.4",
|
|
105
105
|
"@types/ncp": "^2.0.8",
|
|
106
|
-
"@types/node": "^
|
|
106
|
+
"@types/node": "^24.12.2",
|
|
107
107
|
"@types/uuid": "^10.0.0",
|
|
108
108
|
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
109
109
|
"@typescript-eslint/parser": "^6.4.1",
|