mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-07 02:47:12 +00:00
chore: 配置 package.json, 不发不必要的 npm 包
This commit is contained in:
parent
7d7615cdce
commit
d412d17672
@ -5,7 +5,9 @@
|
||||
"registry": "http://registry.antfin-inc.com",
|
||||
"useWorkspaces": true,
|
||||
"packages": [
|
||||
"packages/*"
|
||||
"packages/*",
|
||||
"!packages/code-generator",
|
||||
"!packages/material-parser"
|
||||
],
|
||||
"command": {
|
||||
"bootstrap": {
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
"lib",
|
||||
"es"
|
||||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "build-scripts build --skip-demo",
|
||||
"test": "build-scripts test --config build.test.json",
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
"lib",
|
||||
"es"
|
||||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "build-scripts build --skip-demo"
|
||||
},
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
"lib",
|
||||
"es"
|
||||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "build-scripts build --skip-demo"
|
||||
},
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
"es",
|
||||
"lib"
|
||||
],
|
||||
"private": true,
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
"stylePath": "style.js",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
"lib",
|
||||
"es"
|
||||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "build-scripts build --skip-demo",
|
||||
"test": "build-scripts test --config build.test.json",
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
"es",
|
||||
"lib"
|
||||
],
|
||||
"private": true,
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
"scripts": {
|
||||
|
||||
@ -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'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user