Skip to content

Commit

Permalink
chore: remove unused dependencies (#4186)
Browse files Browse the repository at this point in the history
* chore: remove unused dependencies

* chore(core): remove unused pnp dependency

* chore: remove more unused dependencies

* test: remove unused dependencies

* test: resolve setup file

(cherry picked from commit fdcf423)
  • Loading branch information
merceyz committed Oct 21, 2023
1 parent d10a7b5 commit 1a48251
Show file tree
Hide file tree
Showing 35 changed files with 277 additions and 732 deletions.
748 changes: 231 additions & 517 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file removed .yarn/cache/asap-npm-1.0.0-b923e7721f-5e8fe70a86.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/is-npm-3.3.0-90b1d93580-81fad3b40c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/once-npm-1.3.3-595f0882a4-8e832de08b.zip
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.
35 changes: 35 additions & 0 deletions .yarn/versions/bfc60675.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
releases:
"@yarnpkg/cli": patch
"@yarnpkg/core": patch
"@yarnpkg/libui": patch
"@yarnpkg/plugin-constraints": patch
"@yarnpkg/plugin-dlx": patch
"@yarnpkg/plugin-essentials": patch
"@yarnpkg/plugin-http": patch
"@yarnpkg/plugin-nm": patch
"@yarnpkg/pnpify": patch
"@yarnpkg/shell": patch

declined:
- "@yarnpkg/plugin-compat"
- "@yarnpkg/plugin-exec"
- "@yarnpkg/plugin-file"
- "@yarnpkg/plugin-git"
- "@yarnpkg/plugin-github"
- "@yarnpkg/plugin-init"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-link"
- "@yarnpkg/plugin-npm"
- "@yarnpkg/plugin-npm-cli"
- "@yarnpkg/plugin-pack"
- "@yarnpkg/plugin-patch"
- "@yarnpkg/plugin-pnp"
- "@yarnpkg/plugin-pnpm"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- "@yarnpkg/builder"
- "@yarnpkg/doctor"
- "@yarnpkg/nm"
- "@yarnpkg/sdks"
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
`<rootDir>/packages/plugin-compat`,
],
reporters: [`default`, [require.resolve(`jest-junit`), {output: `<rootDir>/junit.xml`}]],
setupFiles: [`@yarnpkg/cli/sources/polyfills.ts`],
setupFiles: [require.resolve(`@yarnpkg/cli/sources/polyfills.ts`)],
testTimeout: 50000,
};
4 changes: 0 additions & 4 deletions packages/acceptance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
"pkg-tests-specs"
],
"devDependencies": {
"@yarnpkg/cli": "workspace:^",
"@yarnpkg/core": "workspace:^",
"@yarnpkg/fslib": "workspace:^",
"@yarnpkg/monorepo": "workspace:^",
"is-wsl": "^2.1.1",
"jest-json": "^2.0.0",
"pkg-tests-core": "workspace:^"
},
Expand Down
1 change: 0 additions & 1 deletion packages/acceptance-tests/pkg-tests-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@types/serve-static": "1.13.3",
"@types/tar-fs": "^1.16.1",
"@types/uuid": "^8",
"@yarnpkg/cli": "workspace:^",
"@yarnpkg/core": "workspace:^",
"@yarnpkg/fslib": "workspace:^",
"@yarnpkg/parsers": "workspace:^",
Expand Down
1 change: 0 additions & 1 deletion packages/acceptance-tests/pkg-tests-specs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"@yarnpkg/monorepo": "workspace:^",
"@yarnpkg/parsers": "workspace:^",
"@yarnpkg/pnp": "workspace:^",
"fs-extra": "^7.0.1",
"lodash": "^4.17.15",
"pkg-tests-core": "workspace:^",
"semver": "^7.1.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
const {readdir} = require(`fs-extra`);
import {xfs} from '@yarnpkg/fslib';

