From d412d1767257cf92f317e877bfed20aada767133 Mon Sep 17 00:00:00 2001 From: "lihao.ylh" Date: Fri, 31 Dec 2021 10:21:45 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=85=8D=E7=BD=AE=20package.json,=20?= =?UTF-8?q?=E4=B8=8D=E5=8F=91=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=20npm=20?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lerna.json | 4 +++- package.json | 1 + packages/designer/package.json | 1 + packages/editor-core/package.json | 1 + packages/editor-skeleton/package.json | 1 + packages/engine/src/modules/designer-types.ts | 1 + packages/plugin-designer/package.json | 1 + packages/plugin-outline-pane/package.json | 1 + packages/shell/package.json | 1 + packages/utils/package.json | 1 + scripts/watchdog.js | 5 ++++- 11 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lerna.json b/lerna.json index 8b4af1576..bdc74fa47 100644 --- a/lerna.json +++ b/lerna.json @@ -5,7 +5,9 @@ "registry": "http://registry.antfin-inc.com", "useWorkspaces": true, "packages": [ - "packages/*" + "packages/*", + "!packages/code-generator", + "!packages/material-parser" ], "command": { "bootstrap": { diff --git a/package.json b/package.json index 380a057ce..a3fa53259 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "lint": "eslint --ext .ts,.tsx,.js,.jsx ./ --quiet", "lint:fix": "eslint --ext .ts,.tsx,.js,.jsx ./ --quiet --fix", "pub": "tnpm run watchdog:build && lerna publish patch --force-publish --exact --no-changelog", + "pub:premajor": "tnpm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog", "pub:prepatch": "tnpm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog", "pub:prerelease": "tnpm run watchdog:build && lerna publish prerelease --force-publish --exact --dist-tag beta --preid beta --no-changelog", "setup": "./scripts/setup.sh", diff --git a/packages/designer/package.json b/packages/designer/package.json index d3e73d3a0..206364060 100644 --- a/packages/designer/package.json +++ b/packages/designer/package.json @@ -8,6 +8,7 @@ "lib", "es" ], + "private": true, "scripts": { "build": "build-scripts build --skip-demo", "test": "build-scripts test --config build.test.json", diff --git a/packages/editor-core/package.json b/packages/editor-core/package.json index 4433644c1..602f26396 100644 --- a/packages/editor-core/package.json +++ b/packages/editor-core/package.json @@ -9,6 +9,7 @@ "lib", "es" ], + "private": true, "scripts": { "build": "build-scripts build --skip-demo" }, diff --git a/packages/editor-skeleton/package.json b/packages/editor-skeleton/package.json index 23b930eda..11f112c55 100644 --- a/packages/editor-skeleton/package.json +++ b/packages/editor-skeleton/package.json @@ -9,6 +9,7 @@ "lib", "es" ], + "private": true, "scripts": { "build": "build-scripts build --skip-demo" }, diff --git a/packages/engine/src/modules/designer-types.ts b/packages/engine/src/modules/designer-types.ts index 0660fd2d5..5bdefc751 100644 --- a/packages/engine/src/modules/designer-types.ts +++ b/packages/engine/src/modules/designer-types.ts @@ -18,3 +18,4 @@ export type RootNode = designerCabin.RootNode; export type EditingTarget = designerCabin.EditingTarget; export type SaveHandler = designerCabin.SaveHandler; export type ComponentMeta = designerCabin.ComponentMeta; +export type SettingField = designerCabin.SettingField; diff --git a/packages/plugin-designer/package.json b/packages/plugin-designer/package.json index 24855b8cf..92253c1c9 100644 --- a/packages/plugin-designer/package.json +++ b/packages/plugin-designer/package.json @@ -6,6 +6,7 @@ "es", "lib" ], + "private": true, "main": "lib/index.js", "module": "es/index.js", "stylePath": "style.js", diff --git a/packages/plugin-outline-pane/package.json b/packages/plugin-outline-pane/package.json index 687764ac0..da92070eb 100644 --- a/packages/plugin-outline-pane/package.json +++ b/packages/plugin-outline-pane/package.json @@ -11,6 +11,7 @@ "scripts": { "build": "build-scripts build --skip-demo" }, + "private": true, "dependencies": { "@ali/lowcode-designer": "1.0.74", "@ali/lowcode-editor-core": "1.0.74", diff --git a/packages/shell/package.json b/packages/shell/package.json index 5b11f345f..5ba6c63dd 100644 --- a/packages/shell/package.json +++ b/packages/shell/package.json @@ -8,6 +8,7 @@ "lib", "es" ], + "private": true, "scripts": { "build": "build-scripts build --skip-demo", "test": "build-scripts test --config build.test.json", diff --git a/packages/utils/package.json b/packages/utils/package.json index dbe55a10d..efd42951e 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -6,6 +6,7 @@ "es", "lib" ], + "private": true, "main": "lib/index.js", "module": "es/index.js", "scripts": { diff --git a/scripts/watchdog.js b/scripts/watchdog.js index c52d42945..f393ca88d 100755 --- a/scripts/watchdog.js +++ b/scripts/watchdog.js @@ -3,10 +3,13 @@ const fs = require('fs'); const { join } = require('path'); const packagesDir = join(__dirname, '../packages'); +const blacklistPkgNames = ['code-generator', 'material-parser']; const dirs = fs.readdirSync(packagesDir); dirs - .filter(dir => !dir.startsWith('.')) + .filter(dir => { + return !dir.startsWith('.') && !blacklistPkgNames.includes(dir); + }) .forEach(dir => { const pkgDir = join(packagesDir, dir); const pkg = JSON.parse(fs.readFileSync(join(pkgDir, 'package.json'), 'utf-8'));