@lark-apaas/fullstack-cli 0.1.0-alpha.2 → 0.1.0-alpha.3
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/bin/sync-scripts.js +2 -3
- package/package.json +1 -1
package/bin/sync-scripts.js
CHANGED
|
@@ -9,9 +9,8 @@ async function main() {
|
|
|
9
9
|
const userProjectRoot = process.env.INIT_CWD || process.cwd();
|
|
10
10
|
const pluginRoot = path.resolve(__dirname, '..');
|
|
11
11
|
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
if (isInstallingPlugin || userProjectRoot === pluginRoot) {
|
|
12
|
+
// 只有在插件自己的开发目录中才跳过(避免在开发插件时触发 sync)
|
|
13
|
+
if (userProjectRoot === pluginRoot) {
|
|
15
14
|
console.log('[fullstack-cli] Skip syncing (installing plugin itself)');
|
|
16
15
|
process.exit(0);
|
|
17
16
|
}
|