describe(`autoClean`, () => {
test(`it should remove inactive entries from the cache`, makeTemporaryEnv({
dependencies: {
[`one-fixed-dep`]: `1.0.0`,
},
}, async ({path, run, source}) => {
await run(`install`);
const fileCount1 = (await readdir(`${path}/.yarn/cache`)).length;
const fileCount1 = (await xfs.readdirPromise(`${path}/.yarn/cache`)).length;

await run(`remove`, `one-fixed-dep`);
const fileCount2 = (await readdir(`${path}/.yarn/cache`)).length;
const fileCount2 = (await xfs.readdirPromise(`${path}/.yarn/cache`)).length;

expect(fileCount2).toEqual(fileCount1 - 2);
}));
Expand All @@ -21,10 +22,10 @@ describe(`autoClean`, () => {
},
}, async ({path, run, source}) => {
await run(`install`);
const fileCount1 = (await readdir(`${path}/.yarn/cache`)).length;
const fileCount1 = (await xfs.readdirPromise(`${path}/.yarn/cache`)).length;

await run(`remove`, `one-fixed-dep`);
const fileCount2 = (await readdir(`${path}/.yarn/cache`)).length;
const fileCount2 = (await xfs.readdirPromise(`${path}/.yarn/cache`)).length;

expect(fileCount2).toEqual(fileCount1 - 1);
}));
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-constraints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@yarnpkg/fslib": "workspace:^",
"clipanion": "3.2.0-rc.4",
"lodash": "^4.17.15",
"node-emoji": "^1.8.1",
"tau-prolog": "^0.2.66",
"tslib": "^1.13.0"
},
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 @@ -5,7 +5,6 @@
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:^",
"@yarnpkg/json-proxy": "workspace:^",
"clipanion": "3.2.0-rc.4",
"tslib": "^1.13.0"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/plugin-essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "./sources/index.ts",
"dependencies": {
"@yarnpkg/fslib": "workspace:^",
"@yarnpkg/json-proxy": "workspace:^",
"@yarnpkg/parsers": "workspace:^",
"ci-info": "^3.2.0",
"clipanion": "3.2.0-rc.4",
Expand All @@ -25,7 +24,6 @@
"@types/lodash": "^4.14.136",
"@types/micromatch": "^4.0.1",
"@types/semver": "^7.1.0",
"@types/treeify": "^1.0.0",
"@yarnpkg/cli": "workspace:^",
"@yarnpkg/core": "workspace:^",
"@yarnpkg/plugin-git": "workspace:^"
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": {
"@yarnpkg/fslib": "workspace:^",
"tslib": "^1.13.0"
},
"peerDependencies": {
Expand Down
5 changes: 1 addition & 4 deletions packages/plugin-nm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@
"@yarnpkg/pnp": "workspace:^",
"@zkochan/cmd-shim": "^5.1.0",
"clipanion": "3.2.0-rc.4",
"micromatch": "^4.0.2",
"tslib": "^1.13.0"
},
"peerDependencies": {
"@yarnpkg/cli": "workspace:^",
"@yarnpkg/core": "workspace:^"
},
"devDependencies": {
"@types/micromatch": "^4.0.1",
"@yarnpkg/cli": "workspace:^",
"@yarnpkg/core": "workspace:^",
"@yarnpkg/plugin-stage": "workspace:^"
"@yarnpkg/core": "workspace:^"
},
"version": "3.1.5",
"nextVersion": {
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 @@ -25,7 +25,6 @@
"@yarnpkg/plugin-pnp": "workspace:^",
"@yarnpkg/plugin-pnpm": "workspace:^",
"@yarnpkg/shell": "workspace:^",
"chalk": "^3.0.0",
"ci-info": "^3.2.0",
"clipanion": "3.2.0-rc.4",
"semver": "^7.1.2",
Expand Down
7 changes: 0 additions & 7 deletions packages/yarnpkg-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
"@types/semver": "^7.1.0",
"@types/treeify": "^1.0.0",
"@yarnpkg/fslib": "workspace:^",
"@yarnpkg/json-proxy": "workspace:^",
"@yarnpkg/libzip": "workspace:^",
"@yarnpkg/parsers": "workspace:^",
"@yarnpkg/pnp": "workspace:^",
"@yarnpkg/shell": "workspace:^",
"camelcase": "^5.3.1",
"chalk": "^3.0.0",
Expand All @@ -22,15 +20,10 @@
"diff": "^5.1.0",
"globby": "^11.0.1",
"got": "^11.7.0",
"json-file-plus": "^3.3.1",
"lodash": "^4.17.15",
"micromatch": "^4.0.2",
"mkdirp": "^0.5.1",
"p-limit": "^2.2.0",
"pluralize": "^7.0.0",
"pretty-bytes": "^5.1.0",
"semver": "^7.1.2",
"stream-to-promise": "^2.2.0",
"strip-ansi": "^6.0.0",
"tar": "^6.0.5",
"tinylogic": "^1.0.3",
Expand Down
2 changes: 0 additions & 2 deletions packages/yarnpkg-libui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"directory": "packages/yarnpkg-libui"
},
"dependencies": {
"chalk": "^3.0.0",
"redux": "^4.0.0",
"tslib": "^1.13.0"
},
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions packages/yarnpkg-pnpify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
"@yarnpkg/fslib": "workspace:^",
"@yarnpkg/nm": "workspace:^",
"clipanion": "3.2.0-rc.4",
"cross-spawn": "7.0.3",
"tslib": "^1.13.0"
},
"devDependencies": {
"@types/cross-spawn": "6.0.0",
"@yarnpkg/monorepo": "workspace:^",
"@yarnpkg/pnp": "workspace:^"
},
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 @@ -12,7 +12,6 @@
"cross-spawn": "7.0.3",
"fast-glob": "^3.2.2",
"micromatch": "^4.0.2",
"stream-buffers": "^3.0.2",
"tslib": "^1.13.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 1a48251

Please sign in to comment.