Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

## **WORK IN PROGRESS**

- (Garfonso) Allow the install scripts of js-controller and esbuild with npm >= 12, otherwise the database is not initialized during setup and TypeScript adapters cannot be started
- (@Apollon77/@copilot) **BREAKING:** Require Node.js >=20.19.0 <22.0.0 || >=22.13.0 (was >=16.0.0)
- (oweitman/Apollon77) Update chokidar and express
- (@Apollon77/@copilot) Switch from ts-node to @alcalzone/esbuild-register for TypeScript support to fix conflicts with Node.js experimental TypeScript features
Expand Down
7 changes: 7 additions & 0 deletions dist/commands/Setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ export class Setup extends CommandBase {
version: '1.0.0',
private: true,
dependencies: this.dependencies,
// npm >= 12 blocks dependency install scripts by default:
// - js-controller needs its install script ("setup first") to create the database
// - esbuild (used by @alcalzone/esbuild-register for TypeScript adapters) downloads its binary
allowScripts: {
'iobroker.js-controller': true,
esbuild: true,
},
'dev-server': this.config,
};
await writeJson(path.join(this.profilePath, 'package.json'), pkg);
Expand Down
7 changes: 7 additions & 0 deletions src/commands/Setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ export class Setup extends CommandBase {
version: '1.0.0',
private: true,
dependencies: this.dependencies,
// npm >= 12 blocks dependency install scripts by default:
// - js-controller needs its install script ("setup first") to create the database
// - esbuild (used by @alcalzone/esbuild-register for TypeScript adapters) downloads its binary
allowScripts: {
'iobroker.js-controller': true,
esbuild: true,
},
'dev-server': this.config,
};
await writeJson(path.join(this.profilePath, 'package.json'), pkg);
Expand Down
Loading