chaincss 2.0.4 → 2.0.5
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/cli/cli.cjs +7 -0
- package/package.json +21 -9
package/dist/cli/cli.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawn } = require("child_process");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const cliPath = path.join(__dirname, "index.js");
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
const child = spawn("node", [cliPath, ...args], { stdio: "inherit", shell: false });
|
|
7
|
+
child.on("close", (code) => process.exit(code));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chaincss",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "The JavaScript-native styling engine for the modern web",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"build:clean": "rm -rf dist",
|
|
43
43
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
44
44
|
"build:core": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:chokidar --external:glob --external:commander --external:chalk --external:autoprefixer --external:postcss --external:clean-css",
|
|
45
|
-
"build:cli": "esbuild src/cli/index.ts --bundle --platform=node --format=esm --outfile=dist/cli/index.js --external:chokidar --external:glob --external:commander --external:chalk --external:autoprefixer --external:postcss --external:clean-css && chmod +x dist/cli/index.js",
|
|
45
|
+
"build:cli": "esbuild src/cli/index.ts --bundle --platform=node --format=esm --outfile=dist/cli/index.js --external:chokidar --external:glob --external:commander --external:chalk --external:autoprefixer --external:postcss --external:clean-css && chmod +x dist/cli/index.js && echo '#!/usr/bin/env node\nconst { spawn } = require(\"child_process\");\nconst path = require(\"path\");\nconst cliPath = path.join(__dirname, \"index.js\");\nconst args = process.argv.slice(2);\nconst child = spawn(\"node\", [cliPath, ...args], { stdio: \"inherit\", shell: false });\nchild.on(\"close\", (code) => process.exit(code));' > dist/cli/cli.cjs && chmod +x dist/cli/cli.cjs",
|
|
46
46
|
"build:plugins": "esbuild src/plugins/vite.ts --bundle --platform=node --format=esm --outfile=dist/plugins/vite.js --external:vite && esbuild src/plugins/webpack.ts --bundle --platform=node --format=esm --outfile=dist/plugins/webpack.js --external:webpack",
|
|
47
47
|
"build:runtime": "esbuild src/runtime/index.ts --bundle --platform=browser --format=esm --outfile=dist/runtime/index.js --external:react --external:vue && esbuild src/runtime/react.tsx --bundle --platform=browser --format=esm --outfile=dist/runtime/react.js --external:react --external:vue && esbuild src/runtime/vue.ts --bundle --platform=browser --format=esm --outfile=dist/runtime/vue.js --external:vue --external:react",
|
|
48
48
|
"build:compiler": "esbuild src/compiler/index.ts --bundle --platform=node --format=esm --outfile=dist/compiler/index.js --external:chokidar --external:glob --external:commander --external:chalk --external:autoprefixer --external:postcss --external:clean-css",
|
|
@@ -77,12 +77,24 @@
|
|
|
77
77
|
"caniuse-db": "^1.0.30001785"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
|
-
"react": {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
"react": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"vue": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"autoprefixer": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"postcss": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"browserslist": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"caniuse-db": {
|
|
96
|
+
"optional": true
|
|
97
|
+
}
|
|
86
98
|
},
|
|
87
99
|
"keywords": [
|
|
88
100
|
"css-in-js",
|
|
@@ -110,4 +122,4 @@
|
|
|
110
122
|
"engines": {
|
|
111
123
|
"node": ">=18.0.0"
|
|
112
124
|
}
|
|
113
|
-
}
|
|
125
|
+
}
|