Skip to content

Commit

Permalink
chore: yarn up 'ses@workspace:^' '@endo/*@workspace:^' (#2416)
Browse files Browse the repository at this point in the history
Refs: #2245 

## Description

Newer Yarn versions permit workspace-relative package references. This
PR uses them to reduce version churn in `yarn.lock` and the dependencies
sections of each `package.json`. A new version of Lerna supports this
feature, so upgrade that, too.

### Security Considerations

This PR helps improve the locality of inter-package dependencies by
avoiding the NPM repository except when publishing.

### Scaling Considerations

n/a

### Documentation Considerations

n/a

### Testing Considerations

Ran unit tests, followed `CONTRIBUTING.md` to verify that `lerna
publish` correctly replaces `workspace:` versions with semver when
publishing to NPM registry.

### Compatibility Considerations

n/a

### Upgrade Considerations

n/a
  • Loading branch information
michaelfig committed Aug 19, 2024
2 parents aaec188 + f6c5c51 commit 46ca503
Show file tree
Hide file tree
Showing 34 changed files with 1,919 additions and 2,568 deletions.
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
"includeMergedTags": true,
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent",
"useNx": false
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.5",
"lerna": "^5.6.2",
"lerna": "^8.1.8",
"lerna-update-wizard": "^0.17.5",
"prettier": "^3.2.5",
"ts-api-utils": "~1.0.1",
"type-coverage": "^2.26.3",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^3.17.1",
"typedoc": "^0.26.6",
"typedoc-plugin-markdown": "^4.2.5",
"typescript": "5.5.2",
"typescript-eslint": "^7.3.1"
},
Expand Down
18 changes: 9 additions & 9 deletions packages/bundle-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@
"lint:types": "tsc"
},
"dependencies": {
"@endo/base64": "^1.0.6",
"@endo/compartment-mapper": "^1.2.0",
"@endo/evasive-transform": "^1.2.0",
"@endo/init": "^1.1.3",
"@endo/promise-kit": "^1.1.3",
"@endo/where": "^1.0.6",
"@endo/base64": "workspace:^",
"@endo/compartment-mapper": "workspace:^",
"@endo/evasive-transform": "workspace:^",
"@endo/init": "workspace:^",
"@endo/promise-kit": "workspace:^",
"@endo/where": "workspace:^",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"acorn": "^8.2.4",
"rollup": "^2.79.1"
},
"devDependencies": {
"@endo/lockdown": "^1.0.8",
"@endo/ses-ava": "^1.2.3",
"@endo/zip": "^1.0.6",
"@endo/lockdown": "workspace:^",
"@endo/ses-ava": "workspace:^",
"@endo/zip": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"eslint": "^8.57.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/captp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@
"lint:types": "tsc"
},
"devDependencies": {
"@endo/init": "^1.1.3",
"@endo/ses-ava": "^1.2.4",
"@endo/init": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "5.5.2"
},
"dependencies": {
"@endo/errors": "^1.2.4",
"@endo/eventual-send": "^1.2.4",
"@endo/marshal": "^1.5.2",
"@endo/nat": "^5.0.9",
"@endo/promise-kit": "^1.1.4"
"@endo/errors": "workspace:^",
"@endo/eventual-send": "workspace:^",
"@endo/marshal": "workspace:^",
"@endo/nat": "workspace:^",
"@endo/promise-kit": "workspace:^"
},
"bugs": {
"url": "https://github.com/endojs/endo/issues"
Expand Down
12 changes: 6 additions & 6 deletions packages/check-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js"
},
"dependencies": {
"@endo/base64": "^1.0.6",
"@endo/compartment-mapper": "^1.2.0",
"@endo/errors": "^1.2.3"
"@endo/base64": "workspace:^",
"@endo/compartment-mapper": "workspace:^",
"@endo/errors": "workspace:^"
},
"devDependencies": {
"@endo/bundle-source": "^3.3.0",
"@endo/init": "^1.1.3",
"@endo/zip": "^1.0.6",
"@endo/bundle-source": "workspace:^",
"@endo/init": "workspace:^",
"@endo/zip": "workspace:^",
"ava": "^6.1.3",
"babel-eslint": "^10.1.0",
"c8": "^7.14.0",
Expand Down
30 changes: 15 additions & 15 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@
"test": "ava"
},
"dependencies": {
"@endo/bundle-source": "^3.3.0",
"@endo/compartment-mapper": "^1.2.1",
"@endo/daemon": "^2.4.1",
"@endo/errors": "^1.2.4",
"@endo/eventual-send": "^1.2.4",
"@endo/exo": "^1.5.2",
"@endo/far": "^1.1.4",
"@endo/import-bundle": "^1.2.1",
"@endo/lockdown": "^1.0.9",
"@endo/pass-style": "^1.4.2",
"@endo/patterns": "^1.4.2",
"@endo/promise-kit": "^1.1.4",
"@endo/stream-node": "^1.1.4",
"@endo/where": "^1.0.6",
"@endo/bundle-source": "workspace:^",
"@endo/compartment-mapper": "workspace:^",
"@endo/daemon": "workspace:^",
"@endo/errors": "workspace:^",
"@endo/eventual-send": "workspace:^",
"@endo/exo": "workspace:^",
"@endo/far": "workspace:^",
"@endo/import-bundle": "workspace:^",
"@endo/lockdown": "workspace:^",
"@endo/pass-style": "workspace:^",
"@endo/patterns": "workspace:^",
"@endo/promise-kit": "workspace:^",
"@endo/stream-node": "workspace:^",
"@endo/where": "workspace:^",
"commander": "^5.0.0",
"open": "^9.1.0",
"ses": "^1.7.0"
"ses": "workspace:^"
},
"devDependencies": {
"ava": "^6.1.3",
Expand Down
10 changes: 5 additions & 5 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
"test:xs": "exit 0"
},
"dependencies": {
"@endo/errors": "^1.2.4",
"@endo/eventual-send": "^1.2.4",
"@endo/promise-kit": "^1.1.4"
"@endo/errors": "workspace:^",
"@endo/eventual-send": "workspace:^",
"@endo/promise-kit": "workspace:^"
},
"devDependencies": {
"@endo/lockdown": "^1.0.9",
"@endo/ses-ava": "^1.2.4",
"@endo/lockdown": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.30.7",
Expand Down
8 changes: 4 additions & 4 deletions packages/compartment-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"test": "ava"
},
"dependencies": {
"@endo/cjs-module-analyzer": "^1.0.6",
"@endo/module-source": "^1.0.1",
"@endo/zip": "^1.0.6",
"ses": "^1.7.0"
"@endo/cjs-module-analyzer": "workspace:^",
"@endo/module-source": "workspace:^",
"@endo/zip": "workspace:^",
"ses": "workspace:^"
},
"devDependencies": {
"ava": "^6.1.3",
Expand Down
40 changes: 20 additions & 20 deletions packages/daemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,29 @@
"test:clean": "rm -rf tmp && yarn test"
},
"dependencies": {
"@endo/base64": "^1.0.6",
"@endo/captp": "^4.2.2",
"@endo/compartment-mapper": "^1.2.1",
"@endo/errors": "^1.2.4",
"@endo/eventual-send": "^1.2.4",
"@endo/exo": "^1.5.2",
"@endo/far": "^1.1.4",
"@endo/import-bundle": "^1.2.1",
"@endo/init": "^1.1.3",
"@endo/lockdown": "^1.0.9",
"@endo/marshal": "^1.5.2",
"@endo/netstring": "^1.0.9",
"@endo/patterns": "^1.4.2",
"@endo/promise-kit": "^1.1.4",
"@endo/stream": "^1.2.4",
"@endo/stream-node": "^1.1.4",
"@endo/where": "^1.0.6",
"ses": "^1.7.0",
"@endo/base64": "workspace:^",
"@endo/captp": "workspace:^",
"@endo/compartment-mapper": "workspace:^",
"@endo/errors": "workspace:^",
"@endo/eventual-send": "workspace:^",
"@endo/exo": "workspace:^",
"@endo/far": "workspace:^",
"@endo/import-bundle": "workspace:^",
"@endo/init": "workspace:^",
"@endo/lockdown": "workspace:^",
"@endo/marshal": "workspace:^",
"@endo/netstring": "workspace:^",
"@endo/patterns": "workspace:^",
"@endo/promise-kit": "workspace:^",
"@endo/stream": "workspace:^",
"@endo/stream-node": "workspace:^",
"@endo/where": "workspace:^",
"ses": "workspace:^",
"ws": "^8.13.0"
},
"devDependencies": {
"@endo/bundle-source": "^3.3.0",
"@endo/ses-ava": "^1.2.4",
"@endo/bundle-source": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"babel-eslint": "^10.1.0",
"c8": "^7.14.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"test:xs": "exit 0"
},
"dependencies": {
"ses": "^1.7.0"
"ses": "workspace:^"
},
"devDependencies": {
"@endo/lockdown": "^1.0.9",
"@endo/ses-ava": "^1.2.4",
"@endo/lockdown": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"ses0_18_3": "npm:[email protected]",
Expand Down
5 changes: 1 addition & 4 deletions packages/evasive-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"devDependencies": {
"@babel/types": "^7.24.0",
"@endo/ses-ava": "^1.2.4",
"@endo/ses-ava": "workspace:^",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/babel__generator": "^7.6.8",
Expand Down Expand Up @@ -79,8 +79,5 @@
"@babel/parser": "^7.23.6",
"@babel/traverse": "^7.23.6",
"source-map-js": "^1.2.0"
},
"resolutions": {
"@babel/types": "7.23.0"
}
}
4 changes: 2 additions & 2 deletions packages/eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
},
"homepage": "https://github.com/endojs/endo#readme",
"dependencies": {
"@endo/env-options": "^1.1.5"
"@endo/env-options": "workspace:^"
},
"devDependencies": {
"@endo/lockdown": "^1.0.9",
"@endo/lockdown": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.30.7",
Expand Down
18 changes: 9 additions & 9 deletions packages/exo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"test": "ava"
},
"dependencies": {
"@endo/common": "^1.2.4",
"@endo/env-options": "^1.1.5",
"@endo/errors": "^1.2.4",
"@endo/eventual-send": "^1.2.4",
"@endo/far": "^1.1.4",
"@endo/pass-style": "^1.4.2",
"@endo/patterns": "^1.4.2"
"@endo/common": "workspace:^",
"@endo/env-options": "workspace:^",
"@endo/errors": "workspace:^",
"@endo/eventual-send": "workspace:^",
"@endo/far": "workspace:^",
"@endo/pass-style": "workspace:^",
"@endo/patterns": "workspace:^"
},
"devDependencies": {
"@endo/init": "^1.1.3",
"@endo/ses-ava": "^1.2.4",
"@endo/init": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"babel-eslint": "^10.1.0",
"eslint": "^8.57.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/far/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
},
"homepage": "https://github.com/endojs/endo#readme",
"dependencies": {
"@endo/errors": "^1.2.4",
"@endo/eventual-send": "^1.2.4",
"@endo/pass-style": "^1.4.2"
"@endo/errors": "workspace:^",
"@endo/eventual-send": "workspace:^",
"@endo/pass-style": "workspace:^"
},
"devDependencies": {
"@endo/init": "^1.1.3",
"@endo/ses-ava": "^1.2.4",
"@endo/init": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "5.5.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/import-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"lint:types": "tsc"
},
"dependencies": {
"@endo/base64": "^1.0.6",
"@endo/compartment-mapper": "^1.2.1",
"@endo/errors": "^1.2.4",
"@endo/where": "^1.0.6",
"ses": "^1.7.0"
"@endo/base64": "workspace:^",
"@endo/compartment-mapper": "workspace:^",
"@endo/errors": "workspace:^",
"@endo/where": "workspace:^",
"ses": "workspace:^"
},
"devDependencies": {
"@endo/bundle-source": "^3.3.0",
"@endo/init": "^1.1.3",
"@endo/ses-ava": "^1.2.4",
"@endo/bundle-source": "workspace:^",
"@endo/init": "workspace:^",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "5.5.2"
Expand Down
10 changes: 5 additions & 5 deletions packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"lint:types": "tsc"
},
"devDependencies": {
"@endo/compartment-mapper": "^1.2.0",
"@endo/compartment-mapper": "workspace:^",
"ava": "^6.1.3",
"typescript": "5.5.2"
},
"dependencies": {
"@endo/base64": "^1.0.6",
"@endo/eventual-send": "^1.2.3",
"@endo/lockdown": "^1.0.8",
"@endo/promise-kit": "^1.1.3"
"@endo/base64": "workspace:^",
"@endo/eventual-send": "workspace:^",
"@endo/lockdown": "workspace:^",
"@endo/promise-kit": "workspace:^"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/lockdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"lint": "eslint '**/*.js'"
},
"dependencies": {
"ses": "^1.7.0"
"ses": "workspace:^"
},
"files": [
"LICENSE*",
Expand Down
10 changes: 5 additions & 5 deletions packages/lp32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
"test": "ava"
},
"dependencies": {
"@endo/errors": "^1.2.4",
"@endo/init": "^1.1.3",
"@endo/stream": "^1.2.4",
"ses": "^1.7.0"
"@endo/errors": "workspace:^",
"@endo/init": "workspace:^",
"@endo/stream": "workspace:^",
"ses": "workspace:^"
},
"devDependencies": {
"@endo/ses-ava": "^1.2.4",
"@endo/ses-ava": "workspace:^",
"ava": "^6.1.3",
"babel-eslint": "^10.1.0",
"c8": "^7.14.0",
Expand Down
Loading

0 comments on commit 46ca503

Please sign in to comment.