-
Notifications
You must be signed in to change notification settings - Fork 43
Migrate package manager from Yarn Classic to pnpm #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| engine-strict = true | ||
| fetch-timeout = 1000000 |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,20 +5,19 @@ | |
| "description": "ThingsBoard Extension Widgets", | ||
| "scripts": { | ||
| "ng": "ng", | ||
| "start": "yarn run build:scss && node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve", | ||
| "build": "yarn run build:scss && node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng build && node install.js", | ||
| "start": "pnpm run build:scss && node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve", | ||
| "build": "pnpm run build:scss && node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng build && node install.js", | ||
| "build:scss": "npx postcss ./src/app/scss/style.scss -o ./src/app/scss/style.comp.scss", | ||
| "prepare": "patch-package", | ||
| "lint": "ng lint" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20.20.0", | ||
| "yarn": ">=1.22.22 <2", | ||
| "npm": "Please use yarn instead of NPM to install dependencies" | ||
| "pnpm": ">=9" | ||
| }, | ||
| "dependencies": { | ||
| "chart.js": "3.3.2", | ||
| "echarts": "https://github.com/thingsboard/echarts/archive/5.5.2-TB.tar.gz", | ||
| "echarts": "github:thingsboard/echarts#5.5.2-TB", | ||
| "flot": "https://github.com/thingsboard/flot.git#0.9-work", | ||
| "flot.curvedlines": "https://github.com/MichaelZinsmaier/CurvedLines.git#master", | ||
| "moment": "^2.30.1", | ||
|
|
@@ -50,7 +49,7 @@ | |
| "@rollup/plugin-commonjs": "^29.0.0", | ||
| "@rollup/plugin-replace": "6.0.3", | ||
| "@rollup/plugin-terser": "1.0.0", | ||
| "@tb/custom-builder": "file:./builders", | ||
| "@tb/custom-builder": "workspace:*", | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The For an internal package like If anything, |
||
| "angular-eslint": "20.7.0", | ||
| "autoprefixer": "^10.4.23", | ||
| "eslint": "9.39.4", | ||
|
|
@@ -75,9 +74,5 @@ | |
| "typescript": "~5.9.3", | ||
| "typescript-eslint": "8.54.0", | ||
| "zone.js": "~0.15.1" | ||
| }, | ||
| "resolutions": { | ||
| "tinymce": "6.8.6", | ||
| "rxjs": "7.8.2" | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pnpmrejects GitHub/archive/*.tar.gzURLs because they lack a reproducible integrity hash — the tarball content can change without the URL changing. Thegithub:shorthand points to a specific git ref, which pnpm can lock by commit SHA inpnpm-lock.yaml, giving both integrity and reproducibility