Skip to content

Commit

Permalink
chore(repo): avoid global extends
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed May 23, 2023
1 parent 8709461 commit 44c40e2
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 40 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ commands:
steps:
- checkout
- cached-dependencies
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- build

jobs:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"prepare": "husky install",
"prerelease": "patch-package",
"release": "yarn prerelease && yarn workspaces foreach run release",
"publish:release": "yarn npm publish",
"jest": "jest"
},
"workspaces": {
Expand All @@ -48,7 +49,6 @@
]
},
"release": {
"extends": "semantic-release-monorepo",
"branches": [
{
"name": "develop",
Expand All @@ -59,7 +59,7 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"semantic-release-yarn",
"@semantic-release/npm",
[
"@semantic-release/github",
{
Expand All @@ -76,6 +76,7 @@
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "https://registry.npmjs.org/@achingbrain/semantic-release-github/-/semantic-release-github-0.0.2.tgz",
"@semantic-release/npm": "^10.0.3",
"@semantic-release/release-notes-generator": "^10.0.3",
"@swc/core": "^1.2.210",
"@swc/jest": "^0.2.21",
Expand Down Expand Up @@ -113,7 +114,6 @@
"prettier": "^2.4.1",
"semantic-release": "^21.0.2",
"semantic-release-monorepo": "https://registry.npmjs.org/@achingbrain/semantic-release-monorepo/-/semantic-release-monorepo-8.0.0.tgz",
"semantic-release-yarn": "^1.0.0",
"ts-jest": "^28.0.5",
"ts-node": "^10.8.2",
"typescript": "^4.4.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build.nix": "pkg . --targets linux,macos,alpine --out-path ./binaries",
"cli": "node -r ts-node/register/transpile-only -r tsconfig-paths/register src/index.ts",
"cli:debug": "node -r ts-node/register/transpile-only -r tsconfig-paths/register --inspect-brk src/index.ts",
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@stoplight/json": "~3.20.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"node": "^12.20 || >= 14.13"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@stoplight/better-ajv-errors": "1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/formats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"node": ">=12"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@stoplight/json": "^3.17.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/formatters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"url": "https://github.com/stoplightio/spectral.git"
},
"scripts": {
"release": "semantic-release",
"release": "semantic-release -e semantic-release-monorepo",
"pretest": "yarn prebuild",
"prelint": "yarn prebuild",
"prebuild": "node scripts/bundle-html-templates.mjs"
Expand Down
2 changes: 1 addition & 1 deletion packages/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"node": ">=12"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@stoplight/better-ajv-errors": "1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/parsers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/stoplightio/spectral.git"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@stoplight/json": "~3.20.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ref-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/stoplightio/spectral.git"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@stoplight/json-ref-readers": "1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ruleset-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"url": "https://github.com/stoplightio/spectral.git"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@rollup/plugin-commonjs": "~22.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ruleset-migrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"scripts": {
"pretest": "ts-node -T ./scripts/generate-test-fixtures.ts && yarn prebuild",
"prebuild": "ts-node -T ./scripts/compile-schemas.ts",
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
}
}
2 changes: 1 addition & 1 deletion packages/rulesets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/stoplightio/spectral.git"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@asyncapi/specs": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/stoplightio/spectral.git"
},
"scripts": {
"release": "semantic-release"
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@stoplight/json": "^3.20.1",
Expand Down
30 changes: 5 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ __metadata:
languageName: node
linkType: hard

"@semantic-release/npm@npm:^10.0.2":
"@semantic-release/npm@npm:^10.0.2, @semantic-release/npm@npm:^10.0.3":
version: 10.0.3
resolution: "@semantic-release/npm@npm:10.0.3"
dependencies:
Expand Down Expand Up @@ -5203,7 +5203,7 @@ __metadata:
languageName: node
linkType: hard

"cosmiconfig@npm:^8.0.0, cosmiconfig@npm:^8.1.0":
"cosmiconfig@npm:^8.0.0":
version: 8.1.3
resolution: "cosmiconfig@npm:8.1.3"
dependencies:
Expand Down Expand Up @@ -6762,7 +6762,7 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^11.0.0, fs-extra@npm:^11.1.0":
"fs-extra@npm:^11.0.0":
version: 11.1.1
resolution: "fs-extra@npm:11.1.1"
dependencies:
Expand Down Expand Up @@ -12113,6 +12113,7 @@ __metadata:
"@semantic-release/changelog": ^6.0.3
"@semantic-release/git": ^10.0.1
"@semantic-release/github": "https://registry.npmjs.org/@achingbrain/semantic-release-github/-/semantic-release-github-0.0.2.tgz"
"@semantic-release/npm": ^10.0.3
"@semantic-release/release-notes-generator": ^10.0.3
"@swc/core": ^1.2.210
"@swc/jest": ^0.2.21
Expand Down Expand Up @@ -12150,7 +12151,6 @@ __metadata:
prettier: ^2.4.1
semantic-release: ^21.0.2
semantic-release-monorepo: "https://registry.npmjs.org/@achingbrain/semantic-release-monorepo/-/semantic-release-monorepo-8.0.0.tgz"
semantic-release-yarn: ^1.0.0
ts-jest: ^28.0.5
ts-node: ^10.8.2
typescript: ^4.4.4
Expand Down Expand Up @@ -12241,26 +12241,6 @@ __metadata:
languageName: node
linkType: hard

"semantic-release-yarn@npm:^1.0.0":
version: 1.0.0
resolution: "semantic-release-yarn@npm:1.0.0"
dependencies:
"@semantic-release/error": ^3.0.0
aggregate-error: ^4.0.1
cosmiconfig: ^8.1.0
execa: ^7.0.0
fs-extra: ^11.1.0
js-yaml: ^4.1.0
lodash: ^4.17.21
nerf-dart: ^1.0.0
read-pkg: ^7.1.0
semver: ^7.3.8
peerDependencies:
semantic-release: ">=19.0.0"
checksum: 5eb38a09c708dad9d1680a58fd2d0049664331fbdeb7947d79b9bc2a17f0a9e48f85d1181f2857d8fa3c1dddb205f6ca7f661b983378f9f52168fa88037a87ce
languageName: node
linkType: hard

"semantic-release@npm:^21.0.2":
version: 21.0.2
resolution: "semantic-release@npm:21.0.2"
Expand Down Expand Up @@ -12351,7 +12331,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:7.x, semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.1.2, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.1":
"semver@npm:7.x, semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.1.2, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.1":
version: 7.5.1
resolution: "semver@npm:7.5.1"
dependencies:
Expand Down

0 comments on commit 44c40e2

Please sign in to comment.