@promoboxx/react-scripts-vite 0.2.7 → 0.2.8

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/cjs/cli.d.ts CHANGED
@@ -3,3 +3,4 @@
3
3
  /// <reference types="vitest/globals" />
4
4
  /// <reference types="vite-plugin-pwa/vanillajs" />
5
5
  /// <reference types="vite-plugin-pwa/react" />
6
+ #!/usr/bin/env node
package/dist/cjs/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
 
3
4
  // src/cli.ts
@@ -5,15 +6,15 @@ var import_child_process = require("child_process");
5
6
  function main(command2, args2) {
6
7
  switch (command2) {
7
8
  case "start":
8
- spawnAndExit("./node_modules/.bin/vite", args2, {
9
+ spawnAndExit("vite", args2, {
9
10
  NODE_ENV: "development"
10
11
  });
11
12
  break;
12
13
  case "test":
13
- spawnAndExit("./node_modules/.bin/vitest", args2, { NODE_ENV: "test" });
14
+ spawnAndExit("vitest", args2, { NODE_ENV: "test" });
14
15
  break;
15
16
  case "build":
16
- spawnAndExit("./node_modules/.bin/vite", ["build", ...args2], {
17
+ spawnAndExit("vite", ["build", ...args2], {
17
18
  NODE_ENV: "production"
18
19
  });
19
20
  break;
@@ -3,3 +3,4 @@
3
3
  /// <reference types="vitest/globals" />
4
4
  /// <reference types="vite-plugin-pwa/vanillajs" />
5
5
  /// <reference types="vite-plugin-pwa/react" />
6
+ #!/usr/bin/env node
package/dist/esm/cli.mjs CHANGED
@@ -1,17 +1,19 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/cli.ts
2
4
  import { spawn } from "child_process";
3
5
  function main(command2, args2) {
4
6
  switch (command2) {
5
7
  case "start":
6
- spawnAndExit("./node_modules/.bin/vite", args2, {
8
+ spawnAndExit("vite", args2, {
7
9
  NODE_ENV: "development"
8
10
  });
9
11
  break;
10
12
  case "test":
11
- spawnAndExit("./node_modules/.bin/vitest", args2, { NODE_ENV: "test" });
13
+ spawnAndExit("vitest", args2, { NODE_ENV: "test" });
12
14
  break;
13
15
  case "build":
14
- spawnAndExit("./node_modules/.bin/vite", ["build", ...args2], {
16
+ spawnAndExit("vite", ["build", ...args2], {
15
17
  NODE_ENV: "production"
16
18
  });
17
19
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/react-scripts-vite",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",