@wagq/wa-cli 0.6.16 → 0.6.21

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.
@@ -142,9 +142,16 @@ const generateLogic = async (dirName, daml, name) => {
142
142
  );
143
143
  const pages = daml.app.subapps[0]?.actions?.actionList || [];
144
144
  pages.forEach(({ content, name: fileName }) => {
145
+ const hasFileJsDoc = content.includes("@file");
145
146
  // 添加标识
146
- content = `/** @file ${name}(逻辑名称:${fileName}) */
147
+ content = hasFileJsDoc
148
+ ? content
149
+ : `/** @file ${name}(逻辑名称:${fileName}) */
147
150
 
151
+
152
+ /**
153
+ * @type {import("../../../../sass").CustomAction}
154
+ */
148
155
  ${content}`;
149
156
 
150
157
  fs.writeFileSync(`${logicDir}/${fileName}.js`, content, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wagq/wa-cli",
3
- "version": "0.6.16",
3
+ "version": "0.6.21",
4
4
  "description": "wa的脚手架",
5
5
  "main": "index.js",
6
6
  "scripts": {