From 5da2e35ca911722697e0bb6b93b97b0663e043ec Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 10 Mar 2022 09:27:20 +0800 Subject: [PATCH] update --- index.js | 3 +++ package.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 06b30cd..ba7941e 100644 --- a/index.js +++ b/index.js @@ -67,6 +67,7 @@ function item(text, type, p) { let options = { isMiniApp: false, // 是否小程序 + workspace: resolve('./'), extendWorkspace: null // 额外的项目目录, 一般是 vue项目中的 src目录 } @@ -137,6 +138,8 @@ class AutoPath { } } + // console.log('currDirFixed: ', options, currDirFixed, list) + list = list .filter(it => it !== doc.fileName) .map(k => { diff --git a/package.json b/package.json index 01f777b..89d35ea 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "auto-path", "displayName": "auto-path", "description": "🔥 自动提示文件路径, 方便引入项目为的文件", - "version": "1.1.0", + "version": "1.1.1", "publisher": "yutent", "author": "Yutent [@yutent]", "icon": "logo.png", @@ -28,7 +28,7 @@ ], "scripts": { "start": "esbuild index.js --bundle --outfile=out.js --external:vscode --format=cjs --platform=node", - "build": "npm start -- --minify" + "pack": "npm start -- --minify" }, "license": "MIT", "devDependencies": {