Skip to content

Commit

Permalink
use constraint to add @swc/helpers dep to each workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Jun 4, 2021
1 parent 508a322 commit 4b2bb2a
Show file tree
Hide file tree
Showing 43 changed files with 3 additions and 53 deletions.
2 changes: 2 additions & 0 deletions constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ gen_enforced_dependency(WorkspaceCwd, 'tslib', 'range', 'dependencies') :-
% Only proceed if the workspace doesn't already depend on tslib
\+ workspace_has_dependency(WorkspaceCwd, 'tslib', _, _).

gen_enforced_dependency(WorkspaceCwd, '@swc/helpers', '0.2.12', 'devDependencies').

% This rule will enforce that all packages must have a "BSD-2-Clause" license field
gen_enforced_field(WorkspaceCwd, 'license', 'BSD-2-Clause').

Expand Down
3 changes: 0 additions & 3 deletions packages/acceptance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
3 changes: 0 additions & 3 deletions packages/acceptance-tests/pkg-tests-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
3 changes: 0 additions & 3 deletions packages/acceptance-tests/pkg-tests-fixtures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
3 changes: 0 additions & 3 deletions packages/acceptance-tests/pkg-tests-specs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
1 change: 0 additions & 1 deletion packages/esbuild-plugin-pnp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"tslib": "^1.13.0"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"dependencies": {
"@rushstack/eslint-patch": "^1.0.6",
"@swc/helpers": "^0.2.12",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"eslint-plugin-arca": "^0.10.0",
Expand Down
1 change: 0 additions & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@reach/router": "^1.1.1",
"@rehooks/component-size": "^1.0.3",
"@strictsoftware/typedoc-plugin-monorepo": "patch:@strictsoftware/typedoc-plugin-monorepo@^0.2.2#./.patches/@strictsoftware/typedoc-plugin-monorepo.patch",
"@swc/helpers": "^0.2.12",
"@types/marked": "^1.1.0",
"@types/react": "^16.8.0",
"@types/react-helmet": "^6.1.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/plugin-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,5 @@
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"stableVersion": "2.2.0",
"dependencies": {
"@swc/helpers": "^0.2.12"
}
"stableVersion": "2.2.0"
}
1 change: 0 additions & 1 deletion packages/plugin-constraints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"clipanion": "^3.0.0-rc.10",
"lodash": "^4.17.15",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-dlx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/json-proxy": "workspace:^2.1.1-rc.3",
"clipanion": "^3.0.0-rc.10",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/json-proxy": "workspace:^2.1.1-rc.3",
"@yarnpkg/parsers": "workspace:^2.4.0-rc.3",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-exec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/builder": "workspace:^3.0.0-rc.5",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"tslib": "^1.13.0"
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@types/semver": "^7.1.0",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"git-url-parse": "11.1.2",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"clipanion": "^3.0.0-rc.10",
"lodash": "^4.17.15",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-interactive-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/libui": "workspace:^2.1.2-rc.5",
"algoliasearch": "^4.2.0",
"clipanion": "^3.0.0-rc.10",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-node-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/libzip": "workspace:^2.2.2-rc.3",
"@yarnpkg/parsers": "workspace:^2.4.0-rc.3",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-npm-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"clipanion": "^3.0.0-rc.10",
"enquirer": "^2.3.6",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"enquirer": "^2.3.6",
"semver": "^7.1.2",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"clipanion": "^3.0.0-rc.10",
"micromatch": "^4.0.2",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-patch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/libzip": "workspace:^2.2.2-rc.3",
"clipanion": "^3.0.0-rc.10",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-pnp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@types/semver": "^7.1.0",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/plugin-stage": "workspace:^3.0.0-rc.5",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-stage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"clipanion": "^3.0.0-rc.10",
"tslib": "^1.13.0"
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/plugin-pack": "workspace:^3.0.0-rc.5",
"algoliasearch": "^4.2.0",
"semver": "^7.1.2",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/libui": "workspace:^2.1.2-rc.5",
"@yarnpkg/parsers": "workspace:^2.4.0-rc.3",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-workspace-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"clipanion": "^3.0.0-rc.10",
"micromatch": "^4.0.2",
Expand Down
1 change: 0 additions & 1 deletion packages/vscode-zipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"directory": "packages/vscode-zipfs"
},
"dependencies": {
"@swc/helpers": "^0.2.12",
"tslib": "^1.13.0"
},
"stableVersion": "2.2.4"
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"bin": "./sources/boot-cli-dev.js",
"dependencies": {
"@babel/core": "^7.10.2",
"@swc/helpers": "^0.2.12",
"@yarnpkg/cli": "workspace:^3.0.0-rc.5",
"@yarnpkg/core": "workspace:^3.0.0-rc.5",
"@yarnpkg/esbuild-plugin-pnp": "workspace:packages/esbuild-plugin-pnp",
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/core": "workspace:^3.0.0-rc.5",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/libzip": "workspace:^2.2.2-rc.3",
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"sideEffects": false,
"dependencies": {
"@arcanis/slice-ansi": "^1.0.2",
"@swc/helpers": "^0.2.12",
"@types/semver": "^7.1.0",
"@types/treeify": "^1.0.0",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-doctor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"bin": "./sources/boot-cli-dev.js",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/cli": "workspace:^3.0.0-rc.5",
"@yarnpkg/core": "workspace:^3.0.0-rc.5",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-fslib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "./sources/index.ts",
"sideEffects": false,
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/libzip": "workspace:^2.2.2-rc.3",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-json-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-libui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"directory": "packages/yarnpkg-libui"
},
"dependencies": {
"@swc/helpers": "^0.2.12",
"chalk": "^3.0.0",
"redux": "^4.0.0",
"tslib": "^1.13.0"
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-libzip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"prettier": "^1.19.1"
},
"dependencies": {
"@swc/helpers": "^0.2.12",
"@types/emscripten": "^1.38.0",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-parsers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"js-yaml": "^3.10.0",
"tslib": "^1.13.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-pnp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@types/node": "^13.7.0",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"resolve.exports": "^1.0.2",
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-pnpify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"types": "./sources/index.ts",
"sideEffects": false,
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/core": "workspace:^3.0.0-rc.5",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/parsers": "workspace:^2.4.0-rc.3",
Expand Down
1 change: 0 additions & 1 deletion packages/yarnpkg-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "./sources/index.ts",
"bin": "./sources/boot-cli-dev.js",
"dependencies": {
"@swc/helpers": "^0.2.12",
"@yarnpkg/fslib": "workspace:^2.5.0-rc.5",
"@yarnpkg/parsers": "workspace:^2.4.0-rc.3",
"chalk": "^3.0.0",
Expand Down

0 comments on commit 4b2bb2a

Please sign in to comment.