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.
Files changed (2) hide show
  1. package/create-ui-lib.js +3 -7
  2. 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 args = pmCmd === "npm" ? ["install"] : ["install"];
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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bdpa-react-scaffold",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Scaffold a React + Tailwind UI library demo via Vite.",
5
5
  "bin": {
6
6
  "create-bdpa-react-scaffold": "./create-ui-lib.js"