Skip to content

Commit

Permalink
chore(deps): update Lerna-Lite & remove fields from published packages (
Browse files Browse the repository at this point in the history
#771)

* chore(deps): update Lerna-Lite & remove fields from published packages

* chore: add to new release preview

* chore: remove no longer needed change-pkg-browser script
- we no longer need to have a script to remove the "browser" field from each package.json since Lerna-Lite now has a new option to remove unwanted fields when publishing the workspace packages
  • Loading branch information
ghiscoding authored Oct 15, 2022
1 parent cfbf942 commit 7e65bcb
Show file tree
Hide file tree
Showing 21 changed files with 665 additions and 270 deletions.
7 changes: 7 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
"npmClient": "pnpm",
"loglevel": "info",
"command": {
"publish": {
"removePackageFields": [
"browser",
"devDependencies",
"scripts"
]
},
"version": {
"conventionalCommits": true,
"createRelease": "github",
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"cypress": "cypress open --config-file test/cypress.config.ts",
"cypress:ci": "cypress run --config-file test/cypress.config.ts",
"dev:watch": "cross-env TSC_WATCHFILE=UseFsEventsWithFallbackDynamicPolling pnpm -r --parallel run dev:watch",
"new-release": "run-s bundle new-version new-publish",
"preview:publish": "lerna publish from-package --dry-run",
"preview:version": "lerna version --dry-run",
"preview:roll-new-release": "pnpm bundle && pnpm new-version --dry-run && pnpm new-publish --dry-run",
"new-version": "lerna version",
"new-publish": "lerna publish from-package --registry=https://registry.npmjs.org/",
"new-version-dry-run": "lerna version --git-dry-run",
"prepublishOnly": "pnpm -r package:remove-browser-prop",
"postnew-publish": "pnpm -r package:add-browser-prop",
"new-publish": "lerna publish from-package",
"roll-new-release": "pnpm bundle && pnpm new-version && pnpm new-publish",
"serve:demo": "serve ./docs -l 8888",
"lint": "eslint packages --ext .ts",
"test": "jest --runInBand --coverage=true --config ./test/jest.config.js",
Expand All @@ -40,8 +40,8 @@
},
"devDependencies": {
"@jest/types": "^29.1.2",
"@lerna-lite/cli": "^1.11.3",
"@lerna-lite/run": "^1.11.3",
"@lerna-lite/cli": "^1.12.0",
"@lerna-lite/run": "^1.12.0",
"@types/jest": "^29.1.2",
"@types/moment": "^2.13.0",
"@types/node": "^18.7.16",
Expand All @@ -59,7 +59,6 @@
"jsdom": "^20.0.1",
"jsdom-global": "^3.0.2",
"moment-mini": "^2.29.4",
"npm-run-all2": "^6.0.2",
"pnpm": "^7.13.4",
"rimraf": "^3.0.2",
"rxjs": "^7.5.6",
Expand Down
4 changes: 1 addition & 3 deletions packages/binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=binding",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=binding"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
50 changes: 0 additions & 50 deletions packages/change-package-browser.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"postbundle": "pnpm run sass:build sass:copy",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=common",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=common",
"sass-build-task:scss-compile:bootstrap": "sass src/styles/slickgrid-theme-bootstrap.scss dist/styles/css/slickgrid-theme-bootstrap.css --style=compressed --quiet-deps --no-source-map",
"postsass-build-task:scss-compile:bootstrap": "postcss --no-map --use autoprefixer --output dist/styles/css/slickgrid-theme-bootstrap.css dist/styles/css/slickgrid-theme-bootstrap.css --style=compressed",
"sass-build-task:scss-compile:material": "sass src/styles/slickgrid-theme-material.scss dist/styles/css/slickgrid-theme-material.css --style=compressed --quiet-deps --no-source-map",
Expand Down
4 changes: 1 addition & 3 deletions packages/composite-editor-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=composite-editor-component",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=composite-editor-component"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/custom-footer-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=custom-footer-component",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=custom-footer-component"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/custom-tooltip-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=custom-tooltip-plugin",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=custom-tooltip-plugin"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/empty-warning-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=empty-warning-component",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=empty-warning-component"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/event-pub-sub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=event-pub-sub",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=event-pub-sub"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/excel-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=excel-export",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=excel-export"
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=graphql",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=graphql"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/odata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=odata",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=odata"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/pagination-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=pagination-component",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=pagination-component"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/row-detail-view-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=row-detail-view-plugin",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=row-detail-view-plugin"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/rxjs-observable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=rxjs-observable",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=rxjs-observable"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/text-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=text-export",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=text-export"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
4 changes: 1 addition & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=utils",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=utils"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
2 changes: 0 additions & 2 deletions packages/vanilla-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"bundle": "npm-run-all bundle:commonjs bundle:esm --npm-path npm",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=vanilla-bundle",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=vanilla-bundle",
"test": "echo testing slickgrid-universal slickgrid-vanilla-bundle code"
},
"license": "MIT",
Expand Down
5 changes: 2 additions & 3 deletions packages/vanilla-force-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
"webpack:prod": "webpack --env production",
"zip:dist:dev": "cross-env node compress.js --output-filename=slickgrid-vanilla-bundle-DEV --output-folder=\"dist-grid-bundle-zip/\"",
"zip:dist": "cross-env node compress.js --output-filename=slickgrid-vanilla-bundle --output-folder=\"dist-grid-bundle-zip/\"",
"package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=vanilla-force-bundle",
"package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=vanilla-force-bundle",
"test": "echo testing slickgrid-universal vanilla-force-bundle code"
},
"license": "MIT",
Expand Down Expand Up @@ -74,6 +72,7 @@
"html-loader": "^4.2.0",
"npm-run-all2": "^6.0.2",
"rimraf": "^3.0.2",
"webpack": "^5.74.0"
"webpack": "^5.74.0",
"yargs": "^17.6.0"
}
}
Loading

0 comments on commit 7e65bcb

Please sign in to comment.