wormajs 0.0.2-beta.0 → 0.0.2-beta.1
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/readConfig.js +1 -1
- package/package.json +1 -1
package/dist/readConfig.js
CHANGED
|
@@ -43,7 +43,7 @@ async function readConfig(projectPath = process.cwd()) {
|
|
|
43
43
|
// 否则 __dirname 会指向用户项目目录,导致预设模板路径解析失败
|
|
44
44
|
// monorepo 子包可能不直接依赖 wormajs,但 config 文件会 import from 'wormajs'
|
|
45
45
|
const allExternals = [...new Set([...userDependencies, 'worma', 'wormajs/plugin'])];
|
|
46
|
-
const configTmpFileName = `
|
|
46
|
+
const configTmpFileName = `worma_tmp_${Date.now()}.cjs`;
|
|
47
47
|
// 使用绝对路径:esbuild 写入相对 outfile 时按 cwd 解析,
|
|
48
48
|
// 而 require() 解析相对路径时基于调用模块所在目录,二者不一致会导致 require 失败。
|
|
49
49
|
// 绝对路径可保证写入与 require 指向同一文件。
|