@wjwjq/release-helper 0.1.7 → 0.1.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.
Files changed (2) hide show
  1. package/dist/prepare.js +2 -1
  2. package/package.json +1 -1
package/dist/prepare.js CHANGED
@@ -8,7 +8,8 @@ import { logger } from './logger.js';
8
8
  import 'picocolors';
9
9
 
10
10
  const installMode = ["standalone", "cluster", "static", "all"];
11
- const __work_dir = process.env.INIT_CWD || process.cwd();
11
+ console.log("\u{1F680} ~ process.env.INIT_CWD:", process.env.INIT_CWD);
12
+ const __work_dir = typeof process.env.INIT_CWD === "string" ? process.env.INIT_CWD : process.cwd();
12
13
  const __releaseDir = resolve(__work_dir, ".release");
13
14
  const __filename = fileURLToPath(import.meta.url);
14
15
  const __dirname = dirname(__filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wjwjq/release-helper",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "generate deployment package for frontend, include nginx...",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",