feima-shortcuts 0.1.3 → 0.1.4

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.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "快捷指令",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -18,7 +18,7 @@ const postTemplate = (url, functionName) => {
18
18
  const fileData = (functionName, filePath) => {
19
19
  if (fs.existsSync(filePath)) {
20
20
  const data = fs.readFileSync(filePath, "utf8");
21
- if (data.includes(`export const ${functionName}`)) {
21
+ if (data.includes(`export const ${functionName} `)) {
22
22
  console.log(`⚠️ 函数名 ${functionName} 已存在,跳过生成`);
23
23
  return null;
24
24
  }