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 66371c4
Show file tree
Hide file tree
Showing 64 changed files with 203 additions and 247 deletions.
122 changes: 50 additions & 72 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@babel/preset-react": "^7.10.1",
"@babel/preset-typescript": "^7.10.1",
"@babel/register": "^7.13.16",
"@swc/helpers": "^0.2.12",
"@swc/helpers": "0.2.12",
"@swc/wasm": "^1.2.58",
"@types/emscripten": "^1.38.0",
"@types/jest": "^24.0.25",
Expand Down
4 changes: 1 addition & 3 deletions packages/acceptance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"pkg-tests-specs"
],
"devDependencies": {
"@swc/helpers": "0.2.12",
"@yarnpkg/cli": "workspace:*",
"@yarnpkg/core": "workspace:*",
"@yarnpkg/fslib": "workspace:*",
Expand All @@ -24,8 +25,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
4 changes: 1 addition & 3 deletions packages/acceptance-tests/pkg-tests-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"devDependencies": {
"@swc/helpers": "0.2.12",
"@types/finalhandler": "1.1.0",
"@types/invariant": "^2.2.30",
"@types/klaw": "^2.0.0",
Expand Down Expand Up @@ -34,8 +35,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
4 changes: 1 addition & 3 deletions packages/acceptance-tests/pkg-tests-fixtures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"license": "BSD-2-Clause",
"devDependencies": {
"@swc/helpers": "0.2.12",
"@yarnpkg/fslib": "workspace:*"
},
"scripts": {
Expand All @@ -15,8 +16,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
4 changes: 1 addition & 3 deletions packages/acceptance-tests/pkg-tests-specs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"directory": "packages/acceptance-tests/pkg-tests-specs"
},
"devDependencies": {
"@swc/helpers": "0.2.12",
"@types/lodash": "^4.14.136",
"@types/tar": "^4.0.4",
"@yarnpkg/cli": "workspace:*",
Expand All @@ -24,8 +25,5 @@
},
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"dependencies": {
"@swc/helpers": "^0.2.12"
}
}
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-pnp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"license": "BSD-2-Clause",
"main": "./sources/index.ts",
"dependencies": {
"@swc/helpers": "^0.2.12",
"tslib": "^1.13.0"
},
"peerDependencies": {
"esbuild": ">=0.8.36"
},
"devDependencies": {
"@swc/helpers": "0.2.12",
"@yarnpkg/pnp": "workspace:*",
"esbuild": "npm:esbuild-wasm@^0.11.20"
},
Expand Down
6 changes: 4 additions & 2 deletions 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 All @@ -27,5 +26,8 @@
"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
},
"stableVersion": "0.2.0"
"stableVersion": "0.2.0",
"devDependencies": {
"@swc/helpers": "0.2.12"
}
}
Loading

0 comments on commit 66371c4

Please sign in to comment.