feima-shortcuts 0.3.1 → 0.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feima-shortcuts",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "快捷指令",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -37,7 +37,7 @@ function splitString(input) {
37
37
  const fileData = (answers, functionName) => {
38
38
  if (fs.existsSync(`./${fileName}`)) {
39
39
  const data = fs.readFileSync(`./${fileName}`, "utf8");
40
- if (data.includes(`export const ${functionName} `)) {
40
+ if (data.includes(`export const ${functionName} `) || data.includes(`export const ${functionName}: any`)) {
41
41
  return "";
42
42
  }
43
43
  return data;