@wjwjq/release-helper 0.0.4 → 0.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/prepare.js +1 -1
- package/dist/start_prepare.js +1 -1
- package/package.json +1 -1
- package/src/prepare.ts +2 -1
- package/src/start_prepare.ts +1 -1
package/dist/prepare.js
CHANGED
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
7
7
|
import { logger } from './logger.js';
|
|
8
8
|
import 'picocolors';
|
|
9
9
|
|
|
10
|
-
const __work_dir = process.cwd();
|
|
10
|
+
const __work_dir = process.env.INIT_CWD || process.cwd();
|
|
11
11
|
const __releaseDir = path.resolve(__work_dir, ".release");
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
const __dirname = dirname(__filename);
|
package/dist/start_prepare.js
CHANGED
package/package.json
CHANGED
package/src/prepare.ts
CHANGED
|
@@ -19,7 +19,8 @@ export type ReleaseConf = {
|
|
|
19
19
|
assetsDir?: string
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
// 获取项目根目录
|
|
23
|
+
export const __work_dir = process.env.INIT_CWD || process.cwd();
|
|
23
24
|
export const __releaseDir = path.resolve(__work_dir, '.release')
|
|
24
25
|
|
|
25
26
|
const __filename = fileURLToPath(import.meta.url);
|