Skip to content

Commit

Permalink
use lerna to build project again as npm workspaces does not use the c…
Browse files Browse the repository at this point in the history
…orrect build script when building dependency packages

- and using normal workspace flag works but is ineffective and can lead to errors due to still open npm/rfcs#548
  • Loading branch information
foxriver76 committed Jan 10, 2024
1 parent 24c0498 commit 3a011d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@
"scripts": {
"clean": "rimraf packages/*/build packages/*/*.tsbuildinfo",
"build:doc": "lerna run build:doc",
"build:ts": "npm run build --workspace=iobroker.js-controller -- --verbose",
"build:ts": "lerna run build --ignore '@iobroker/types'",
"build:types": "npm run build --workspace=@iobroker/types",
"watch:ts": "npm run build:ts -- --watch",
"build": "npm run build:ts && npm run build:types",
"postbuild": "lerna run postbuild && npm run update-schema",
"postbuild": "npm run update-schema",
"preinstall": "lerna run preinstall",
"install": "lerna run install",
"release": "release-script",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"url": "https://github.com/ioBroker/ioBroker.js-controller/packages/adapter"
},
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "cpy ./cert ../build/ --cwd=src && tsc-alias",
"build": "tsc -b tsconfig.build.json && tsc-alias",
"postbuild": "cpy ./cert ../build/ --cwd=src",
"build:doc": "typedoc --excludeExternals --excludeProtected --excludePrivate --plugin typedoc-plugin-missing-exports --plugin typedoc-plugin-markdown src/lib/adapter/adapter.ts --out ../controller/doc"
},
"main": "build/index.js",
Expand Down

0 comments on commit 3a011d3

Please sign in to comment.