create-bdpa-react-scaffold 1.8.0 ā 1.8.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/create-ui-lib.js +3 -7
- package/package.json +1 -1
package/create-ui-lib.js
CHANGED
|
@@ -59,13 +59,13 @@ function write(filePath, content) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
function installDependencies(pm, cwd) {
|
|
62
|
+
const isWin = process.platform === "win32";
|
|
62
63
|
const pmCmd = pm === "yarn" ? "yarn" : pm === "pnpm" ? "pnpm" : "npm";
|
|
64
|
+
const cmd = isWin ? `${pmCmd}.cmd` : pmCmd;
|
|
63
65
|
console.log(`\nš¦ Installing dependencies with ${pmCmd}...`);
|
|
64
|
-
const
|
|
65
|
-
const result = spawnSync(pmCmd, args, {
|
|
66
|
+
const result = spawnSync(cmd, ["install"], {
|
|
66
67
|
stdio: "inherit",
|
|
67
68
|
cwd,
|
|
68
|
-
shell: true,
|
|
69
69
|
maxBuffer: 10 * 1024 * 1024
|
|
70
70
|
});
|
|
71
71
|
if (result.status !== 0) {
|
|
@@ -170,10 +170,6 @@ write(".vscode/settings.json", `
|
|
|
170
170
|
"typescriptreact": "typescriptreact",
|
|
171
171
|
"html": "HTML"
|
|
172
172
|
},
|
|
173
|
-
"tailwindCSS.experimental.classRegex": [
|
|
174
|
-
["clsx\\(([^)]*)\\)", "(?:'|\\"|\\`)([^']*)(?:'|\\"|\\`)"],
|
|
175
|
-
["cva\\(([^)]*)\\)", "[\"'\\`]([^\"'\\`]*).*?[\"'\\`]"]
|
|
176
|
-
],
|
|
177
173
|
"tailwindCSS.validate": true,
|
|
178
174
|
"[javascript]": {
|
|
179
175
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|