@wagq/wa-cli 0.5.10-beta.0 → 0.5.10
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/lib/daml/async.js +2 -4
- package/package.json +1 -1
package/lib/daml/async.js
CHANGED
|
@@ -26,16 +26,14 @@ const getFiles = async () => {
|
|
|
26
26
|
`${process.cwd()}/scripts/asyncDamlFetch.js`
|
|
27
27
|
);
|
|
28
28
|
if (!fnFile) {
|
|
29
|
-
log.error("scripts/asyncDamlFetch.js文件不存在")
|
|
30
29
|
const hasCatalogue = await fs.existsSync(`${process.cwd()}/scripts`);
|
|
31
|
-
log.info(hasCatalogue)
|
|
32
30
|
if(!hasCatalogue){
|
|
33
31
|
await fs.mkdirSync("scripts", undefined, {
|
|
34
32
|
cwd: process.cwd(),
|
|
35
33
|
});
|
|
36
34
|
}
|
|
37
|
-
await fs.writeFileSync(`${process.cwd()}/scripts/asyncDamlFetch.js
|
|
38
|
-
log.
|
|
35
|
+
await fs.writeFileSync(`${process.cwd()}/scripts/asyncDamlFetch.js`, '')
|
|
36
|
+
log.error("scripts/asyncDamlFetch.js文件不存在, 已为您创建scripts/asyncDamlFetch.js文件,请将您的逻辑编辑器代码复制到该文件中后再次执行")
|
|
39
37
|
return;
|
|
40
38
|
}
|
|
41
39
|
const fetchDaml = await require(`${process.cwd()}/scripts/asyncDamlFetch.js`);
|