Skip to content
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

chore: Replace npm-check-updates by native pnpm script #52

Merged
merged 1 commit into from
Jun 22, 2023
Merged
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
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,20 @@ Reset the monorepo installation (delete `dist` folders, clear caches, delete `no
pnpm reset
```

### check-updates
### list-outdated-deps

Execute [npm-check-updates](https://www.npmjs.com/package/npm-check-updates) on every package to check for packages to updates.
Checks for outdated dependencies. For more information, view [PNPM documentation](https://pnpm.io/cli/outdated).

```bash
pnpm check-updates
pnpm list-outdated-deps
```

### update-deps
### update-outdated-deps

Execute [npm-check-updates](https://www.npmjs.com/package/npm-check-updates) with the `-u` option to update every package dependencies to their latest version.
Updated outdate dependencies to their latest version. For more information, view [PNPM documentation](https://pnpm.io/cli/update).

```bash
pnpm update-deps
pnpm update-outdated-deps
```

## CI
Expand Down
21 changes: 5 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,37 @@
"scripts": {
"postinstall": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf node_modules/.cache && pnpm temporary-script-until-build-order-topology-is-fixed",
"temporary-script-until-build-order-topology-is-fixed": "pnpm build",

"dev": "pnpm --filter ./packages/* -r --parallel dev",
"build": "pnpm --filter ./packages/* -r --parallel build",

"test": "jest",

"lint": "pnpm run /^lint:.*/",
"lint:eslint": "eslint --ext .js,.ts,.tsx . --max-warnings=-1 --cache --cache-location node_modules/.cache/eslint",
"lint:types": "pnpm -r --parallel --include-workspace-root exec tsc",

"changeset": "changeset",
"ci-release": "pnpm build && changeset publish",

"clean": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf dist node_modules/.cache",
"reset": "pnpm clean && pnpm reset:modules",
"reset:modules": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf node_modules pnpm-lock.yaml",

"dev-sample": "pnpm --filter ./sample/* -r --parallel dev",
"build-sample": "pnpm --filter ./sample/* -r --parallel build",
"serve-sample": "pnpm --filter ./sample/* -r --parallel serve-build",
"deploy-sample": "cross-env NETLIFY=true pnpm build-sample && pnpm run /^deploy-sample:.*/",
"deploy-sample:host": "netlify deploy --dir=sample/host/dist --site=ae684cea-e6b1-4293-95d6-fc82462654c8 --prod",
"deploy-sample:remote-module": "netlify deploy --dir=sample/remote-module/dist --site=43234f6e-a884-410e-9b4d-f290459f841f --prod",

"dev-docs": "retype start",

"check-updates": "pnpm -r check-updates && npm-check-updates",
"update-deps": "pnpm run /^update-deps:.*/",
"update-deps:npu": "pnpm -r --parallel update-deps && npm-check-updates -u",
"update-deps:delete-lock": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf pnpm-lock.yaml"
"list-outdated-deps": "pnpm outdated -r --format list",
"update-outdated-deps": "pnpm update -r --latest"
},
"devDependencies": {
"@changesets/cli": "2.26.1",
"@changesets/changelog-github": "0.4.8",
"@typescript-eslint/parser": "5.59.11",
"@changesets/cli": "2.26.1",
"@typescript-eslint/parser": "5.60.0",
"@workleap/eslint-plugin": "1.8.2",
"@workleap/typescript-configs": "2.3.2",
"cross-env": "7.0.3",
"eslint": "8.42.0",
"eslint": "8.43.0",
"jest": "29.5.0",
"netlify-cli": "15.6.0",
"npm-check-updates": "16.10.12",
"retypeapp": "3.0.3",
"ts-node": "10.9.1",
"typescript": "5.0.4"
Expand Down
10 changes: 3 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,18 @@
],
"scripts": {
"dev": "tsup --config ./tsup.dev.ts",
"build": "tsup --config ./tsup.build.ts",

"check-updates": "npm-check-updates",
"update-deps": "npm-check-updates -u"
"build": "tsup --config ./tsup.build.ts"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
"@types/react": "18.2.13",
"@types/react-dom": "18.2.6",
"@workleap/eslint-plugin": "1.8.2",
"@workleap/tsup-configs": "2.0.0",
"@workleap/typescript-configs": "2.3.2",
"npm-check-updates": "16.10.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"tsup": "7.0.0",
Expand Down
6 changes: 1 addition & 5 deletions packages/fakes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,14 @@
],
"scripts": {
"dev": "tsup --config ./tsup.dev.ts",
"build": "tsup --config ./tsup.build.ts",

"check-updates": "npm-check-updates",
"update-deps": "npm-check-updates -u"
"build": "tsup --config ./tsup.build.ts"
},
"devDependencies": {
"@types/jest": "29.5.2",
"@workleap/eslint-plugin": "1.8.2",
"@workleap/tsup-configs": "2.0.0",
"@workleap/typescript-configs": "2.3.2",
"jest": "29.5.0",
"npm-check-updates": "16.10.12",
"tsup": "7.0.0",
"typescript": "5.0.4"
},
Expand Down
14 changes: 5 additions & 9 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,34 @@
],
"scripts": {
"dev": "tsup --config ./tsup.dev.ts",
"build": "tsup --config ./tsup.build.ts",

"check-updates": "npm-check-updates",
"update-deps": "npm-check-updates -u"
"build": "tsup --config ./tsup.build.ts"
},
"peerDependencies": {
"react": "*",
"react-dom": "*",
"react-router-dom": "*"
},
"devDependencies": {
"@swc/core": "1.3.64",
"@swc/core": "1.3.66",
"@swc/helpers": "0.5.1",
"@swc/jest": "0.2.26",
"@testing-library/react": "14.0.0",
"@types/jest": "29.5.2",
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
"@types/react": "18.2.13",
"@types/react-dom": "18.2.6",
"@types/react-test-renderer": "18.0.0",
"@workleap/eslint-plugin": "1.8.2",
"@workleap/swc-configs": "1.0.0",
"@workleap/tsup-configs": "2.0.0",
"@workleap/typescript-configs": "2.3.2",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"npm-check-updates": "16.10.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.13.0",
"react-test-renderer": "18.2.0",
"ts-node": "10.9.1",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"tsup": "7.0.0",
"typescript": "5.0.4"
},
Expand Down
16 changes: 6 additions & 10 deletions packages/webpack-module-federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,32 @@
],
"scripts": {
"dev": "tsup --config ./tsup.dev.ts",
"build": "tsup --config ./tsup.build.ts",

"check-updates": "npm-check-updates",
"update-deps": "npm-check-updates -u"
"build": "tsup --config ./tsup.build.ts"
},
"peerDependencies": {
"react": "*",
"react-dom": "*",
"webpack": ">=5.0.0"
},
"devDependencies": {
"@swc/core": "1.3.64",
"@swc/core": "1.3.66",
"@swc/helpers": "0.5.1",
"@swc/jest": "0.2.26",
"@types/jest": "29.5.2",
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
"@types/react": "18.2.13",
"@types/react-dom": "18.2.6",
"@workleap/eslint-plugin": "1.8.2",
"@workleap/swc-configs": "1.0.0",
"@workleap/tsup-configs": "2.0.0",
"@workleap/typescript-configs": "2.3.2",
"jest": "29.5.0",
"npm-check-updates": "16.10.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"ts-node": "10.9.1",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"tsup": "7.0.0",
"typescript": "5.0.4",
"webpack": "5.87.0"
"webpack": "5.88.0"
},
"dependencies": {
"@squide/core": "workspace:*",
Expand Down
Loading