Skip to content

Commit

Permalink
chore: use npm workspaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 25, 2022
1 parent 9a233c9 commit 9e02d23
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
18 changes: 1 addition & 17 deletions lerna.json
@@ -1,21 +1,5 @@
{
"packages": ["packages/*", "website"],
"version": "independent",
"command": {
"publish": {
"ignoreChanges": ["*.md", "*.test.js", "*.test.tsx"]
},
"create": {
"license": "MIT",
"author": "kenny wang <wowohoo@qq.com>",
"repository": {
"type": "git",
"url": "https://github.com/uiwjs/uiw.git"
}
},
"bootstrap": {
"yarnClientArgs": ["--no-yarn-lock", "--no-package-lock"],
"forceLocal": true
}
}
"useWorkspaces": true
}
19 changes: 13 additions & 6 deletions package.json
Expand Up @@ -4,12 +4,12 @@
"homepage": "https://uiwjs.github.io",
"private": true,
"scripts": {
"lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react",
"lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm",
"lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css",
"lib:css:watch": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm --watch",
"lib:watch": "lerna exec --scope @uiw/react-file-input -- tsbb watch & npm run lib:css:watch",
"lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-file-input",
"lib": "lerna exec --scope @uiw/react-form -- tsbb build --target react",
"lib:css": "lerna exec --scope @uiw/react-form -- compile-less -d src -o esm",
"lib:css:dist": "lerna exec --scope @uiw/react-form -- compile-less -d src -o lib --combine=dist.css",
"lib:css:watch": "lerna exec --scope @uiw/react-form -- compile-less -d src -o esm --watch",
"lib:watch": "lerna exec --scope @uiw/react-form -- tsbb watch & npm run lib:css:watch",
"lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-form",
"lib:build": "npm run lib && npm run lib:css && npm run lib:css:dist",
"//>>>>>>>>>>>>": "<<<<<<<<<<",
"watch:other:lib": "lerna exec --parallel --scope @uiw/* --ignore @uiw/doc -- tsbb watch",
Expand Down Expand Up @@ -55,6 +55,13 @@
"prettier --parser=typescript --write"
]
},
"workspaces": [
"packages/**",
"website"
],
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@kkt/less-modules": "~7.1.1",
"@kkt/ncc": "~1.0.8",
Expand Down

0 comments on commit 9e02d23

Please sign in to comment.