@interactivethings/scripts 2.1.0 → 2.1.2
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/dist/config.js +2 -2
- package/dist/init/cli.js +1 -4
- package/dist/tokens-studio/cli.test.js +2 -0
- package/package.json +10 -7
package/dist/config.js
CHANGED
|
@@ -74,7 +74,7 @@ exports.TokensStudioConfigSchema = zod_1.z.object({
|
|
|
74
74
|
.string()
|
|
75
75
|
.optional()
|
|
76
76
|
.describe("Output directory for transformed tokens"),
|
|
77
|
-
handler: zod_1.z.string().
|
|
77
|
+
handler: zod_1.z.string().describe("Path to the transformer file"),
|
|
78
78
|
});
|
|
79
79
|
/**
|
|
80
80
|
* Vercel configuration schema
|
|
@@ -147,7 +147,7 @@ async function loadConfig(configPath) {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
// No config file found, return default config
|
|
150
|
-
|
|
150
|
+
throw new Error(`No configuration file found. Please create an ixt.config.ts file in the current directory.`);
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* Merge CLI arguments with configuration
|
package/dist/init/cli.js
CHANGED
|
@@ -250,11 +250,8 @@ function generateConfig(answers) {
|
|
|
250
250
|
config.tokensStudio = {
|
|
251
251
|
input: answers.tokensInputDir,
|
|
252
252
|
output: answers.tokensOutputFile,
|
|
253
|
+
handler: `./ixt/transforms/${answers.stylingFramework}-transform.ts`,
|
|
253
254
|
};
|
|
254
|
-
// Add handler path based on styling framework choice
|
|
255
|
-
if (answers.stylingFramework && answers.stylingFramework !== "custom") {
|
|
256
|
-
config.tokensStudio.handler = `./ixt/transforms/${answers.stylingFramework}-transform.ts`;
|
|
257
|
-
}
|
|
258
255
|
}
|
|
259
256
|
if (answers.useVercel && (answers.vercelTeam || answers.vercelProject)) {
|
|
260
257
|
config.vercel = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interactivethings/scripts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js",
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
]
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
"repository":
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+ssh://git@github.com/interactivethings/ixt-scripts.git"
|
|
23
|
+
},
|
|
21
24
|
"author": "Interactive Things <we@interactivethings.com>",
|
|
22
25
|
"license": "MIT",
|
|
23
26
|
"scripts": {
|
|
@@ -37,11 +40,6 @@
|
|
|
37
40
|
],
|
|
38
41
|
"dependencies": {
|
|
39
42
|
"@next/env": "^15.5.4",
|
|
40
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
41
|
-
"@semantic-release/git": "^10.0.1",
|
|
42
|
-
"@semantic-release/github": "^11.0.6",
|
|
43
|
-
"@types/argparse": "^2.0.17",
|
|
44
|
-
"@types/jscodeshift": "^0.11.10",
|
|
45
43
|
"argparse": "^2.0.1",
|
|
46
44
|
"jiti": "^2.6.1",
|
|
47
45
|
"ora": "^9.0.0",
|
|
@@ -50,6 +48,11 @@
|
|
|
50
48
|
"zod": "^4.1.11"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
51
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
52
|
+
"@semantic-release/git": "^10.0.1",
|
|
53
|
+
"@semantic-release/github": "^11.0.6",
|
|
54
|
+
"@types/argparse": "^2.0.17",
|
|
55
|
+
"@types/jscodeshift": "^0.11.10",
|
|
53
56
|
"@types/node": "22",
|
|
54
57
|
"@types/prompts": "^2.4.9",
|
|
55
58
|
"jscodeshift": "^0.15.1",
|