diff --git a/.eslintignore b/.eslintignore index 116caa1278..8ab8376580 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ fixtures +__fixtures__ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 716a6282ff..ca6890ac15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,8 +43,8 @@ jobs: run: npm add --global npm@7 - name: pnpm install run: pnpm install - - name: Audit - run: pnpm audit + # - name: Audit + # run: pnpm audit - name: Cache TypeScript and Jest uses: actions/cache@v3 with: diff --git a/.meta-updater/package.json b/.meta-updater/package.json index ada6102ab1..add3733246 100644 --- a/.meta-updater/package.json +++ b/.meta-updater/package.json @@ -7,8 +7,8 @@ "compile": "tsc --build" }, "dependencies": { - "@pnpm/lockfile-file": "workspace:*", - "@pnpm/types": "workspace:*", + "@pnpm/lockfile-file": "6.0.2", + "@pnpm/types": "8.9.0", "@types/normalize-path": "^3.0.0", "is-subdir": "^1.2.0", "load-json-file": "^6.2.0", diff --git a/.meta-updater/src/index.ts b/.meta-updater/src/index.ts index c1c19b2805..7c78d63abf 100644 --- a/.meta-updater/src/index.ts +++ b/.meta-updater/src/index.ts @@ -13,10 +13,11 @@ const NEXT_TAG = 'next-7' const CLI_PKG_NAME = 'pnpm' export default async (workspaceDir: string) => { - const pnpmManifest = loadJsonFile.sync(path.join(workspaceDir, 'packages/pnpm/package.json')) + const pnpmManifest = loadJsonFile.sync(path.join(workspaceDir, 'pnpm/package.json')) const pnpmVersion = pnpmManifest!['version'] // eslint-disable-line const pnpmMajorKeyword = `pnpm${pnpmVersion.split('.')[0]}` - const pkgsDir = path.join(workspaceDir, 'packages') + const privatePkgsDir = path.join(workspaceDir, 'privatePackages') + const utilsDir = path.join(workspaceDir, 'utils') const lockfile = await readWantedLockfile(workspaceDir, { ignoreIncompatible: false }) if (lockfile == null) { throw new Error('no lockfile found') @@ -30,21 +31,15 @@ export default async (workspaceDir: string) => { manifest.scripts!['release'] = `pnpm --filter=@pnpm/exe publish --tag=${NEXT_TAG} --access=public && pnpm publish --filter=!pnpm --filter=!@pnpm/exe --access=public && pnpm publish --filter=pnpm --tag=${NEXT_TAG} --access=public` return manifest } - if (!isSubdir(pkgsDir, dir)) { - if (manifest.name) { - manifest.devDependencies = { - ...manifest.devDependencies, - [manifest.name]: `workspace:*`, - } - } - return manifest - } if (manifest.name && manifest.name !== CLI_PKG_NAME) { manifest.devDependencies = { ...manifest.devDependencies, [manifest.name]: `workspace:*`, } + } else if (manifest.name === CLI_PKG_NAME && manifest.devDependencies) { + delete manifest.devDependencies[manifest.name] } + if (manifest.private || isSubdir(privatePkgsDir, dir) || isSubdir(utilsDir, dir)) return manifest manifest.keywords = [ pnpmMajorKeyword, ...(manifest.keywords ?? []).filter((keyword) => !/^pnpm[0-9]+$/.test(keyword)), diff --git a/.meta-updater/tsconfig.json b/.meta-updater/tsconfig.json index e28fff87bd..85fcd08076 100644 --- a/.meta-updater/tsconfig.json +++ b/.meta-updater/tsconfig.json @@ -9,12 +9,5 @@ "src/**/*.ts", "../typings/**/*.d.ts" ], - "references": [ - { - "path": "../packages/lockfile-file" - }, - { - "path": "../packages/types" - } - ] + "references": [] } diff --git a/.npmrc b/.npmrc index 59258dafe1..9bd88f00c3 100644 --- a/.npmrc +++ b/.npmrc @@ -2,7 +2,7 @@ git-checks = false hoist-pattern[] = jest-runner -link-workspace-packages = true +link-workspace-packages = false shared-workspace-lockfile = true publish-branch = main pnpmfile = .pnpmfile.cjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 239626051b..96e00f7b91 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,7 +18,7 @@ ## Setting Up the Environment 1. Run `pnpm install` in the root of the repository to install all dependencies. -1. Run `cd packages/pnpm/dev && pnpm link -g` to make pnpm from the repository available in the command line via the `pd` command. +1. Run `cd pnpm/dev && pnpm link -g` to make pnpm from the repository available in the command line via the `pd` command. 1. Return to the root of the repository and run `pnpm run compile` to create an initial build of pnpm from the source in the repository. 1. Now you can change any source code file and run `pd [command] [flags]` to run `pnpm` directly from the source code by compiling all the files without typechecking in memory. 1. Alternatively, for recompiling all the projects with typechecking after your changes, again run `pnpm run compile` in the root of the repository. To run a task that will recompile the projects on change, run `pnpm run watch`. diff --git a/fixtures/.gitignore b/__fixtures__/.gitignore similarity index 100% rename from fixtures/.gitignore rename to __fixtures__/.gitignore diff --git a/fixtures/.npmrc b/__fixtures__/.npmrc similarity index 100% rename from fixtures/.npmrc rename to __fixtures__/.npmrc diff --git a/fixtures/circular/package.json b/__fixtures__/circular/package.json similarity index 100% rename from fixtures/circular/package.json rename to __fixtures__/circular/package.json diff --git a/fixtures/circular/pnpm-lock.yaml b/__fixtures__/circular/pnpm-lock.yaml similarity index 100% rename from fixtures/circular/pnpm-lock.yaml rename to __fixtures__/circular/pnpm-lock.yaml diff --git a/fixtures/empty/package.json b/__fixtures__/empty/package.json similarity index 100% rename from fixtures/empty/package.json rename to __fixtures__/empty/package.json diff --git a/fixtures/fixture-with-external-shrinkwrap/pkg/.npmrc b/__fixtures__/fixture-with-external-shrinkwrap/pkg/.npmrc similarity index 100% rename from fixtures/fixture-with-external-shrinkwrap/pkg/.npmrc rename to __fixtures__/fixture-with-external-shrinkwrap/pkg/.npmrc diff --git a/fixtures/fixture-with-external-shrinkwrap/pkg/package.json b/__fixtures__/fixture-with-external-shrinkwrap/pkg/package.json similarity index 100% rename from fixtures/fixture-with-external-shrinkwrap/pkg/package.json rename to __fixtures__/fixture-with-external-shrinkwrap/pkg/package.json diff --git a/fixtures/fixture-with-external-shrinkwrap/pnpm-lock.yaml b/__fixtures__/fixture-with-external-shrinkwrap/pnpm-lock.yaml similarity index 100% rename from fixtures/fixture-with-external-shrinkwrap/pnpm-lock.yaml rename to __fixtures__/fixture-with-external-shrinkwrap/pnpm-lock.yaml diff --git a/fixtures/fixture-with-external-shrinkwrap/pnpm-workspace.yaml b/__fixtures__/fixture-with-external-shrinkwrap/pnpm-workspace.yaml similarity index 100% rename from fixtures/fixture-with-external-shrinkwrap/pnpm-workspace.yaml rename to __fixtures__/fixture-with-external-shrinkwrap/pnpm-workspace.yaml diff --git a/fixtures/fixture-with-no-pkg-name-and-no-version/package.json b/__fixtures__/fixture-with-no-pkg-name-and-no-version/package.json similarity index 100% rename from fixtures/fixture-with-no-pkg-name-and-no-version/package.json rename to __fixtures__/fixture-with-no-pkg-name-and-no-version/package.json diff --git a/fixtures/fixture-with-no-pkg-name-and-no-version/pnpm-lock.yaml b/__fixtures__/fixture-with-no-pkg-name-and-no-version/pnpm-lock.yaml similarity index 100% rename from fixtures/fixture-with-no-pkg-name-and-no-version/pnpm-lock.yaml rename to __fixtures__/fixture-with-no-pkg-name-and-no-version/pnpm-lock.yaml diff --git a/fixtures/fixture-with-no-pkg-version/package.json b/__fixtures__/fixture-with-no-pkg-version/package.json similarity index 100% rename from fixtures/fixture-with-no-pkg-version/package.json rename to __fixtures__/fixture-with-no-pkg-version/package.json diff --git a/fixtures/fixture-with-no-pkg-version/pnpm-lock.yaml b/__fixtures__/fixture-with-no-pkg-version/pnpm-lock.yaml similarity index 100% rename from fixtures/fixture-with-no-pkg-version/pnpm-lock.yaml rename to __fixtures__/fixture-with-no-pkg-version/pnpm-lock.yaml diff --git a/fixtures/fixture/package.json b/__fixtures__/fixture/package.json similarity index 100% rename from fixtures/fixture/package.json rename to __fixtures__/fixture/package.json diff --git a/fixtures/fixture/pnpm-lock.yaml b/__fixtures__/fixture/pnpm-lock.yaml similarity index 100% rename from fixtures/fixture/pnpm-lock.yaml rename to __fixtures__/fixture/pnpm-lock.yaml diff --git a/fixtures/fixtureWithLinks/.npmrc b/__fixtures__/fixtureWithLinks/.npmrc similarity index 100% rename from fixtures/fixtureWithLinks/.npmrc rename to __fixtures__/fixtureWithLinks/.npmrc diff --git a/fixtures/fixtureWithLinks/general/package.json b/__fixtures__/fixtureWithLinks/general/package.json similarity index 100% rename from fixtures/fixtureWithLinks/general/package.json rename to __fixtures__/fixtureWithLinks/general/package.json diff --git a/fixtures/fixtureWithLinks/general/pnpm-lock.yaml b/__fixtures__/fixtureWithLinks/general/pnpm-lock.yaml similarity index 100% rename from fixtures/fixtureWithLinks/general/pnpm-lock.yaml rename to __fixtures__/fixtureWithLinks/general/pnpm-lock.yaml diff --git a/fixtures/fixtureWithLinks/pnpm-workspace.yaml b/__fixtures__/fixtureWithLinks/pnpm-workspace.yaml similarity index 100% rename from fixtures/fixtureWithLinks/pnpm-workspace.yaml rename to __fixtures__/fixtureWithLinks/pnpm-workspace.yaml diff --git a/fixtures/fixtureWithLinks/with-links-only/package.json b/__fixtures__/fixtureWithLinks/with-links-only/package.json similarity index 100% rename from fixtures/fixtureWithLinks/with-links-only/package.json rename to __fixtures__/fixtureWithLinks/with-links-only/package.json diff --git a/fixtures/fixtureWithLinks/with-links-only/pnpm-lock.yaml b/__fixtures__/fixtureWithLinks/with-links-only/pnpm-lock.yaml similarity index 100% rename from fixtures/fixtureWithLinks/with-links-only/pnpm-lock.yaml rename to __fixtures__/fixtureWithLinks/with-links-only/pnpm-lock.yaml diff --git a/fixtures/general/package.json b/__fixtures__/general/package.json similarity index 100% rename from fixtures/general/package.json rename to __fixtures__/general/package.json diff --git a/fixtures/general/pnpm-lock.yaml b/__fixtures__/general/pnpm-lock.yaml similarity index 100% rename from fixtures/general/pnpm-lock.yaml rename to __fixtures__/general/pnpm-lock.yaml diff --git a/fixtures/has-2-outdated-deps/.gitignore b/__fixtures__/has-2-outdated-deps/.gitignore similarity index 100% rename from fixtures/has-2-outdated-deps/.gitignore rename to __fixtures__/has-2-outdated-deps/.gitignore diff --git a/fixtures/has-2-outdated-deps/.npmrc b/__fixtures__/has-2-outdated-deps/.npmrc similarity index 100% rename from fixtures/has-2-outdated-deps/.npmrc rename to __fixtures__/has-2-outdated-deps/.npmrc diff --git a/fixtures/has-2-outdated-deps/node_modules/.pnpm/lock.yaml b/__fixtures__/has-2-outdated-deps/node_modules/.pnpm/lock.yaml similarity index 100% rename from fixtures/has-2-outdated-deps/node_modules/.pnpm/lock.yaml rename to __fixtures__/has-2-outdated-deps/node_modules/.pnpm/lock.yaml diff --git a/fixtures/has-2-outdated-deps/package.json b/__fixtures__/has-2-outdated-deps/package.json similarity index 100% rename from fixtures/has-2-outdated-deps/package.json rename to __fixtures__/has-2-outdated-deps/package.json diff --git a/fixtures/has-2-outdated-deps/pnpm-lock.yaml b/__fixtures__/has-2-outdated-deps/pnpm-lock.yaml similarity index 100% rename from fixtures/has-2-outdated-deps/pnpm-lock.yaml rename to __fixtures__/has-2-outdated-deps/pnpm-lock.yaml diff --git a/fixtures/has-broken-symlink/has-broken-symlink.tar.gz b/__fixtures__/has-broken-symlink/has-broken-symlink.tar.gz similarity index 100% rename from fixtures/has-broken-symlink/has-broken-symlink.tar.gz rename to __fixtures__/has-broken-symlink/has-broken-symlink.tar.gz diff --git a/__fixtures__/has-major-outdated-deps/.gitignore b/__fixtures__/has-major-outdated-deps/.gitignore new file mode 100644 index 0000000000..5867a0493e --- /dev/null +++ b/__fixtures__/has-major-outdated-deps/.gitignore @@ -0,0 +1,2 @@ +!**/node_modules/**/* +!/node_modules/ diff --git a/fixtures/has-major-outdated-deps/.npmrc b/__fixtures__/has-major-outdated-deps/.npmrc similarity index 100% rename from fixtures/has-major-outdated-deps/.npmrc rename to __fixtures__/has-major-outdated-deps/.npmrc diff --git a/fixtures/has-major-outdated-deps/node_modules/.pnpm/lock.yaml b/__fixtures__/has-major-outdated-deps/node_modules/.pnpm/lock.yaml similarity index 100% rename from fixtures/has-major-outdated-deps/node_modules/.pnpm/lock.yaml rename to __fixtures__/has-major-outdated-deps/node_modules/.pnpm/lock.yaml diff --git a/fixtures/has-major-outdated-deps/package.json b/__fixtures__/has-major-outdated-deps/package.json similarity index 100% rename from fixtures/has-major-outdated-deps/package.json rename to __fixtures__/has-major-outdated-deps/package.json diff --git a/fixtures/has-major-outdated-deps/pnpm-lock.yaml b/__fixtures__/has-major-outdated-deps/pnpm-lock.yaml similarity index 100% rename from fixtures/has-major-outdated-deps/pnpm-lock.yaml rename to __fixtures__/has-major-outdated-deps/pnpm-lock.yaml diff --git a/fixtures/has-no-lockfile/.npmrc b/__fixtures__/has-no-lockfile/.npmrc similarity index 100% rename from fixtures/has-no-lockfile/.npmrc rename to __fixtures__/has-no-lockfile/.npmrc diff --git a/fixtures/has-no-lockfile/package.json b/__fixtures__/has-no-lockfile/package.json similarity index 100% rename from fixtures/has-no-lockfile/package.json rename to __fixtures__/has-no-lockfile/package.json diff --git a/__fixtures__/has-not-outdated-deps/.gitignore b/__fixtures__/has-not-outdated-deps/.gitignore new file mode 100644 index 0000000000..5867a0493e --- /dev/null +++ b/__fixtures__/has-not-outdated-deps/.gitignore @@ -0,0 +1,2 @@ +!**/node_modules/**/* +!/node_modules/ diff --git a/fixtures/has-not-outdated-deps/.npmrc b/__fixtures__/has-not-outdated-deps/.npmrc similarity index 100% rename from fixtures/has-not-outdated-deps/.npmrc rename to __fixtures__/has-not-outdated-deps/.npmrc diff --git a/fixtures/has-not-outdated-deps/node_modules/.modules.yaml b/__fixtures__/has-not-outdated-deps/node_modules/.modules.yaml similarity index 100% rename from fixtures/has-not-outdated-deps/node_modules/.modules.yaml rename to __fixtures__/has-not-outdated-deps/node_modules/.modules.yaml diff --git a/fixtures/has-not-outdated-deps/node_modules/.pnpm/lock.yaml b/__fixtures__/has-not-outdated-deps/node_modules/.pnpm/lock.yaml similarity index 100% rename from fixtures/has-not-outdated-deps/node_modules/.pnpm/lock.yaml rename to __fixtures__/has-not-outdated-deps/node_modules/.pnpm/lock.yaml diff --git a/fixtures/has-not-outdated-deps/node_modules/is-negative b/__fixtures__/has-not-outdated-deps/node_modules/is-negative similarity index 100% rename from fixtures/has-not-outdated-deps/node_modules/is-negative rename to __fixtures__/has-not-outdated-deps/node_modules/is-negative diff --git a/fixtures/has-not-outdated-deps/node_modules/is-positive b/__fixtures__/has-not-outdated-deps/node_modules/is-positive similarity index 100% rename from fixtures/has-not-outdated-deps/node_modules/is-positive rename to __fixtures__/has-not-outdated-deps/node_modules/is-positive diff --git a/fixtures/has-not-outdated-deps/package.json b/__fixtures__/has-not-outdated-deps/package.json similarity index 100% rename from fixtures/has-not-outdated-deps/package.json rename to __fixtures__/has-not-outdated-deps/package.json diff --git a/fixtures/has-not-outdated-deps/pnpm-lock.yaml b/__fixtures__/has-not-outdated-deps/pnpm-lock.yaml similarity index 100% rename from fixtures/has-not-outdated-deps/pnpm-lock.yaml rename to __fixtures__/has-not-outdated-deps/pnpm-lock.yaml diff --git a/fixtures/has-npm-shrinkwrap-json/.gitignore b/__fixtures__/has-npm-shrinkwrap-json/.gitignore similarity index 100% rename from fixtures/has-npm-shrinkwrap-json/.gitignore rename to __fixtures__/has-npm-shrinkwrap-json/.gitignore diff --git a/fixtures/has-npm-shrinkwrap-json/npm-shrinkwrap.json b/__fixtures__/has-npm-shrinkwrap-json/npm-shrinkwrap.json similarity index 100% rename from fixtures/has-npm-shrinkwrap-json/npm-shrinkwrap.json rename to __fixtures__/has-npm-shrinkwrap-json/npm-shrinkwrap.json diff --git a/fixtures/has-npm-shrinkwrap-json/package.json b/__fixtures__/has-npm-shrinkwrap-json/package.json similarity index 100% rename from fixtures/has-npm-shrinkwrap-json/package.json rename to __fixtures__/has-npm-shrinkwrap-json/package.json diff --git a/__fixtures__/has-outdated-deps-and-external-shrinkwrap/.gitignore b/__fixtures__/has-outdated-deps-and-external-shrinkwrap/.gitignore new file mode 100644 index 0000000000..5867a0493e --- /dev/null +++ b/__fixtures__/has-outdated-deps-and-external-shrinkwrap/.gitignore @@ -0,0 +1,2 @@ +!**/node_modules/**/* +!/node_modules/ diff --git a/fixtures/has-outdated-deps-and-external-shrinkwrap/.npmrc b/__fixtures__/has-outdated-deps-and-external-shrinkwrap/.npmrc similarity index 100% rename from fixtures/has-outdated-deps-and-external-shrinkwrap/.npmrc rename to __fixtures__/has-outdated-deps-and-external-shrinkwrap/.npmrc diff --git a/fixtures/has-outdated-deps-and-external-shrinkwrap/node_modules/.pnpm/lock.yaml b/__fixtures__/has-outdated-deps-and-external-shrinkwrap/node_modules/.pnpm/lock.yaml similarity index 100% rename from fixtures/has-outdated-deps-and-external-shrinkwrap/node_modules/.pnpm/lock.yaml rename to __fixtures__/has-outdated-deps-and-external-shrinkwrap/node_modules/.pnpm/lock.yaml diff --git a/fixtures/has-outdated-deps-and-external-shrinkwrap/pkg/package.json b/__fixtures__/has-outdated-deps-and-external-shrinkwrap/pkg/package.json similarity index 100% rename from fixtures/has-outdated-deps-and-external-shrinkwrap/pkg/package.json rename to __fixtures__/has-outdated-deps-and-external-shrinkwrap/pkg/package.json diff --git a/fixtures/has-outdated-deps-and-external-shrinkwrap/pnpm-lock.yaml b/__fixtures__/has-outdated-deps-and-external-shrinkwrap/pnpm-lock.yaml similarity index 100% rename from fixtures/has-outdated-deps-and-external-shrinkwrap/pnpm-lock.yaml rename to __fixtures__/has-outdated-deps-and-external-shrinkwrap/pnpm-lock.yaml diff --git a/fixtures/has-outdated-deps-and-external-shrinkwrap/pnpm-workspace.yaml b/__fixtures__/has-outdated-deps-and-external-shrinkwrap/pnpm-workspace.yaml similarity index 100% rename from fixtures/has-outdated-deps-and-external-shrinkwrap/pnpm-workspace.yaml rename to __fixtures__/has-outdated-deps-and-external-shrinkwrap/pnpm-workspace.yaml diff --git a/__fixtures__/has-outdated-deps/.gitignore b/__fixtures__/has-outdated-deps/.gitignore new file mode 100644 index 0000000000..5867a0493e --- /dev/null +++ b/__fixtures__/has-outdated-deps/.gitignore @@ -0,0 +1,2 @@ +!**/node_modules/**/* +!/node_modules/ diff --git a/fixtures/has-outdated-deps/.npmrc b/__fixtures__/has-outdated-deps/.npmrc similarity index 100% rename from fixtures/has-outdated-deps/.npmrc rename to __fixtures__/has-outdated-deps/.npmrc diff --git a/fixtures/has-outdated-deps/node_modules/.pnpm/lock.yaml b/__fixtures__/has-outdated-deps/node_modules/.pnpm/lock.yaml similarity index 100% rename from fixtures/has-outdated-deps/node_modules/.pnpm/lock.yaml rename to __fixtures__/has-outdated-deps/node_modules/.pnpm/lock.yaml diff --git a/fixtures/has-outdated-deps/package.json b/__fixtures__/has-outdated-deps/package.json similarity index 100% rename from fixtures/has-outdated-deps/package.json rename to __fixtures__/has-outdated-deps/package.json diff --git a/fixtures/has-outdated-deps/pnpm-lock.yaml b/__fixtures__/has-outdated-deps/pnpm-lock.yaml similarity index 100% rename from fixtures/has-outdated-deps/pnpm-lock.yaml rename to __fixtures__/has-outdated-deps/pnpm-lock.yaml diff --git a/fixtures/has-package-lock-json/.gitignore b/__fixtures__/has-package-lock-json/.gitignore similarity index 100% rename from fixtures/has-package-lock-json/.gitignore rename to __fixtures__/has-package-lock-json/.gitignore diff --git a/fixtures/has-package-lock-json/package-lock.json b/__fixtures__/has-package-lock-json/package-lock.json similarity index 100% rename from fixtures/has-package-lock-json/package-lock.json rename to __fixtures__/has-package-lock-json/package-lock.json diff --git a/fixtures/has-package-lock-json/package.json b/__fixtures__/has-package-lock-json/package.json similarity index 100% rename from fixtures/has-package-lock-json/package.json rename to __fixtures__/has-package-lock-json/package.json diff --git a/fixtures/has-yarn-lock/.gitignore b/__fixtures__/has-yarn-lock/.gitignore similarity index 100% rename from fixtures/has-yarn-lock/.gitignore rename to __fixtures__/has-yarn-lock/.gitignore diff --git a/fixtures/has-yarn-lock/.npmrc b/__fixtures__/has-yarn-lock/.npmrc similarity index 100% rename from fixtures/has-yarn-lock/.npmrc rename to __fixtures__/has-yarn-lock/.npmrc diff --git a/fixtures/has-yarn-lock/package.json b/__fixtures__/has-yarn-lock/package.json similarity index 100% rename from fixtures/has-yarn-lock/package.json rename to __fixtures__/has-yarn-lock/package.json diff --git a/fixtures/has-yarn-lock/yarn.lock b/__fixtures__/has-yarn-lock/yarn.lock similarity index 100% rename from fixtures/has-yarn-lock/yarn.lock rename to __fixtures__/has-yarn-lock/yarn.lock diff --git a/fixtures/has-yarn2-lock/.gitignore b/__fixtures__/has-yarn2-lock/.gitignore similarity index 100% rename from fixtures/has-yarn2-lock/.gitignore rename to __fixtures__/has-yarn2-lock/.gitignore diff --git a/fixtures/has-yarn2-lock/package.json b/__fixtures__/has-yarn2-lock/package.json similarity index 100% rename from fixtures/has-yarn2-lock/package.json rename to __fixtures__/has-yarn2-lock/package.json diff --git a/fixtures/has-yarn2-lock/yarn.lock b/__fixtures__/has-yarn2-lock/yarn.lock similarity index 100% rename from fixtures/has-yarn2-lock/yarn.lock rename to __fixtures__/has-yarn2-lock/yarn.lock diff --git a/fixtures/hello-world-js-bin/index.js b/__fixtures__/hello-world-js-bin/index.js similarity index 100% rename from fixtures/hello-world-js-bin/index.js rename to __fixtures__/hello-world-js-bin/index.js diff --git a/fixtures/hello-world-js-bin/package.json b/__fixtures__/hello-world-js-bin/package.json similarity index 100% rename from fixtures/hello-world-js-bin/package.json rename to __fixtures__/hello-world-js-bin/package.json diff --git a/fixtures/local-pkg/index.js b/__fixtures__/local-pkg/index.js similarity index 100% rename from fixtures/local-pkg/index.js rename to __fixtures__/local-pkg/index.js diff --git a/fixtures/local-pkg/package.json b/__fixtures__/local-pkg/package.json similarity index 100% rename from fixtures/local-pkg/package.json rename to __fixtures__/local-pkg/package.json diff --git a/fixtures/local-scoped-pkg/index.js b/__fixtures__/local-scoped-pkg/index.js similarity index 100% rename from fixtures/local-scoped-pkg/index.js rename to __fixtures__/local-scoped-pkg/index.js diff --git a/fixtures/local-scoped-pkg/package.json b/__fixtures__/local-scoped-pkg/package.json similarity index 100% rename from fixtures/local-scoped-pkg/package.json rename to __fixtures__/local-scoped-pkg/package.json diff --git a/fixtures/monorepo/.npmrc b/__fixtures__/monorepo/.npmrc similarity index 100% rename from fixtures/monorepo/.npmrc rename to __fixtures__/monorepo/.npmrc diff --git a/fixtures/monorepo/package/package.json b/__fixtures__/monorepo/package/package.json similarity index 100% rename from fixtures/monorepo/package/package.json rename to __fixtures__/monorepo/package/package.json diff --git a/fixtures/monorepo/pnpm-lock.yaml b/__fixtures__/monorepo/pnpm-lock.yaml similarity index 100% rename from fixtures/monorepo/pnpm-lock.yaml rename to __fixtures__/monorepo/pnpm-lock.yaml diff --git a/fixtures/monorepo/pnpm-workspace.yaml b/__fixtures__/monorepo/pnpm-workspace.yaml similarity index 100% rename from fixtures/monorepo/pnpm-workspace.yaml rename to __fixtures__/monorepo/pnpm-workspace.yaml diff --git a/__fixtures__/package.yaml b/__fixtures__/package.yaml new file mode 100644 index 0000000000..7563ad9526 --- /dev/null +++ b/__fixtures__/package.yaml @@ -0,0 +1,5 @@ +scripts: + prepareFixtures: > + node ../pnpm/dist/pnpm.cjs install -rf --frozen-lockfile --no-shared-workspace-lockfile --no-link-workspace-packages && + node ../pnpm/dist/pnpm.cjs install -rf -C fixtureWithLinks --frozen-lockfile --link-workspace-packages --no-shared-workspace-lockfile && + cd ./fixture-with-external-shrinkwrap/pkg && node ../../../pnpm/dist/pnpm.cjs install -f --frozen-lockfile diff --git a/fixtures/pkg-with-external-lockfile/pkg/.npmrc b/__fixtures__/pkg-with-external-lockfile/pkg/.npmrc similarity index 100% rename from fixtures/pkg-with-external-lockfile/pkg/.npmrc rename to __fixtures__/pkg-with-external-lockfile/pkg/.npmrc diff --git a/fixtures/pkg-with-external-lockfile/pkg/package.json b/__fixtures__/pkg-with-external-lockfile/pkg/package.json similarity index 100% rename from fixtures/pkg-with-external-lockfile/pkg/package.json rename to __fixtures__/pkg-with-external-lockfile/pkg/package.json diff --git a/fixtures/pkg-with-external-lockfile/pnpm-lock.yaml b/__fixtures__/pkg-with-external-lockfile/pnpm-lock.yaml similarity index 100% rename from fixtures/pkg-with-external-lockfile/pnpm-lock.yaml rename to __fixtures__/pkg-with-external-lockfile/pnpm-lock.yaml diff --git a/fixtures/pkg-with-external-lockfile/pnpm-workspace.yaml b/__fixtures__/pkg-with-external-lockfile/pnpm-workspace.yaml similarity index 100% rename from fixtures/pkg-with-external-lockfile/pnpm-workspace.yaml rename to __fixtures__/pkg-with-external-lockfile/pnpm-workspace.yaml diff --git a/fixtures/pnpm-workspace.yaml b/__fixtures__/pnpm-workspace.yaml similarity index 100% rename from fixtures/pnpm-workspace.yaml rename to __fixtures__/pnpm-workspace.yaml diff --git a/fixtures/tar-pkg/index.js b/__fixtures__/tar-pkg/index.js similarity index 100% rename from fixtures/tar-pkg/index.js rename to __fixtures__/tar-pkg/index.js diff --git a/fixtures/tar-pkg/package.json b/__fixtures__/tar-pkg/package.json similarity index 100% rename from fixtures/tar-pkg/package.json rename to __fixtures__/tar-pkg/package.json diff --git a/fixtures/tar-pkg/tar-pkg-1.0.0.tgz b/__fixtures__/tar-pkg/tar-pkg-1.0.0.tgz similarity index 100% rename from fixtures/tar-pkg/tar-pkg-1.0.0.tgz rename to __fixtures__/tar-pkg/tar-pkg-1.0.0.tgz diff --git a/fixtures/with-aliased-dep/package.json b/__fixtures__/with-aliased-dep/package.json similarity index 100% rename from fixtures/with-aliased-dep/package.json rename to __fixtures__/with-aliased-dep/package.json diff --git a/fixtures/with-aliased-dep/pnpm-lock.yaml b/__fixtures__/with-aliased-dep/pnpm-lock.yaml similarity index 100% rename from fixtures/with-aliased-dep/pnpm-lock.yaml rename to __fixtures__/with-aliased-dep/pnpm-lock.yaml diff --git a/fixtures/with-file-dep/package.json b/__fixtures__/with-file-dep/package.json similarity index 100% rename from fixtures/with-file-dep/package.json rename to __fixtures__/with-file-dep/package.json diff --git a/fixtures/with-file-dep/pnpm-lock.yaml b/__fixtures__/with-file-dep/pnpm-lock.yaml similarity index 100% rename from fixtures/with-file-dep/pnpm-lock.yaml rename to __fixtures__/with-file-dep/pnpm-lock.yaml diff --git a/fixtures/with-non-package-dep/package.json b/__fixtures__/with-non-package-dep/package.json similarity index 100% rename from fixtures/with-non-package-dep/package.json rename to __fixtures__/with-non-package-dep/package.json diff --git a/fixtures/with-non-package-dep/pnpm-lock.yaml b/__fixtures__/with-non-package-dep/pnpm-lock.yaml similarity index 100% rename from fixtures/with-non-package-dep/pnpm-lock.yaml rename to __fixtures__/with-non-package-dep/pnpm-lock.yaml diff --git a/fixtures/with-peer/package.json b/__fixtures__/with-peer/package.json similarity index 100% rename from fixtures/with-peer/package.json rename to __fixtures__/with-peer/package.json diff --git a/fixtures/with-peer/pnpm-lock.yaml b/__fixtures__/with-peer/pnpm-lock.yaml similarity index 100% rename from fixtures/with-peer/pnpm-lock.yaml rename to __fixtures__/with-peer/pnpm-lock.yaml diff --git a/fixtures/with-pnpm-update-ignore/package.json b/__fixtures__/with-pnpm-update-ignore/package.json similarity index 100% rename from fixtures/with-pnpm-update-ignore/package.json rename to __fixtures__/with-pnpm-update-ignore/package.json diff --git a/fixtures/with-pnpm-update-ignore/pnpm-lock.yaml b/__fixtures__/with-pnpm-update-ignore/pnpm-lock.yaml similarity index 100% rename from fixtures/with-pnpm-update-ignore/pnpm-lock.yaml rename to __fixtures__/with-pnpm-update-ignore/pnpm-lock.yaml diff --git a/fixtures/with-unsaved-deps/.npmrc b/__fixtures__/with-unsaved-deps/.npmrc similarity index 100% rename from fixtures/with-unsaved-deps/.npmrc rename to __fixtures__/with-unsaved-deps/.npmrc diff --git a/fixtures/with-unsaved-deps/package.json b/__fixtures__/with-unsaved-deps/package.json similarity index 100% rename from fixtures/with-unsaved-deps/package.json rename to __fixtures__/with-unsaved-deps/package.json diff --git a/fixtures/with-unsaved-deps/pnpm-lock.yaml b/__fixtures__/with-unsaved-deps/pnpm-lock.yaml similarity index 100% rename from fixtures/with-unsaved-deps/pnpm-lock.yaml rename to __fixtures__/with-unsaved-deps/pnpm-lock.yaml diff --git a/fixtures/workspace-external-depends-deep/.npmrc b/__fixtures__/workspace-external-depends-deep/.npmrc similarity index 100% rename from fixtures/workspace-external-depends-deep/.npmrc rename to __fixtures__/workspace-external-depends-deep/.npmrc diff --git a/fixtures/workspace-external-depends-deep/package.json b/__fixtures__/workspace-external-depends-deep/package.json similarity index 100% rename from fixtures/workspace-external-depends-deep/package.json rename to __fixtures__/workspace-external-depends-deep/package.json diff --git a/fixtures/workspace-external-depends-deep/packages/f/package.json b/__fixtures__/workspace-external-depends-deep/packages/f/package.json similarity index 100% rename from fixtures/workspace-external-depends-deep/packages/f/package.json rename to __fixtures__/workspace-external-depends-deep/packages/f/package.json diff --git a/fixtures/workspace-external-depends-deep/packages/g/package.json b/__fixtures__/workspace-external-depends-deep/packages/g/package.json similarity index 100% rename from fixtures/workspace-external-depends-deep/packages/g/package.json rename to __fixtures__/workspace-external-depends-deep/packages/g/package.json diff --git a/fixtures/workspace-external-depends-deep/pnpm-lock.yaml b/__fixtures__/workspace-external-depends-deep/pnpm-lock.yaml similarity index 100% rename from fixtures/workspace-external-depends-deep/pnpm-lock.yaml rename to __fixtures__/workspace-external-depends-deep/pnpm-lock.yaml diff --git a/fixtures/workspace-external-depends-deep/pnpm-workspace.yaml b/__fixtures__/workspace-external-depends-deep/pnpm-workspace.yaml similarity index 100% rename from fixtures/workspace-external-depends-deep/pnpm-workspace.yaml rename to __fixtures__/workspace-external-depends-deep/pnpm-workspace.yaml diff --git a/fixtures/workspace-has-shared-npm-shrinkwrap-json/.gitignore b/__fixtures__/workspace-has-shared-npm-shrinkwrap-json/.gitignore similarity index 100% rename from fixtures/workspace-has-shared-npm-shrinkwrap-json/.gitignore rename to __fixtures__/workspace-has-shared-npm-shrinkwrap-json/.gitignore diff --git a/fixtures/workspace-has-shared-npm-shrinkwrap-json/npm-shrinkwrap.json b/__fixtures__/workspace-has-shared-npm-shrinkwrap-json/npm-shrinkwrap.json similarity index 100% rename from fixtures/workspace-has-shared-npm-shrinkwrap-json/npm-shrinkwrap.json rename to __fixtures__/workspace-has-shared-npm-shrinkwrap-json/npm-shrinkwrap.json diff --git a/fixtures/workspace-has-shared-npm-shrinkwrap-json/package.json b/__fixtures__/workspace-has-shared-npm-shrinkwrap-json/package.json similarity index 100% rename from fixtures/workspace-has-shared-npm-shrinkwrap-json/package.json rename to __fixtures__/workspace-has-shared-npm-shrinkwrap-json/package.json diff --git a/fixtures/workspace-has-shared-npm-shrinkwrap-json/packages/bar/package.json b/__fixtures__/workspace-has-shared-npm-shrinkwrap-json/packages/bar/package.json similarity index 100% rename from fixtures/workspace-has-shared-npm-shrinkwrap-json/packages/bar/package.json rename to __fixtures__/workspace-has-shared-npm-shrinkwrap-json/packages/bar/package.json diff --git a/fixtures/workspace-has-shared-npm-shrinkwrap-json/packages/foo/package.json b/__fixtures__/workspace-has-shared-npm-shrinkwrap-json/packages/foo/package.json similarity index 100% rename from fixtures/workspace-has-shared-npm-shrinkwrap-json/packages/foo/package.json rename to __fixtures__/workspace-has-shared-npm-shrinkwrap-json/packages/foo/package.json diff --git a/fixtures/workspace-has-shared-npm-shrinkwrap-json/pnpm-worksapce.yaml b/__fixtures__/workspace-has-shared-npm-shrinkwrap-json/pnpm-worksapce.yaml similarity index 100% rename from fixtures/workspace-has-shared-npm-shrinkwrap-json/pnpm-worksapce.yaml rename to __fixtures__/workspace-has-shared-npm-shrinkwrap-json/pnpm-worksapce.yaml diff --git a/fixtures/workspace-has-shared-package-lock-json/.gitignore b/__fixtures__/workspace-has-shared-package-lock-json/.gitignore similarity index 100% rename from fixtures/workspace-has-shared-package-lock-json/.gitignore rename to __fixtures__/workspace-has-shared-package-lock-json/.gitignore diff --git a/fixtures/workspace-has-shared-package-lock-json/package-lock.json b/__fixtures__/workspace-has-shared-package-lock-json/package-lock.json similarity index 100% rename from fixtures/workspace-has-shared-package-lock-json/package-lock.json rename to __fixtures__/workspace-has-shared-package-lock-json/package-lock.json diff --git a/fixtures/workspace-has-shared-package-lock-json/package.json b/__fixtures__/workspace-has-shared-package-lock-json/package.json similarity index 100% rename from fixtures/workspace-has-shared-package-lock-json/package.json rename to __fixtures__/workspace-has-shared-package-lock-json/package.json diff --git a/fixtures/workspace-has-shared-package-lock-json/packages/bar/package.json b/__fixtures__/workspace-has-shared-package-lock-json/packages/bar/package.json similarity index 100% rename from fixtures/workspace-has-shared-package-lock-json/packages/bar/package.json rename to __fixtures__/workspace-has-shared-package-lock-json/packages/bar/package.json diff --git a/fixtures/workspace-has-shared-package-lock-json/packages/foo/package.json b/__fixtures__/workspace-has-shared-package-lock-json/packages/foo/package.json similarity index 100% rename from fixtures/workspace-has-shared-package-lock-json/packages/foo/package.json rename to __fixtures__/workspace-has-shared-package-lock-json/packages/foo/package.json diff --git a/fixtures/workspace-has-shared-package-lock-json/pnpm-worksapce.yaml b/__fixtures__/workspace-has-shared-package-lock-json/pnpm-worksapce.yaml similarity index 100% rename from fixtures/workspace-has-shared-package-lock-json/pnpm-worksapce.yaml rename to __fixtures__/workspace-has-shared-package-lock-json/pnpm-worksapce.yaml diff --git a/fixtures/workspace-has-shared-yarn-lock/.gitignore b/__fixtures__/workspace-has-shared-yarn-lock/.gitignore similarity index 100% rename from fixtures/workspace-has-shared-yarn-lock/.gitignore rename to __fixtures__/workspace-has-shared-yarn-lock/.gitignore diff --git a/fixtures/workspace-has-shared-yarn-lock/package.json b/__fixtures__/workspace-has-shared-yarn-lock/package.json similarity index 100% rename from fixtures/workspace-has-shared-yarn-lock/package.json rename to __fixtures__/workspace-has-shared-yarn-lock/package.json diff --git a/fixtures/workspace-has-shared-yarn-lock/packages/bar/package.json b/__fixtures__/workspace-has-shared-yarn-lock/packages/bar/package.json similarity index 100% rename from fixtures/workspace-has-shared-yarn-lock/packages/bar/package.json rename to __fixtures__/workspace-has-shared-yarn-lock/packages/bar/package.json diff --git a/fixtures/workspace-has-shared-yarn-lock/packages/foo/package.json b/__fixtures__/workspace-has-shared-yarn-lock/packages/foo/package.json similarity index 100% rename from fixtures/workspace-has-shared-yarn-lock/packages/foo/package.json rename to __fixtures__/workspace-has-shared-yarn-lock/packages/foo/package.json diff --git a/fixtures/workspace-has-shared-yarn-lock/pnpm-worksapce.yaml b/__fixtures__/workspace-has-shared-yarn-lock/pnpm-worksapce.yaml similarity index 100% rename from fixtures/workspace-has-shared-yarn-lock/pnpm-worksapce.yaml rename to __fixtures__/workspace-has-shared-yarn-lock/pnpm-worksapce.yaml diff --git a/fixtures/workspace-has-shared-yarn-lock/yarn.lock b/__fixtures__/workspace-has-shared-yarn-lock/yarn.lock similarity index 100% rename from fixtures/workspace-has-shared-yarn-lock/yarn.lock rename to __fixtures__/workspace-has-shared-yarn-lock/yarn.lock diff --git a/fixtures/workspace-with-2-pkgs/package.json b/__fixtures__/workspace-with-2-pkgs/package.json similarity index 100% rename from fixtures/workspace-with-2-pkgs/package.json rename to __fixtures__/workspace-with-2-pkgs/package.json diff --git a/fixtures/workspace-with-2-pkgs/packages/bar/package.json b/__fixtures__/workspace-with-2-pkgs/packages/bar/package.json similarity index 100% rename from fixtures/workspace-with-2-pkgs/packages/bar/package.json rename to __fixtures__/workspace-with-2-pkgs/packages/bar/package.json diff --git a/fixtures/workspace-with-2-pkgs/packages/foo/package.json b/__fixtures__/workspace-with-2-pkgs/packages/foo/package.json similarity index 100% rename from fixtures/workspace-with-2-pkgs/packages/foo/package.json rename to __fixtures__/workspace-with-2-pkgs/packages/foo/package.json diff --git a/fixtures/workspace-with-2-pkgs/pnpm-lock.yaml b/__fixtures__/workspace-with-2-pkgs/pnpm-lock.yaml similarity index 100% rename from fixtures/workspace-with-2-pkgs/pnpm-lock.yaml rename to __fixtures__/workspace-with-2-pkgs/pnpm-lock.yaml diff --git a/fixtures/workspace-with-2-pkgs/pnpm-workspace.yaml b/__fixtures__/workspace-with-2-pkgs/pnpm-workspace.yaml similarity index 100% rename from fixtures/workspace-with-2-pkgs/pnpm-workspace.yaml rename to __fixtures__/workspace-with-2-pkgs/pnpm-workspace.yaml diff --git a/fixtures/workspace-with-different-deps/package.json b/__fixtures__/workspace-with-different-deps/package.json similarity index 100% rename from fixtures/workspace-with-different-deps/package.json rename to __fixtures__/workspace-with-different-deps/package.json diff --git a/fixtures/workspace-with-different-deps/packages/bar/package.json b/__fixtures__/workspace-with-different-deps/packages/bar/package.json similarity index 100% rename from fixtures/workspace-with-different-deps/packages/bar/package.json rename to __fixtures__/workspace-with-different-deps/packages/bar/package.json diff --git a/fixtures/workspace-with-different-deps/packages/foo/package.json b/__fixtures__/workspace-with-different-deps/packages/foo/package.json similarity index 100% rename from fixtures/workspace-with-different-deps/packages/foo/package.json rename to __fixtures__/workspace-with-different-deps/packages/foo/package.json diff --git a/fixtures/workspace-with-different-deps/pnpm-lock.yaml b/__fixtures__/workspace-with-different-deps/pnpm-lock.yaml similarity index 100% rename from fixtures/workspace-with-different-deps/pnpm-lock.yaml rename to __fixtures__/workspace-with-different-deps/pnpm-lock.yaml diff --git a/fixtures/workspace-with-different-deps/pnpm-workspace.yaml b/__fixtures__/workspace-with-different-deps/pnpm-workspace.yaml similarity index 100% rename from fixtures/workspace-with-different-deps/pnpm-workspace.yaml rename to __fixtures__/workspace-with-different-deps/pnpm-workspace.yaml diff --git a/fixtures/workspace-with-private-pkgs/package.json b/__fixtures__/workspace-with-private-pkgs/package.json similarity index 100% rename from fixtures/workspace-with-private-pkgs/package.json rename to __fixtures__/workspace-with-private-pkgs/package.json diff --git a/fixtures/workspace-with-private-pkgs/packages/private/package.json b/__fixtures__/workspace-with-private-pkgs/packages/private/package.json similarity index 100% rename from fixtures/workspace-with-private-pkgs/packages/private/package.json rename to __fixtures__/workspace-with-private-pkgs/packages/private/package.json diff --git a/fixtures/workspace-with-private-pkgs/packages/public/package.json b/__fixtures__/workspace-with-private-pkgs/packages/public/package.json similarity index 100% rename from fixtures/workspace-with-private-pkgs/packages/public/package.json rename to __fixtures__/workspace-with-private-pkgs/packages/public/package.json diff --git a/fixtures/workspace-with-private-pkgs/pnpm-lock.yaml b/__fixtures__/workspace-with-private-pkgs/pnpm-lock.yaml similarity index 100% rename from fixtures/workspace-with-private-pkgs/pnpm-lock.yaml rename to __fixtures__/workspace-with-private-pkgs/pnpm-lock.yaml diff --git a/fixtures/workspace-with-private-pkgs/pnpm-workspace.yaml b/__fixtures__/workspace-with-private-pkgs/pnpm-workspace.yaml similarity index 100% rename from fixtures/workspace-with-private-pkgs/pnpm-workspace.yaml rename to __fixtures__/workspace-with-private-pkgs/pnpm-workspace.yaml diff --git a/packages/cli-meta/CHANGELOG.md b/cli/cli-meta/CHANGELOG.md similarity index 100% rename from packages/cli-meta/CHANGELOG.md rename to cli/cli-meta/CHANGELOG.md diff --git a/packages/cli-meta/README.md b/cli/cli-meta/README.md similarity index 100% rename from packages/cli-meta/README.md rename to cli/cli-meta/README.md diff --git a/packages/cli-meta/package.json b/cli/cli-meta/package.json similarity index 84% rename from packages/cli-meta/package.json rename to cli/cli-meta/package.json index ec8b866245..fda4ba2ebc 100644 --- a/packages/cli-meta/package.json +++ b/cli/cli-meta/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/cli-meta", + "repository": "https://github.com/pnpm/pnpm/blob/main/cli/cli-meta", "keywords": [ "pnpm7", "pnpm" @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/cli-meta#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/cli-meta#readme", "devDependencies": { "@pnpm/cli-meta": "workspace:*" }, diff --git a/packages/cli-meta/src/index.ts b/cli/cli-meta/src/index.ts similarity index 100% rename from packages/cli-meta/src/index.ts rename to cli/cli-meta/src/index.ts diff --git a/packages/cli-meta/tsconfig.json b/cli/cli-meta/tsconfig.json similarity index 84% rename from packages/cli-meta/tsconfig.json rename to cli/cli-meta/tsconfig.json index 7fa294a1eb..4934a75de4 100644 --- a/packages/cli-meta/tsconfig.json +++ b/cli/cli-meta/tsconfig.json @@ -10,7 +10,7 @@ ], "references": [ { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/audit/tsconfig.lint.json b/cli/cli-meta/tsconfig.lint.json similarity index 100% rename from packages/audit/tsconfig.lint.json rename to cli/cli-meta/tsconfig.lint.json diff --git a/packages/cli-utils/CHANGELOG.md b/cli/cli-utils/CHANGELOG.md similarity index 100% rename from packages/cli-utils/CHANGELOG.md rename to cli/cli-utils/CHANGELOG.md diff --git a/packages/cli-utils/README.md b/cli/cli-utils/README.md similarity index 100% rename from packages/cli-utils/README.md rename to cli/cli-utils/README.md diff --git a/packages/cli-utils/package.json b/cli/cli-utils/package.json similarity index 88% rename from packages/cli-utils/package.json rename to cli/cli-utils/package.json index 4f5e47abdd..fa0e991171 100644 --- a/packages/cli-utils/package.json +++ b/cli/cli-utils/package.json @@ -17,7 +17,7 @@ "compile": "tsc --build && pnpm run lint --fix", "test": "pnpm run compile" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/cli-utils", + "repository": "https://github.com/pnpm/pnpm/blob/main/cli/cli-utils", "keywords": [ "pnpm7", "pnpm" @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/cli-utils#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/cli-utils#readme", "devDependencies": { "@pnpm/cli-utils": "workspace:*", "@types/ramda": "0.28.15" diff --git a/packages/cli-utils/src/getConfig.ts b/cli/cli-utils/src/getConfig.ts similarity index 100% rename from packages/cli-utils/src/getConfig.ts rename to cli/cli-utils/src/getConfig.ts diff --git a/packages/cli-utils/src/index.ts b/cli/cli-utils/src/index.ts similarity index 100% rename from packages/cli-utils/src/index.ts rename to cli/cli-utils/src/index.ts diff --git a/packages/cli-utils/src/packageIsInstallable.ts b/cli/cli-utils/src/packageIsInstallable.ts similarity index 100% rename from packages/cli-utils/src/packageIsInstallable.ts rename to cli/cli-utils/src/packageIsInstallable.ts diff --git a/packages/cli-utils/src/readDepNameCompletions.ts b/cli/cli-utils/src/readDepNameCompletions.ts similarity index 100% rename from packages/cli-utils/src/readDepNameCompletions.ts rename to cli/cli-utils/src/readDepNameCompletions.ts diff --git a/packages/cli-utils/src/readProjectManifest.ts b/cli/cli-utils/src/readProjectManifest.ts similarity index 100% rename from packages/cli-utils/src/readProjectManifest.ts rename to cli/cli-utils/src/readProjectManifest.ts diff --git a/packages/cli-utils/src/recursiveSummary.ts b/cli/cli-utils/src/recursiveSummary.ts similarity index 100% rename from packages/cli-utils/src/recursiveSummary.ts rename to cli/cli-utils/src/recursiveSummary.ts diff --git a/packages/cli-utils/src/style.ts b/cli/cli-utils/src/style.ts similarity index 100% rename from packages/cli-utils/src/style.ts rename to cli/cli-utils/src/style.ts diff --git a/packages/cli-utils/tsconfig.json b/cli/cli-utils/tsconfig.json similarity index 57% rename from packages/cli-utils/tsconfig.json rename to cli/cli-utils/tsconfig.json index 668fd2c405..f5630fc6a3 100644 --- a/packages/cli-utils/tsconfig.json +++ b/cli/cli-utils/tsconfig.json @@ -9,29 +9,29 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../config/config" + }, + { + "path": "../../config/package-is-installable" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/manifest-utils" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../cli-meta" }, - { - "path": "../config" - }, { "path": "../default-reporter" - }, - { - "path": "../error" - }, - { - "path": "../manifest-utils" - }, - { - "path": "../package-is-installable" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../types" } ] } diff --git a/packages/build-modules/tsconfig.lint.json b/cli/cli-utils/tsconfig.lint.json similarity index 100% rename from packages/build-modules/tsconfig.lint.json rename to cli/cli-utils/tsconfig.lint.json diff --git a/packages/command/CHANGELOG.md b/cli/command/CHANGELOG.md similarity index 100% rename from packages/command/CHANGELOG.md rename to cli/command/CHANGELOG.md diff --git a/packages/command/README.md b/cli/command/README.md similarity index 100% rename from packages/command/README.md rename to cli/command/README.md diff --git a/packages/command/package.json b/cli/command/package.json similarity index 82% rename from packages/command/package.json rename to cli/command/package.json index 02a5403d01..85e8993563 100644 --- a/packages/command/package.json +++ b/cli/command/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/command", + "repository": "https://github.com/pnpm/pnpm/blob/main/cli/command", "keywords": [ "pnpm7", "pnpm" @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/command#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/command#readme", "funding": "https://opencollective.com/pnpm", "devDependencies": { "@pnpm/command": "workspace:*" diff --git a/packages/command/src/index.ts b/cli/command/src/index.ts similarity index 100% rename from packages/command/src/index.ts rename to cli/command/src/index.ts diff --git a/packages/command/tsconfig.json b/cli/command/tsconfig.json similarity index 100% rename from packages/command/tsconfig.json rename to cli/command/tsconfig.json diff --git a/packages/cafs-types/tsconfig.lint.json b/cli/command/tsconfig.lint.json similarity index 100% rename from packages/cafs-types/tsconfig.lint.json rename to cli/command/tsconfig.lint.json diff --git a/packages/common-cli-options-help/CHANGELOG.md b/cli/common-cli-options-help/CHANGELOG.md similarity index 100% rename from packages/common-cli-options-help/CHANGELOG.md rename to cli/common-cli-options-help/CHANGELOG.md diff --git a/packages/common-cli-options-help/README.md b/cli/common-cli-options-help/README.md similarity index 100% rename from packages/common-cli-options-help/README.md rename to cli/common-cli-options-help/README.md diff --git a/packages/common-cli-options-help/package.json b/cli/common-cli-options-help/package.json similarity index 79% rename from packages/common-cli-options-help/package.json rename to cli/common-cli-options-help/package.json index bbaa9fdc21..5aa7fb8e7d 100644 --- a/packages/common-cli-options-help/package.json +++ b/cli/common-cli-options-help/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/common-cli-options-help", + "repository": "https://github.com/pnpm/pnpm/blob/main/cli/common-cli-options-help", "keywords": [ "pnpm7", "pnpm" @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/common-cli-options-help#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/common-cli-options-help#readme", "funding": "https://opencollective.com/pnpm", "devDependencies": { "@pnpm/common-cli-options-help": "workspace:*" diff --git a/packages/common-cli-options-help/src/index.ts b/cli/common-cli-options-help/src/index.ts similarity index 100% rename from packages/common-cli-options-help/src/index.ts rename to cli/common-cli-options-help/src/index.ts diff --git a/packages/common-cli-options-help/tsconfig.json b/cli/common-cli-options-help/tsconfig.json similarity index 100% rename from packages/common-cli-options-help/tsconfig.json rename to cli/common-cli-options-help/tsconfig.json diff --git a/packages/cafs/tsconfig.lint.json b/cli/common-cli-options-help/tsconfig.lint.json similarity index 100% rename from packages/cafs/tsconfig.lint.json rename to cli/common-cli-options-help/tsconfig.lint.json diff --git a/packages/default-reporter/CHANGELOG.md b/cli/default-reporter/CHANGELOG.md similarity index 100% rename from packages/default-reporter/CHANGELOG.md rename to cli/default-reporter/CHANGELOG.md diff --git a/packages/default-reporter/README.md b/cli/default-reporter/README.md similarity index 100% rename from packages/default-reporter/README.md rename to cli/default-reporter/README.md diff --git a/packages/build-modules/jest.config.js b/cli/default-reporter/jest.config.js similarity index 100% rename from packages/build-modules/jest.config.js rename to cli/default-reporter/jest.config.js diff --git a/packages/default-reporter/package.json b/cli/default-reporter/package.json similarity index 90% rename from packages/default-reporter/package.json rename to cli/default-reporter/package.json index 628ba8650e..a1fd35a191 100644 --- a/packages/default-reporter/package.json +++ b/cli/default-reporter/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/default-reporter", + "repository": "https://github.com/pnpm/pnpm/blob/main/cli/default-reporter", "keywords": [ "pnpm7", "pnpm-reporter" @@ -61,7 +61,7 @@ "load-json-file": "^6.2.0", "normalize-newline": "3.0.0" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/default-reporter#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/default-reporter#readme", "funding": "https://opencollective.com/pnpm", "exports": { ".": "./lib/index.js" diff --git a/packages/default-reporter/src/constants.ts b/cli/default-reporter/src/constants.ts similarity index 100% rename from packages/default-reporter/src/constants.ts rename to cli/default-reporter/src/constants.ts diff --git a/packages/default-reporter/src/index.ts b/cli/default-reporter/src/index.ts similarity index 100% rename from packages/default-reporter/src/index.ts rename to cli/default-reporter/src/index.ts diff --git a/packages/default-reporter/src/mergeOutputs.ts b/cli/default-reporter/src/mergeOutputs.ts similarity index 100% rename from packages/default-reporter/src/mergeOutputs.ts rename to cli/default-reporter/src/mergeOutputs.ts diff --git a/packages/default-reporter/src/reportError.ts b/cli/default-reporter/src/reportError.ts similarity index 100% rename from packages/default-reporter/src/reportError.ts rename to cli/default-reporter/src/reportError.ts diff --git a/packages/default-reporter/src/reporterForClient/index.ts b/cli/default-reporter/src/reporterForClient/index.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/index.ts rename to cli/default-reporter/src/reporterForClient/index.ts diff --git a/packages/default-reporter/src/reporterForClient/outputConstants.ts b/cli/default-reporter/src/reporterForClient/outputConstants.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/outputConstants.ts rename to cli/default-reporter/src/reporterForClient/outputConstants.ts diff --git a/packages/default-reporter/src/reporterForClient/pkgsDiff.ts b/cli/default-reporter/src/reporterForClient/pkgsDiff.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/pkgsDiff.ts rename to cli/default-reporter/src/reporterForClient/pkgsDiff.ts diff --git a/packages/default-reporter/src/reporterForClient/reportBigTarballsProgress.ts b/cli/default-reporter/src/reporterForClient/reportBigTarballsProgress.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportBigTarballsProgress.ts rename to cli/default-reporter/src/reporterForClient/reportBigTarballsProgress.ts diff --git a/packages/default-reporter/src/reporterForClient/reportContext.ts b/cli/default-reporter/src/reporterForClient/reportContext.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportContext.ts rename to cli/default-reporter/src/reporterForClient/reportContext.ts diff --git a/packages/default-reporter/src/reporterForClient/reportDeprecations.ts b/cli/default-reporter/src/reporterForClient/reportDeprecations.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportDeprecations.ts rename to cli/default-reporter/src/reporterForClient/reportDeprecations.ts diff --git a/packages/default-reporter/src/reporterForClient/reportExecutionTime.ts b/cli/default-reporter/src/reporterForClient/reportExecutionTime.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportExecutionTime.ts rename to cli/default-reporter/src/reporterForClient/reportExecutionTime.ts diff --git a/packages/default-reporter/src/reporterForClient/reportHooks.ts b/cli/default-reporter/src/reporterForClient/reportHooks.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportHooks.ts rename to cli/default-reporter/src/reporterForClient/reportHooks.ts diff --git a/packages/default-reporter/src/reporterForClient/reportInstallChecks.ts b/cli/default-reporter/src/reporterForClient/reportInstallChecks.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportInstallChecks.ts rename to cli/default-reporter/src/reporterForClient/reportInstallChecks.ts diff --git a/packages/default-reporter/src/reporterForClient/reportLifecycleScripts.ts b/cli/default-reporter/src/reporterForClient/reportLifecycleScripts.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportLifecycleScripts.ts rename to cli/default-reporter/src/reporterForClient/reportLifecycleScripts.ts diff --git a/packages/default-reporter/src/reporterForClient/reportMisc.ts b/cli/default-reporter/src/reporterForClient/reportMisc.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportMisc.ts rename to cli/default-reporter/src/reporterForClient/reportMisc.ts diff --git a/packages/default-reporter/src/reporterForClient/reportPeerDependencyIssues.ts b/cli/default-reporter/src/reporterForClient/reportPeerDependencyIssues.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportPeerDependencyIssues.ts rename to cli/default-reporter/src/reporterForClient/reportPeerDependencyIssues.ts diff --git a/packages/default-reporter/src/reporterForClient/reportProgress.ts b/cli/default-reporter/src/reporterForClient/reportProgress.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportProgress.ts rename to cli/default-reporter/src/reporterForClient/reportProgress.ts diff --git a/packages/default-reporter/src/reporterForClient/reportRequestRetry.ts b/cli/default-reporter/src/reporterForClient/reportRequestRetry.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportRequestRetry.ts rename to cli/default-reporter/src/reporterForClient/reportRequestRetry.ts diff --git a/packages/default-reporter/src/reporterForClient/reportScope.ts b/cli/default-reporter/src/reporterForClient/reportScope.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportScope.ts rename to cli/default-reporter/src/reporterForClient/reportScope.ts diff --git a/packages/default-reporter/src/reporterForClient/reportSkippedOptionalDependencies.ts b/cli/default-reporter/src/reporterForClient/reportSkippedOptionalDependencies.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportSkippedOptionalDependencies.ts rename to cli/default-reporter/src/reporterForClient/reportSkippedOptionalDependencies.ts diff --git a/packages/default-reporter/src/reporterForClient/reportStats.ts b/cli/default-reporter/src/reporterForClient/reportStats.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportStats.ts rename to cli/default-reporter/src/reporterForClient/reportStats.ts diff --git a/packages/default-reporter/src/reporterForClient/reportSummary.ts b/cli/default-reporter/src/reporterForClient/reportSummary.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportSummary.ts rename to cli/default-reporter/src/reporterForClient/reportSummary.ts diff --git a/packages/default-reporter/src/reporterForClient/reportUpdateCheck.ts b/cli/default-reporter/src/reporterForClient/reportUpdateCheck.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/reportUpdateCheck.ts rename to cli/default-reporter/src/reporterForClient/reportUpdateCheck.ts diff --git a/packages/default-reporter/src/reporterForClient/utils/formatPrefix.ts b/cli/default-reporter/src/reporterForClient/utils/formatPrefix.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/utils/formatPrefix.ts rename to cli/default-reporter/src/reporterForClient/utils/formatPrefix.ts diff --git a/packages/default-reporter/src/reporterForClient/utils/formatWarn.ts b/cli/default-reporter/src/reporterForClient/utils/formatWarn.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/utils/formatWarn.ts rename to cli/default-reporter/src/reporterForClient/utils/formatWarn.ts diff --git a/packages/default-reporter/src/reporterForClient/utils/zooming.ts b/cli/default-reporter/src/reporterForClient/utils/zooming.ts similarity index 100% rename from packages/default-reporter/src/reporterForClient/utils/zooming.ts rename to cli/default-reporter/src/reporterForClient/utils/zooming.ts diff --git a/packages/default-reporter/src/reporterForServer.ts b/cli/default-reporter/src/reporterForServer.ts similarity index 100% rename from packages/default-reporter/src/reporterForServer.ts rename to cli/default-reporter/src/reporterForServer.ts diff --git a/packages/default-reporter/test/__snapshots__/reportingUpdateCheck.ts.snap b/cli/default-reporter/test/__snapshots__/reportingUpdateCheck.ts.snap similarity index 100% rename from packages/default-reporter/test/__snapshots__/reportingUpdateCheck.ts.snap rename to cli/default-reporter/test/__snapshots__/reportingUpdateCheck.ts.snap diff --git a/packages/default-reporter/test/filterLogHook.ts b/cli/default-reporter/test/filterLogHook.ts similarity index 100% rename from packages/default-reporter/test/filterLogHook.ts rename to cli/default-reporter/test/filterLogHook.ts diff --git a/packages/default-reporter/test/index.ts b/cli/default-reporter/test/index.ts similarity index 100% rename from packages/default-reporter/test/index.ts rename to cli/default-reporter/test/index.ts diff --git a/packages/default-reporter/test/is-positive-meta.json b/cli/default-reporter/test/is-positive-meta.json similarity index 100% rename from packages/default-reporter/test/is-positive-meta.json rename to cli/default-reporter/test/is-positive-meta.json diff --git a/packages/default-reporter/test/pnpm-meta.json b/cli/default-reporter/test/pnpm-meta.json similarity index 100% rename from packages/default-reporter/test/pnpm-meta.json rename to cli/default-reporter/test/pnpm-meta.json diff --git a/packages/default-reporter/test/reportingContext.ts b/cli/default-reporter/test/reportingContext.ts similarity index 100% rename from packages/default-reporter/test/reportingContext.ts rename to cli/default-reporter/test/reportingContext.ts diff --git a/packages/default-reporter/test/reportingErrors.ts b/cli/default-reporter/test/reportingErrors.ts similarity index 100% rename from packages/default-reporter/test/reportingErrors.ts rename to cli/default-reporter/test/reportingErrors.ts diff --git a/packages/default-reporter/test/reportingExecutionTime.ts b/cli/default-reporter/test/reportingExecutionTime.ts similarity index 100% rename from packages/default-reporter/test/reportingExecutionTime.ts rename to cli/default-reporter/test/reportingExecutionTime.ts diff --git a/packages/default-reporter/test/reportingLifecycleScripts.ts b/cli/default-reporter/test/reportingLifecycleScripts.ts similarity index 100% rename from packages/default-reporter/test/reportingLifecycleScripts.ts rename to cli/default-reporter/test/reportingLifecycleScripts.ts diff --git a/packages/default-reporter/test/reportingPeerDependencyIssues.ts b/cli/default-reporter/test/reportingPeerDependencyIssues.ts similarity index 100% rename from packages/default-reporter/test/reportingPeerDependencyIssues.ts rename to cli/default-reporter/test/reportingPeerDependencyIssues.ts diff --git a/packages/default-reporter/test/reportingProgress.ts b/cli/default-reporter/test/reportingProgress.ts similarity index 100% rename from packages/default-reporter/test/reportingProgress.ts rename to cli/default-reporter/test/reportingProgress.ts diff --git a/packages/default-reporter/test/reportingRequestRetry.ts b/cli/default-reporter/test/reportingRequestRetry.ts similarity index 100% rename from packages/default-reporter/test/reportingRequestRetry.ts rename to cli/default-reporter/test/reportingRequestRetry.ts diff --git a/packages/default-reporter/test/reportingScope.ts b/cli/default-reporter/test/reportingScope.ts similarity index 100% rename from packages/default-reporter/test/reportingScope.ts rename to cli/default-reporter/test/reportingScope.ts diff --git a/packages/default-reporter/test/reportingUpdateCheck.ts b/cli/default-reporter/test/reportingUpdateCheck.ts similarity index 100% rename from packages/default-reporter/test/reportingUpdateCheck.ts rename to cli/default-reporter/test/reportingUpdateCheck.ts diff --git a/packages/lifecycle/tsconfig.json b/cli/default-reporter/tsconfig.json similarity index 56% rename from packages/lifecycle/tsconfig.json rename to cli/default-reporter/tsconfig.json index 11124d1c40..0c385db614 100644 --- a/packages/lifecycle/tsconfig.json +++ b/cli/default-reporter/tsconfig.json @@ -10,19 +10,19 @@ ], "references": [ { - "path": "../core-loggers" + "path": "../../config/config" }, { - "path": "../directory-fetcher" + "path": "../../packages/core-loggers" }, { - "path": "../read-package-json" + "path": "../../packages/error" }, { - "path": "../store-controller-types" + "path": "../../packages/render-peer-issues" }, { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/cli-meta/tsconfig.lint.json b/cli/default-reporter/tsconfig.lint.json similarity index 100% rename from packages/cli-meta/tsconfig.lint.json rename to cli/default-reporter/tsconfig.lint.json diff --git a/packages/parse-cli-args/CHANGELOG.md b/cli/parse-cli-args/CHANGELOG.md similarity index 100% rename from packages/parse-cli-args/CHANGELOG.md rename to cli/parse-cli-args/CHANGELOG.md diff --git a/packages/parse-cli-args/README.md b/cli/parse-cli-args/README.md similarity index 100% rename from packages/parse-cli-args/README.md rename to cli/parse-cli-args/README.md diff --git a/packages/parse-cli-args/jest.config.js b/cli/parse-cli-args/jest.config.js similarity index 100% rename from packages/parse-cli-args/jest.config.js rename to cli/parse-cli-args/jest.config.js diff --git a/packages/parse-cli-args/package.json b/cli/parse-cli-args/package.json similarity index 85% rename from packages/parse-cli-args/package.json rename to cli/parse-cli-args/package.json index fadd4d2560..3d54098198 100644 --- a/packages/parse-cli-args/package.json +++ b/cli/parse-cli-args/package.json @@ -19,7 +19,7 @@ "start": "tsc --watch", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/parse-cli-args", + "repository": "https://github.com/pnpm/pnpm/blob/main/cli/parse-cli-args", "keywords": [ "pnpm7", "pnpm" @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/parse-cli-args#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/parse-cli-args#readme", "devDependencies": { "@pnpm/parse-cli-args": "workspace:*", "tempy": "^1.0.1" diff --git a/packages/parse-cli-args/src/index.ts b/cli/parse-cli-args/src/index.ts similarity index 100% rename from packages/parse-cli-args/src/index.ts rename to cli/parse-cli-args/src/index.ts diff --git a/packages/parse-cli-args/test/index.ts b/cli/parse-cli-args/test/index.ts similarity index 100% rename from packages/parse-cli-args/test/index.ts rename to cli/parse-cli-args/test/index.ts diff --git a/packages/find-packages/tsconfig.json b/cli/parse-cli-args/tsconfig.json similarity index 71% rename from packages/find-packages/tsconfig.json rename to cli/parse-cli-args/tsconfig.json index 5cda9d07a8..2f39803eef 100644 --- a/packages/find-packages/tsconfig.json +++ b/cli/parse-cli-args/tsconfig.json @@ -10,10 +10,10 @@ ], "references": [ { - "path": "../read-project-manifest" + "path": "../../packages/error" }, { - "path": "../types" + "path": "../../workspace/find-workspace-dir" } ] } diff --git a/packages/cli-utils/tsconfig.lint.json b/cli/parse-cli-args/tsconfig.lint.json similarity index 100% rename from packages/cli-utils/tsconfig.lint.json rename to cli/parse-cli-args/tsconfig.lint.json diff --git a/packages/config/CHANGELOG.md b/config/config/CHANGELOG.md similarity index 100% rename from packages/config/CHANGELOG.md rename to config/config/CHANGELOG.md diff --git a/packages/config/README.md b/config/config/README.md similarity index 100% rename from packages/config/README.md rename to config/config/README.md diff --git a/packages/audit/jest.config.js b/config/config/jest.config.js similarity index 100% rename from packages/audit/jest.config.js rename to config/config/jest.config.js diff --git a/packages/config/package.json b/config/config/package.json similarity index 92% rename from packages/config/package.json rename to config/config/package.json index 1b6c06a7db..2c1cf00100 100644 --- a/packages/config/package.json +++ b/config/config/package.json @@ -17,7 +17,7 @@ "start": "tsc --watch", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/config", + "repository": "https://github.com/pnpm/pnpm/blob/main/config/config", "keywords": [ "pnpm7", "pnpm", @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/config#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/config/config#readme", "dependencies": { "@pnpm/config.env-replace": "1.0.0", "@pnpm/constants": "workspace:*", diff --git a/packages/config/src/Config.ts b/config/config/src/Config.ts similarity index 100% rename from packages/config/src/Config.ts rename to config/config/src/Config.ts diff --git a/packages/config/src/checkGlobalBinDir.ts b/config/config/src/checkGlobalBinDir.ts similarity index 100% rename from packages/config/src/checkGlobalBinDir.ts rename to config/config/src/checkGlobalBinDir.ts diff --git a/packages/config/src/concurrency.ts b/config/config/src/concurrency.ts similarity index 100% rename from packages/config/src/concurrency.ts rename to config/config/src/concurrency.ts diff --git a/packages/config/src/dirs.ts b/config/config/src/dirs.ts similarity index 100% rename from packages/config/src/dirs.ts rename to config/config/src/dirs.ts diff --git a/packages/config/src/getScopeRegistries.ts b/config/config/src/getScopeRegistries.ts similarity index 100% rename from packages/config/src/getScopeRegistries.ts rename to config/config/src/getScopeRegistries.ts diff --git a/packages/config/src/index.ts b/config/config/src/index.ts similarity index 100% rename from packages/config/src/index.ts rename to config/config/src/index.ts diff --git a/packages/config/src/readLocalConfig.ts b/config/config/src/readLocalConfig.ts similarity index 100% rename from packages/config/src/readLocalConfig.ts rename to config/config/src/readLocalConfig.ts diff --git a/packages/config/test/cafile.txt b/config/config/test/cafile.txt similarity index 100% rename from packages/config/test/cafile.txt rename to config/config/test/cafile.txt diff --git a/packages/config/test/concurrency.test.ts b/config/config/test/concurrency.test.ts similarity index 100% rename from packages/config/test/concurrency.test.ts rename to config/config/test/concurrency.test.ts diff --git a/packages/config/test/dirs.test.ts b/config/config/test/dirs.test.ts similarity index 100% rename from packages/config/test/dirs.test.ts rename to config/config/test/dirs.test.ts diff --git a/packages/config/test/fixtures/pkg-using-workspaces/package.json b/config/config/test/fixtures/pkg-using-workspaces/package.json similarity index 100% rename from packages/config/test/fixtures/pkg-using-workspaces/package.json rename to config/config/test/fixtures/pkg-using-workspaces/package.json diff --git a/packages/config/test/global-bin-dir-windows/etc/npmrc b/config/config/test/global-bin-dir-windows/etc/npmrc similarity index 100% rename from packages/config/test/global-bin-dir-windows/etc/npmrc rename to config/config/test/global-bin-dir-windows/etc/npmrc diff --git a/packages/config/test/global-bin-dir/etc/npmrc b/config/config/test/global-bin-dir/etc/npmrc similarity index 100% rename from packages/config/test/global-bin-dir/etc/npmrc rename to config/config/test/global-bin-dir/etc/npmrc diff --git a/packages/config/test/globalBinDir.test.ts b/config/config/test/globalBinDir.test.ts similarity index 100% rename from packages/config/test/globalBinDir.test.ts rename to config/config/test/globalBinDir.test.ts diff --git a/packages/config/test/has-workspace-yaml/pnpm-workspace.yaml b/config/config/test/has-workspace-yaml/pnpm-workspace.yaml similarity index 100% rename from packages/config/test/has-workspace-yaml/pnpm-workspace.yaml rename to config/config/test/has-workspace-yaml/pnpm-workspace.yaml diff --git a/packages/config/test/index.ts b/config/config/test/index.ts similarity index 100% rename from packages/config/test/index.ts rename to config/config/test/index.ts diff --git a/packages/config/test/scoped-registries.ini b/config/config/test/scoped-registries.ini similarity index 100% rename from packages/config/test/scoped-registries.ini rename to config/config/test/scoped-registries.ini diff --git a/packages/config/test/using-test-pattern/.npmrc b/config/config/test/using-test-pattern/.npmrc similarity index 100% rename from packages/config/test/using-test-pattern/.npmrc rename to config/config/test/using-test-pattern/.npmrc diff --git a/packages/config/tsconfig.json b/config/config/tsconfig.json similarity index 63% rename from packages/config/tsconfig.json rename to config/config/tsconfig.json index e2bf7a28dc..0e7ab5f005 100644 --- a/packages/config/tsconfig.json +++ b/config/config/tsconfig.json @@ -9,32 +9,32 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../hooks/pnpmfile" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/git-utils" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../../privatePackages/prepare" }, { "path": "../../privatePackages/test-fixtures" }, - { - "path": "../constants" - }, - { - "path": "../error" - }, - { - "path": "../git-utils" - }, { "path": "../matcher" - }, - { - "path": "../pnpmfile" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../types" } ] } diff --git a/packages/client/tsconfig.lint.json b/config/config/tsconfig.lint.json similarity index 100% rename from packages/client/tsconfig.lint.json rename to config/config/tsconfig.lint.json diff --git a/packages/matcher/CHANGELOG.md b/config/matcher/CHANGELOG.md similarity index 100% rename from packages/matcher/CHANGELOG.md rename to config/matcher/CHANGELOG.md diff --git a/packages/matcher/README.md b/config/matcher/README.md similarity index 100% rename from packages/matcher/README.md rename to config/matcher/README.md diff --git a/packages/lifecycle/jest.config.js b/config/matcher/jest.config.js similarity index 100% rename from packages/lifecycle/jest.config.js rename to config/matcher/jest.config.js diff --git a/packages/matcher/package.json b/config/matcher/package.json similarity index 84% rename from packages/matcher/package.json rename to config/matcher/package.json index 823c896f6b..906cb18000 100644 --- a/packages/matcher/package.json +++ b/config/matcher/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/matcher", + "repository": "https://github.com/pnpm/pnpm/blob/main/config/matcher", "keywords": [ "pnpm7", "pnpm", @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/matcher#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/config/matcher#readme", "dependencies": { "escape-string-regexp": "^4.0.0" }, diff --git a/packages/matcher/src/index.ts b/config/matcher/src/index.ts similarity index 100% rename from packages/matcher/src/index.ts rename to config/matcher/src/index.ts diff --git a/packages/matcher/test/index.ts b/config/matcher/test/index.ts similarity index 100% rename from packages/matcher/test/index.ts rename to config/matcher/test/index.ts diff --git a/packages/fetching-types/tsconfig.json b/config/matcher/tsconfig.json similarity index 100% rename from packages/fetching-types/tsconfig.json rename to config/matcher/tsconfig.json diff --git a/packages/command/tsconfig.lint.json b/config/matcher/tsconfig.lint.json similarity index 100% rename from packages/command/tsconfig.lint.json rename to config/matcher/tsconfig.lint.json diff --git a/packages/normalize-registries/CHANGELOG.md b/config/normalize-registries/CHANGELOG.md similarity index 100% rename from packages/normalize-registries/CHANGELOG.md rename to config/normalize-registries/CHANGELOG.md diff --git a/packages/normalize-registries/README.md b/config/normalize-registries/README.md similarity index 100% rename from packages/normalize-registries/README.md rename to config/normalize-registries/README.md diff --git a/packages/normalize-registries/package.json b/config/normalize-registries/package.json similarity index 83% rename from packages/normalize-registries/package.json rename to config/normalize-registries/package.json index fbebd6ebff..59b16ff90c 100644 --- a/packages/normalize-registries/package.json +++ b/config/normalize-registries/package.json @@ -18,7 +18,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/normalize-registries", + "repository": "https://github.com/pnpm/pnpm/blob/main/config/normalize-registries", "scripts": { "test": "pnpm run compile", "lint": "eslint src/**/*.ts", @@ -30,7 +30,7 @@ "normalize-registry-url": "2.0.0", "ramda": "npm:@pnpm/ramda@0.28.1" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/normalize-registries#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/config/normalize-registries#readme", "funding": "https://opencollective.com/pnpm", "devDependencies": { "@pnpm/normalize-registries": "workspace:*", diff --git a/packages/normalize-registries/src/index.ts b/config/normalize-registries/src/index.ts similarity index 100% rename from packages/normalize-registries/src/index.ts rename to config/normalize-registries/src/index.ts diff --git a/packages/lockfile-types/tsconfig.json b/config/normalize-registries/tsconfig.json similarity index 84% rename from packages/lockfile-types/tsconfig.json rename to config/normalize-registries/tsconfig.json index 7fa294a1eb..4934a75de4 100644 --- a/packages/lockfile-types/tsconfig.json +++ b/config/normalize-registries/tsconfig.json @@ -10,7 +10,7 @@ ], "references": [ { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/common-cli-options-help/tsconfig.lint.json b/config/normalize-registries/tsconfig.lint.json similarity index 100% rename from packages/common-cli-options-help/tsconfig.lint.json rename to config/normalize-registries/tsconfig.lint.json diff --git a/packages/package-is-installable/CHANGELOG.md b/config/package-is-installable/CHANGELOG.md similarity index 100% rename from packages/package-is-installable/CHANGELOG.md rename to config/package-is-installable/CHANGELOG.md diff --git a/packages/package-is-installable/README.md b/config/package-is-installable/README.md similarity index 100% rename from packages/package-is-installable/README.md rename to config/package-is-installable/README.md diff --git a/packages/default-reporter/jest.config.js b/config/package-is-installable/jest.config.js similarity index 100% rename from packages/default-reporter/jest.config.js rename to config/package-is-installable/jest.config.js diff --git a/packages/package-is-installable/package.json b/config/package-is-installable/package.json similarity index 86% rename from packages/package-is-installable/package.json rename to config/package-is-installable/package.json index 7799c88996..c8e2baf63a 100644 --- a/packages/package-is-installable/package.json +++ b/config/package-is-installable/package.json @@ -18,8 +18,8 @@ "peerDependencies": { "@pnpm/logger": "^5.0.0" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/package-is-installable", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/package-is-installable#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/config/package-is-installable", + "homepage": "https://github.com/pnpm/pnpm/blob/main/config/package-is-installable#readme", "scripts": { "start": "tsc --watch", "_test": "jest", diff --git a/packages/package-is-installable/src/checkEngine.ts b/config/package-is-installable/src/checkEngine.ts similarity index 100% rename from packages/package-is-installable/src/checkEngine.ts rename to config/package-is-installable/src/checkEngine.ts diff --git a/packages/package-is-installable/src/checkPlatform.ts b/config/package-is-installable/src/checkPlatform.ts similarity index 100% rename from packages/package-is-installable/src/checkPlatform.ts rename to config/package-is-installable/src/checkPlatform.ts diff --git a/packages/package-is-installable/src/getSystemNodeVersion.ts b/config/package-is-installable/src/getSystemNodeVersion.ts similarity index 100% rename from packages/package-is-installable/src/getSystemNodeVersion.ts rename to config/package-is-installable/src/getSystemNodeVersion.ts diff --git a/packages/package-is-installable/src/index.ts b/config/package-is-installable/src/index.ts similarity index 100% rename from packages/package-is-installable/src/index.ts rename to config/package-is-installable/src/index.ts diff --git a/packages/package-is-installable/test/checkEngine.ts b/config/package-is-installable/test/checkEngine.ts similarity index 100% rename from packages/package-is-installable/test/checkEngine.ts rename to config/package-is-installable/test/checkEngine.ts diff --git a/packages/package-is-installable/test/checkPlatform.ts b/config/package-is-installable/test/checkPlatform.ts similarity index 100% rename from packages/package-is-installable/test/checkPlatform.ts rename to config/package-is-installable/test/checkPlatform.ts diff --git a/packages/package-is-installable/test/getSystemNodeVersion.test.ts b/config/package-is-installable/test/getSystemNodeVersion.test.ts similarity index 100% rename from packages/package-is-installable/test/getSystemNodeVersion.test.ts rename to config/package-is-installable/test/getSystemNodeVersion.test.ts diff --git a/packages/manifest-utils/tsconfig.json b/config/package-is-installable/tsconfig.json similarity index 66% rename from packages/manifest-utils/tsconfig.json rename to config/package-is-installable/tsconfig.json index 4294fb7883..723f453bbd 100644 --- a/packages/manifest-utils/tsconfig.json +++ b/config/package-is-installable/tsconfig.json @@ -10,13 +10,13 @@ ], "references": [ { - "path": "../core-loggers" + "path": "../../packages/core-loggers" }, { - "path": "../error" + "path": "../../packages/error" }, { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/config/tsconfig.lint.json b/config/package-is-installable/tsconfig.lint.json similarity index 100% rename from packages/config/tsconfig.lint.json rename to config/package-is-installable/tsconfig.lint.json diff --git a/packages/parse-overrides/CHANGELOG.md b/config/parse-overrides/CHANGELOG.md similarity index 100% rename from packages/parse-overrides/CHANGELOG.md rename to config/parse-overrides/CHANGELOG.md diff --git a/packages/parse-overrides/README.md b/config/parse-overrides/README.md similarity index 100% rename from packages/parse-overrides/README.md rename to config/parse-overrides/README.md diff --git a/packages/npm-resolver/jest.config.js b/config/parse-overrides/jest.config.js similarity index 100% rename from packages/npm-resolver/jest.config.js rename to config/parse-overrides/jest.config.js diff --git a/packages/parse-overrides/package.json b/config/parse-overrides/package.json similarity index 83% rename from packages/parse-overrides/package.json rename to config/parse-overrides/package.json index 5a7ffbe05b..2d07ae7b9a 100644 --- a/packages/parse-overrides/package.json +++ b/config/parse-overrides/package.json @@ -18,7 +18,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/parse-overrides", + "repository": "https://github.com/pnpm/pnpm/blob/main/config/parse-overrides", "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", @@ -26,7 +26,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/parse-overrides#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/config/parse-overrides#readme", "funding": "https://opencollective.com/pnpm", "dependencies": { "@pnpm/error": "workspace:*", diff --git a/packages/parse-overrides/src/index.ts b/config/parse-overrides/src/index.ts similarity index 100% rename from packages/parse-overrides/src/index.ts rename to config/parse-overrides/src/index.ts diff --git a/packages/parse-overrides/test/index.ts b/config/parse-overrides/test/index.ts similarity index 100% rename from packages/parse-overrides/test/index.ts rename to config/parse-overrides/test/index.ts diff --git a/config/parse-overrides/tsconfig.json b/config/parse-overrides/tsconfig.json new file mode 100644 index 0000000000..f77e67b26a --- /dev/null +++ b/config/parse-overrides/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/error" + }, + { + "path": "../../packages/parse-wanted-dependency" + } + ] +} diff --git a/packages/core/tsconfig.lint.json b/config/parse-overrides/tsconfig.lint.json similarity index 100% rename from packages/core/tsconfig.lint.json rename to config/parse-overrides/tsconfig.lint.json diff --git a/packages/pick-registry-for-package/CHANGELOG.md b/config/pick-registry-for-package/CHANGELOG.md similarity index 100% rename from packages/pick-registry-for-package/CHANGELOG.md rename to config/pick-registry-for-package/CHANGELOG.md diff --git a/packages/pick-registry-for-package/README.md b/config/pick-registry-for-package/README.md similarity index 100% rename from packages/pick-registry-for-package/README.md rename to config/pick-registry-for-package/README.md diff --git a/packages/package-is-installable/jest.config.js b/config/pick-registry-for-package/jest.config.js similarity index 100% rename from packages/package-is-installable/jest.config.js rename to config/pick-registry-for-package/jest.config.js diff --git a/packages/pick-registry-for-package/package.json b/config/pick-registry-for-package/package.json similarity index 82% rename from packages/pick-registry-for-package/package.json rename to config/pick-registry-for-package/package.json index ccdb59d092..6228de5317 100644 --- a/packages/pick-registry-for-package/package.json +++ b/config/pick-registry-for-package/package.json @@ -18,7 +18,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/pick-registry-for-package", + "repository": "https://github.com/pnpm/pnpm/blob/main/config/pick-registry-for-package", "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", @@ -29,7 +29,7 @@ "dependencies": { "@pnpm/types": "workspace:*" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/pick-registry-for-package#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/config/pick-registry-for-package#readme", "funding": "https://opencollective.com/pnpm", "devDependencies": { "@pnpm/pick-registry-for-package": "workspace:*" diff --git a/packages/pick-registry-for-package/src/index.ts b/config/pick-registry-for-package/src/index.ts similarity index 100% rename from packages/pick-registry-for-package/src/index.ts rename to config/pick-registry-for-package/src/index.ts diff --git a/packages/pick-registry-for-package/test/index.spec.ts b/config/pick-registry-for-package/test/index.spec.ts similarity index 100% rename from packages/pick-registry-for-package/test/index.spec.ts rename to config/pick-registry-for-package/test/index.spec.ts diff --git a/packages/cafs-types/tsconfig.json b/config/pick-registry-for-package/tsconfig.json similarity index 84% rename from packages/cafs-types/tsconfig.json rename to config/pick-registry-for-package/tsconfig.json index 7fa294a1eb..4934a75de4 100644 --- a/packages/cafs-types/tsconfig.json +++ b/config/pick-registry-for-package/tsconfig.json @@ -10,7 +10,7 @@ ], "references": [ { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/create-cafs-store/tsconfig.lint.json b/config/pick-registry-for-package/tsconfig.lint.json similarity index 100% rename from packages/create-cafs-store/tsconfig.lint.json rename to config/pick-registry-for-package/tsconfig.lint.json diff --git a/packages/node.fetcher/CHANGELOG.md b/env/node.fetcher/CHANGELOG.md similarity index 100% rename from packages/node.fetcher/CHANGELOG.md rename to env/node.fetcher/CHANGELOG.md diff --git a/packages/node.fetcher/README.md b/env/node.fetcher/README.md similarity index 100% rename from packages/node.fetcher/README.md rename to env/node.fetcher/README.md diff --git a/packages/node.fetcher/jest.config.js b/env/node.fetcher/jest.config.js similarity index 100% rename from packages/node.fetcher/jest.config.js rename to env/node.fetcher/jest.config.js diff --git a/packages/node.fetcher/package.json b/env/node.fetcher/package.json similarity index 88% rename from packages/node.fetcher/package.json rename to env/node.fetcher/package.json index 330bc6cc7d..107174b786 100644 --- a/packages/node.fetcher/package.json +++ b/env/node.fetcher/package.json @@ -22,7 +22,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/node.fetcher", + "repository": "https://github.com/pnpm/pnpm/blob/main/env/node.fetcher", "keywords": [ "pnpm7", "pnpm", @@ -33,7 +33,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/node.fetcher#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/env/node.fetcher#readme", "dependencies": { "@pnpm/create-cafs-store": "workspace:*", "@pnpm/error": "workspace:*", diff --git a/packages/node.fetcher/src/getNodeTarball.ts b/env/node.fetcher/src/getNodeTarball.ts similarity index 100% rename from packages/node.fetcher/src/getNodeTarball.ts rename to env/node.fetcher/src/getNodeTarball.ts diff --git a/packages/node.fetcher/src/index.ts b/env/node.fetcher/src/index.ts similarity index 100% rename from packages/node.fetcher/src/index.ts rename to env/node.fetcher/src/index.ts diff --git a/packages/node.fetcher/src/normalizeArch.ts b/env/node.fetcher/src/normalizeArch.ts similarity index 100% rename from packages/node.fetcher/src/normalizeArch.ts rename to env/node.fetcher/src/normalizeArch.ts diff --git a/packages/node.fetcher/test/getNodeTarball.test.ts b/env/node.fetcher/test/getNodeTarball.test.ts similarity index 100% rename from packages/node.fetcher/test/getNodeTarball.test.ts rename to env/node.fetcher/test/getNodeTarball.test.ts diff --git a/packages/node.fetcher/test/node.test.ts b/env/node.fetcher/test/node.test.ts similarity index 100% rename from packages/node.fetcher/test/node.test.ts rename to env/node.fetcher/test/node.test.ts diff --git a/packages/node.fetcher/test/normalizeArch.test.ts b/env/node.fetcher/test/normalizeArch.test.ts similarity index 100% rename from packages/node.fetcher/test/normalizeArch.test.ts rename to env/node.fetcher/test/normalizeArch.test.ts diff --git a/packages/node.fetcher/tsconfig.json b/env/node.fetcher/tsconfig.json similarity index 53% rename from packages/node.fetcher/tsconfig.json rename to env/node.fetcher/tsconfig.json index 63b0b53e94..a8e3414abd 100644 --- a/packages/node.fetcher/tsconfig.json +++ b/env/node.fetcher/tsconfig.json @@ -9,29 +9,29 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../fetching/pick-fetcher" + }, + { + "path": "../../fetching/tarball-fetcher" + }, + { + "path": "../../network/fetching-types" + }, + { + "path": "../../packages/error" + }, { "path": "../../privatePackages/prepare" }, { - "path": "../cafs-types" + "path": "../../store/cafs-types" }, { - "path": "../create-cafs-store" - }, - { - "path": "../error" - }, - { - "path": "../fetcher-base" - }, - { - "path": "../fetching-types" - }, - { - "path": "../pick-fetcher" - }, - { - "path": "../tarball-fetcher" + "path": "../../store/create-cafs-store" } ] } diff --git a/packages/default-reporter/tsconfig.lint.json b/env/node.fetcher/tsconfig.lint.json similarity index 100% rename from packages/default-reporter/tsconfig.lint.json rename to env/node.fetcher/tsconfig.lint.json diff --git a/packages/node.resolver/CHANGELOG.md b/env/node.resolver/CHANGELOG.md similarity index 100% rename from packages/node.resolver/CHANGELOG.md rename to env/node.resolver/CHANGELOG.md diff --git a/packages/node.resolver/README.md b/env/node.resolver/README.md similarity index 100% rename from packages/node.resolver/README.md rename to env/node.resolver/README.md diff --git a/packages/node.resolver/jest.config.js b/env/node.resolver/jest.config.js similarity index 100% rename from packages/node.resolver/jest.config.js rename to env/node.resolver/jest.config.js diff --git a/packages/node.resolver/package.json b/env/node.resolver/package.json similarity index 86% rename from packages/node.resolver/package.json rename to env/node.resolver/package.json index 277cc4a7a5..a1c554de0d 100644 --- a/packages/node.resolver/package.json +++ b/env/node.resolver/package.json @@ -22,7 +22,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/node.resolver", + "repository": "https://github.com/pnpm/pnpm/blob/main/env/node.resolver", "keywords": [ "pnpm7", "pnpm", @@ -33,7 +33,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/node.resolver#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/env/node.resolver#readme", "dependencies": { "@pnpm/fetching-types": "workspace:*", "@pnpm/node.fetcher": "workspace:*", diff --git a/packages/node.resolver/src/index.ts b/env/node.resolver/src/index.ts similarity index 100% rename from packages/node.resolver/src/index.ts rename to env/node.resolver/src/index.ts diff --git a/packages/node.resolver/test/resolveNodeVersion.test.ts b/env/node.resolver/test/resolveNodeVersion.test.ts similarity index 100% rename from packages/node.resolver/test/resolveNodeVersion.test.ts rename to env/node.resolver/test/resolveNodeVersion.test.ts diff --git a/packages/node.resolver/test/resolveNodeVersions.test.ts b/env/node.resolver/test/resolveNodeVersions.test.ts similarity index 100% rename from packages/node.resolver/test/resolveNodeVersions.test.ts rename to env/node.resolver/test/resolveNodeVersions.test.ts diff --git a/packages/node.resolver/tsconfig.json b/env/node.resolver/tsconfig.json similarity index 76% rename from packages/node.resolver/tsconfig.json rename to env/node.resolver/tsconfig.json index cf8b24d085..e5ac6a056e 100644 --- a/packages/node.resolver/tsconfig.json +++ b/env/node.resolver/tsconfig.json @@ -10,10 +10,10 @@ ], "references": [ { - "path": "../fetch" + "path": "../../network/fetch" }, { - "path": "../fetching-types" + "path": "../../network/fetching-types" }, { "path": "../node.fetcher" diff --git a/packages/default-resolver/tsconfig.lint.json b/env/node.resolver/tsconfig.lint.json similarity index 100% rename from packages/default-resolver/tsconfig.lint.json rename to env/node.resolver/tsconfig.lint.json diff --git a/packages/plugin-commands-env/CHANGELOG.md b/env/plugin-commands-env/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-env/CHANGELOG.md rename to env/plugin-commands-env/CHANGELOG.md diff --git a/packages/plugin-commands-env/README.md b/env/plugin-commands-env/README.md similarity index 100% rename from packages/plugin-commands-env/README.md rename to env/plugin-commands-env/README.md diff --git a/packages/plugin-commands-env/jest.config.js b/env/plugin-commands-env/jest.config.js similarity index 100% rename from packages/plugin-commands-env/jest.config.js rename to env/plugin-commands-env/jest.config.js diff --git a/packages/plugin-commands-env/package.json b/env/plugin-commands-env/package.json similarity index 89% rename from packages/plugin-commands-env/package.json rename to env/plugin-commands-env/package.json index b78c0f9573..bbe76cf1b9 100644 --- a/packages/plugin-commands-env/package.json +++ b/env/plugin-commands-env/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-env", + "repository": "https://github.com/pnpm/pnpm/blob/main/env/plugin-commands-env", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-env#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/env/plugin-commands-env#readme", "dependencies": { "@pnpm/cli-utils": "workspace:*", "@pnpm/config": "workspace:*", diff --git a/packages/plugin-commands-env/src/env.ts b/env/plugin-commands-env/src/env.ts similarity index 100% rename from packages/plugin-commands-env/src/env.ts rename to env/plugin-commands-env/src/env.ts diff --git a/packages/plugin-commands-env/src/envList.ts b/env/plugin-commands-env/src/envList.ts similarity index 100% rename from packages/plugin-commands-env/src/envList.ts rename to env/plugin-commands-env/src/envList.ts diff --git a/packages/plugin-commands-env/src/envRemove.ts b/env/plugin-commands-env/src/envRemove.ts similarity index 100% rename from packages/plugin-commands-env/src/envRemove.ts rename to env/plugin-commands-env/src/envRemove.ts diff --git a/packages/plugin-commands-env/src/envUse.ts b/env/plugin-commands-env/src/envUse.ts similarity index 100% rename from packages/plugin-commands-env/src/envUse.ts rename to env/plugin-commands-env/src/envUse.ts diff --git a/packages/plugin-commands-env/src/getNodeMirror.ts b/env/plugin-commands-env/src/getNodeMirror.ts similarity index 100% rename from packages/plugin-commands-env/src/getNodeMirror.ts rename to env/plugin-commands-env/src/getNodeMirror.ts diff --git a/packages/plugin-commands-env/src/index.ts b/env/plugin-commands-env/src/index.ts similarity index 100% rename from packages/plugin-commands-env/src/index.ts rename to env/plugin-commands-env/src/index.ts diff --git a/packages/plugin-commands-env/src/node.ts b/env/plugin-commands-env/src/node.ts similarity index 100% rename from packages/plugin-commands-env/src/node.ts rename to env/plugin-commands-env/src/node.ts diff --git a/packages/plugin-commands-env/src/parseNodeEditionSpecifier.ts b/env/plugin-commands-env/src/parseNodeEditionSpecifier.ts similarity index 100% rename from packages/plugin-commands-env/src/parseNodeEditionSpecifier.ts rename to env/plugin-commands-env/src/parseNodeEditionSpecifier.ts diff --git a/packages/plugin-commands-env/src/utils.ts b/env/plugin-commands-env/src/utils.ts similarity index 100% rename from packages/plugin-commands-env/src/utils.ts rename to env/plugin-commands-env/src/utils.ts diff --git a/packages/plugin-commands-env/test/env.test.ts b/env/plugin-commands-env/test/env.test.ts similarity index 100% rename from packages/plugin-commands-env/test/env.test.ts rename to env/plugin-commands-env/test/env.test.ts diff --git a/packages/plugin-commands-env/test/fixtures/node-16.4.0-release-info.json b/env/plugin-commands-env/test/fixtures/node-16.4.0-release-info.json similarity index 100% rename from packages/plugin-commands-env/test/fixtures/node-16.4.0-release-info.json rename to env/plugin-commands-env/test/fixtures/node-16.4.0-release-info.json diff --git a/packages/plugin-commands-env/test/getNodeMirror.test.ts b/env/plugin-commands-env/test/getNodeMirror.test.ts similarity index 100% rename from packages/plugin-commands-env/test/getNodeMirror.test.ts rename to env/plugin-commands-env/test/getNodeMirror.test.ts diff --git a/packages/plugin-commands-env/test/node.test.ts b/env/plugin-commands-env/test/node.test.ts similarity index 100% rename from packages/plugin-commands-env/test/node.test.ts rename to env/plugin-commands-env/test/node.test.ts diff --git a/packages/plugin-commands-env/test/parseNodeEditionSpecifier.ts b/env/plugin-commands-env/test/parseNodeEditionSpecifier.ts similarity index 100% rename from packages/plugin-commands-env/test/parseNodeEditionSpecifier.ts rename to env/plugin-commands-env/test/parseNodeEditionSpecifier.ts diff --git a/packages/plugin-commands-env/tsconfig.json b/env/plugin-commands-env/tsconfig.json similarity index 64% rename from packages/plugin-commands-env/tsconfig.json rename to env/plugin-commands-env/tsconfig.json index 09f367842c..7f7a8f2f44 100644 --- a/packages/plugin-commands-env/tsconfig.json +++ b/env/plugin-commands-env/tsconfig.json @@ -9,32 +9,32 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../config/config" + }, + { + "path": "../../network/fetch" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../pkg-manager/remove-bins" + }, { "path": "../../privatePackages/prepare" }, { - "path": "../cli-utils" - }, - { - "path": "../config" - }, - { - "path": "../error" - }, - { - "path": "../fetch" + "path": "../../store/store-path" }, { "path": "../node.fetcher" }, { "path": "../node.resolver" - }, - { - "path": "../remove-bins" - }, - { - "path": "../store-path" } ] } diff --git a/packages/dependencies-hierarchy/tsconfig.lint.json b/env/plugin-commands-env/tsconfig.lint.json similarity index 100% rename from packages/dependencies-hierarchy/tsconfig.lint.json rename to env/plugin-commands-env/tsconfig.lint.json diff --git a/packages/build-modules/CHANGELOG.md b/exec/build-modules/CHANGELOG.md similarity index 100% rename from packages/build-modules/CHANGELOG.md rename to exec/build-modules/CHANGELOG.md diff --git a/packages/build-modules/README.md b/exec/build-modules/README.md similarity index 100% rename from packages/build-modules/README.md rename to exec/build-modules/README.md diff --git a/packages/package-requester/jest.config.js b/exec/build-modules/jest.config.js similarity index 100% rename from packages/package-requester/jest.config.js rename to exec/build-modules/jest.config.js diff --git a/packages/build-modules/package.json b/exec/build-modules/package.json similarity index 89% rename from packages/build-modules/package.json rename to exec/build-modules/package.json index 9d4130cc12..6527e491dc 100644 --- a/packages/build-modules/package.json +++ b/exec/build-modules/package.json @@ -18,7 +18,7 @@ "compile": "tsc --build && pnpm run lint --fix", "_test": "jest" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/build-modules", + "repository": "https://github.com/pnpm/pnpm/blob/main/exec/build-modules", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/build-modules#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/exec/build-modules#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/build-modules/src/buildSequence.ts b/exec/build-modules/src/buildSequence.ts similarity index 100% rename from packages/build-modules/src/buildSequence.ts rename to exec/build-modules/src/buildSequence.ts diff --git a/packages/build-modules/src/index.ts b/exec/build-modules/src/index.ts similarity index 100% rename from packages/build-modules/src/index.ts rename to exec/build-modules/src/index.ts diff --git a/packages/build-modules/test/buildSequence.test.ts b/exec/build-modules/test/buildSequence.test.ts similarity index 100% rename from packages/build-modules/test/buildSequence.test.ts rename to exec/build-modules/test/buildSequence.test.ts diff --git a/packages/build-modules/tsconfig.json b/exec/build-modules/tsconfig.json similarity index 51% rename from packages/build-modules/tsconfig.json rename to exec/build-modules/tsconfig.json index b45c2cefc7..178209d2f3 100644 --- a/packages/build-modules/tsconfig.json +++ b/exec/build-modules/tsconfig.json @@ -10,28 +10,28 @@ ], "references": [ { - "path": "../calc-dep-state" + "path": "../../packages/calc-dep-state" }, { - "path": "../core-loggers" + "path": "../../packages/core-loggers" }, { - "path": "../error" + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/link-bins" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../store/store-controller-types" }, { "path": "../lifecycle" - }, - { - "path": "../link-bins" - }, - { - "path": "../read-package-json" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../types" } ] } diff --git a/packages/directory-fetcher/tsconfig.lint.json b/exec/build-modules/tsconfig.lint.json similarity index 100% rename from packages/directory-fetcher/tsconfig.lint.json rename to exec/build-modules/tsconfig.lint.json diff --git a/packages/lifecycle/CHANGELOG.md b/exec/lifecycle/CHANGELOG.md similarity index 100% rename from packages/lifecycle/CHANGELOG.md rename to exec/lifecycle/CHANGELOG.md diff --git a/packages/lifecycle/README.md b/exec/lifecycle/README.md similarity index 100% rename from packages/lifecycle/README.md rename to exec/lifecycle/README.md diff --git a/packages/local-resolver/jest.config.js b/exec/lifecycle/jest.config.js similarity index 100% rename from packages/local-resolver/jest.config.js rename to exec/lifecycle/jest.config.js diff --git a/packages/lifecycle/package.json b/exec/lifecycle/package.json similarity index 89% rename from packages/lifecycle/package.json rename to exec/lifecycle/package.json index f1475c8fad..8b71172ba5 100644 --- a/packages/lifecycle/package.json +++ b/exec/lifecycle/package.json @@ -19,7 +19,7 @@ "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/lifecycle", + "repository": "https://github.com/pnpm/pnpm/blob/main/exec/lifecycle", "keywords": [ "pnpm7", "pnpm", @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lifecycle#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/exec/lifecycle#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/lifecycle/src/index.ts b/exec/lifecycle/src/index.ts similarity index 100% rename from packages/lifecycle/src/index.ts rename to exec/lifecycle/src/index.ts diff --git a/packages/lifecycle/src/runLifecycleHook.ts b/exec/lifecycle/src/runLifecycleHook.ts similarity index 100% rename from packages/lifecycle/src/runLifecycleHook.ts rename to exec/lifecycle/src/runLifecycleHook.ts diff --git a/packages/lifecycle/src/runLifecycleHooksConcurrently.ts b/exec/lifecycle/src/runLifecycleHooksConcurrently.ts similarity index 100% rename from packages/lifecycle/src/runLifecycleHooksConcurrently.ts rename to exec/lifecycle/src/runLifecycleHooksConcurrently.ts diff --git a/packages/headless/test/fixtures/deps-have-lifecycle-scripts/.gitignore b/exec/lifecycle/test/fixtures/.gitignore similarity index 100% rename from packages/headless/test/fixtures/deps-have-lifecycle-scripts/.gitignore rename to exec/lifecycle/test/fixtures/.gitignore diff --git a/packages/lifecycle/test/fixtures/escape-args/echo.sh b/exec/lifecycle/test/fixtures/escape-args/echo.sh similarity index 100% rename from packages/lifecycle/test/fixtures/escape-args/echo.sh rename to exec/lifecycle/test/fixtures/escape-args/echo.sh diff --git a/packages/lifecycle/test/fixtures/escape-args/package.json b/exec/lifecycle/test/fixtures/escape-args/package.json similarity index 100% rename from packages/lifecycle/test/fixtures/escape-args/package.json rename to exec/lifecycle/test/fixtures/escape-args/package.json diff --git a/packages/lifecycle/test/fixtures/simple/package.json b/exec/lifecycle/test/fixtures/simple/package.json similarity index 100% rename from packages/lifecycle/test/fixtures/simple/package.json rename to exec/lifecycle/test/fixtures/simple/package.json diff --git a/packages/lifecycle/test/fixtures/with-many-scripts/package.json b/exec/lifecycle/test/fixtures/with-many-scripts/package.json similarity index 100% rename from packages/lifecycle/test/fixtures/with-many-scripts/package.json rename to exec/lifecycle/test/fixtures/with-many-scripts/package.json diff --git a/packages/lifecycle/test/index.ts b/exec/lifecycle/test/index.ts similarity index 100% rename from packages/lifecycle/test/index.ts rename to exec/lifecycle/test/index.ts diff --git a/exec/lifecycle/tsconfig.json b/exec/lifecycle/tsconfig.json new file mode 100644 index 0000000000..ed352ea11d --- /dev/null +++ b/exec/lifecycle/tsconfig.json @@ -0,0 +1,28 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../fetching/directory-fetcher" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../store/store-controller-types" + } + ] +} diff --git a/packages/exportable-manifest/tsconfig.lint.json b/exec/lifecycle/tsconfig.lint.json similarity index 100% rename from packages/exportable-manifest/tsconfig.lint.json rename to exec/lifecycle/tsconfig.lint.json diff --git a/packages/plugin-commands-rebuild/CHANGELOG.md b/exec/plugin-commands-rebuild/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-rebuild/CHANGELOG.md rename to exec/plugin-commands-rebuild/CHANGELOG.md diff --git a/packages/plugin-commands-rebuild/README.md b/exec/plugin-commands-rebuild/README.md similarity index 100% rename from packages/plugin-commands-rebuild/README.md rename to exec/plugin-commands-rebuild/README.md diff --git a/packages/core/jest.config.js b/exec/plugin-commands-rebuild/jest.config.js similarity index 100% rename from packages/core/jest.config.js rename to exec/plugin-commands-rebuild/jest.config.js diff --git a/packages/plugin-commands-rebuild/package.json b/exec/plugin-commands-rebuild/package.json similarity index 90% rename from packages/plugin-commands-rebuild/package.json rename to exec/plugin-commands-rebuild/package.json index ce6ae86256..1cb952bc1a 100644 --- a/packages/plugin-commands-rebuild/package.json +++ b/exec/plugin-commands-rebuild/package.json @@ -16,12 +16,12 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7779 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7770 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-rebuild", + "repository": "https://github.com/pnpm/pnpm/blob/main/exec/plugin-commands-rebuild", "keywords": [ "pnpm7", "pnpm", @@ -31,7 +31,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-rebuild#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/exec/plugin-commands-rebuild#readme", "devDependencies": { "@pnpm/filter-workspace-packages": "workspace:*", "@pnpm/plugin-commands-rebuild": "workspace:*", diff --git a/packages/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts b/exec/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts similarity index 100% rename from packages/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts rename to exec/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts diff --git a/packages/plugin-commands-rebuild/src/implementation/index.ts b/exec/plugin-commands-rebuild/src/implementation/index.ts similarity index 100% rename from packages/plugin-commands-rebuild/src/implementation/index.ts rename to exec/plugin-commands-rebuild/src/implementation/index.ts diff --git a/packages/plugin-commands-rebuild/src/index.ts b/exec/plugin-commands-rebuild/src/index.ts similarity index 100% rename from packages/plugin-commands-rebuild/src/index.ts rename to exec/plugin-commands-rebuild/src/index.ts diff --git a/packages/plugin-commands-rebuild/src/rebuild.ts b/exec/plugin-commands-rebuild/src/rebuild.ts similarity index 100% rename from packages/plugin-commands-rebuild/src/rebuild.ts rename to exec/plugin-commands-rebuild/src/rebuild.ts diff --git a/packages/plugin-commands-rebuild/src/recursive.ts b/exec/plugin-commands-rebuild/src/recursive.ts similarity index 100% rename from packages/plugin-commands-rebuild/src/recursive.ts rename to exec/plugin-commands-rebuild/src/recursive.ts diff --git a/packages/plugin-commands-rebuild/test/index.ts b/exec/plugin-commands-rebuild/test/index.ts similarity index 99% rename from packages/plugin-commands-rebuild/test/index.ts rename to exec/plugin-commands-rebuild/test/index.ts index b55c3e7571..73267df854 100644 --- a/packages/plugin-commands-rebuild/test/index.ts +++ b/exec/plugin-commands-rebuild/test/index.ts @@ -11,7 +11,7 @@ import sinon from 'sinon' import { DEFAULT_OPTS } from './utils' const REGISTRY = `http://localhost:${REGISTRY_MOCK_PORT}/` -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') const f = fixtures(__dirname) test('rebuilds dependencies', async () => { diff --git a/packages/plugin-commands-rebuild/test/recursive.ts b/exec/plugin-commands-rebuild/test/recursive.ts similarity index 98% rename from packages/plugin-commands-rebuild/test/recursive.ts rename to exec/plugin-commands-rebuild/test/recursive.ts index ca0b05412b..68cc1a3ddf 100644 --- a/packages/plugin-commands-rebuild/test/recursive.ts +++ b/exec/plugin-commands-rebuild/test/recursive.ts @@ -7,7 +7,7 @@ import execa from 'execa' import writeYamlFile from 'write-yaml-file' import { DEFAULT_OPTS, REGISTRY } from './utils' -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('pnpm recursive rebuild', async () => { const projects = preparePackages([ diff --git a/packages/plugin-commands-rebuild/test/utils/index.ts b/exec/plugin-commands-rebuild/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-rebuild/test/utils/index.ts rename to exec/plugin-commands-rebuild/test/utils/index.ts diff --git a/exec/plugin-commands-rebuild/tsconfig.json b/exec/plugin-commands-rebuild/tsconfig.json new file mode 100644 index 0000000000..e312b81b30 --- /dev/null +++ b/exec/plugin-commands-rebuild/tsconfig.json @@ -0,0 +1,76 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../config/config" + }, + { + "path": "../../config/normalize-registries" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../lockfile/lockfile-walker" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/get-context" + }, + { + "path": "../../pkg-manager/link-bins" + }, + { + "path": "../../pkg-manager/modules-yaml" + }, + { + "path": "../../privatePackages/prepare" + }, + { + "path": "../../privatePackages/test-fixtures" + }, + { + "path": "../../store/store-connection-manager" + }, + { + "path": "../../store/store-controller-types" + }, + { + "path": "../../workspace/filter-workspace-packages" + }, + { + "path": "../../workspace/find-workspace-packages" + }, + { + "path": "../../workspace/sort-packages" + }, + { + "path": "../lifecycle" + } + ] +} diff --git a/packages/fetch/tsconfig.lint.json b/exec/plugin-commands-rebuild/tsconfig.lint.json similarity index 100% rename from packages/fetch/tsconfig.lint.json rename to exec/plugin-commands-rebuild/tsconfig.lint.json diff --git a/packages/plugin-commands-script-runners/CHANGELOG.md b/exec/plugin-commands-script-runners/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-script-runners/CHANGELOG.md rename to exec/plugin-commands-script-runners/CHANGELOG.md diff --git a/packages/plugin-commands-script-runners/README.md b/exec/plugin-commands-script-runners/README.md similarity index 100% rename from packages/plugin-commands-script-runners/README.md rename to exec/plugin-commands-script-runners/README.md diff --git a/packages/directory-fetcher/jest.config.js b/exec/plugin-commands-script-runners/jest.config.js similarity index 100% rename from packages/directory-fetcher/jest.config.js rename to exec/plugin-commands-script-runners/jest.config.js diff --git a/packages/plugin-commands-script-runners/package.json b/exec/plugin-commands-script-runners/package.json similarity index 88% rename from packages/plugin-commands-script-runners/package.json rename to exec/plugin-commands-script-runners/package.json index 6c5c2b67eb..6943788395 100644 --- a/packages/plugin-commands-script-runners/package.json +++ b/exec/plugin-commands-script-runners/package.json @@ -16,13 +16,13 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7780 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7771 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "start": "tsc --watch", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-script-runners", + "repository": "https://github.com/pnpm/pnpm/blob/main/exec/plugin-commands-script-runners", "keywords": [ "pnpm7", "pnpm", @@ -32,7 +32,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-script-runners#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/exec/plugin-commands-script-runners#readme", "devDependencies": { "@pnpm/filter-workspace-packages": "workspace:*", "@pnpm/plugin-commands-script-runners": "workspace:*", diff --git a/packages/plugin-commands-script-runners/src/create.ts b/exec/plugin-commands-script-runners/src/create.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/create.ts rename to exec/plugin-commands-script-runners/src/create.ts diff --git a/packages/plugin-commands-script-runners/src/dlx.ts b/exec/plugin-commands-script-runners/src/dlx.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/dlx.ts rename to exec/plugin-commands-script-runners/src/dlx.ts diff --git a/packages/plugin-commands-script-runners/src/exec.ts b/exec/plugin-commands-script-runners/src/exec.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/exec.ts rename to exec/plugin-commands-script-runners/src/exec.ts diff --git a/packages/plugin-commands-script-runners/src/existsInDir.ts b/exec/plugin-commands-script-runners/src/existsInDir.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/existsInDir.ts rename to exec/plugin-commands-script-runners/src/existsInDir.ts diff --git a/packages/plugin-commands-script-runners/src/index.ts b/exec/plugin-commands-script-runners/src/index.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/index.ts rename to exec/plugin-commands-script-runners/src/index.ts diff --git a/packages/plugin-commands-script-runners/src/makeEnv.ts b/exec/plugin-commands-script-runners/src/makeEnv.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/makeEnv.ts rename to exec/plugin-commands-script-runners/src/makeEnv.ts diff --git a/packages/plugin-commands-script-runners/src/restart.ts b/exec/plugin-commands-script-runners/src/restart.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/restart.ts rename to exec/plugin-commands-script-runners/src/restart.ts diff --git a/packages/plugin-commands-script-runners/src/run.ts b/exec/plugin-commands-script-runners/src/run.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/run.ts rename to exec/plugin-commands-script-runners/src/run.ts diff --git a/packages/plugin-commands-script-runners/src/runRecursive.ts b/exec/plugin-commands-script-runners/src/runRecursive.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/runRecursive.ts rename to exec/plugin-commands-script-runners/src/runRecursive.ts diff --git a/packages/plugin-commands-script-runners/src/test.ts b/exec/plugin-commands-script-runners/src/test.ts similarity index 100% rename from packages/plugin-commands-script-runners/src/test.ts rename to exec/plugin-commands-script-runners/src/test.ts diff --git a/packages/plugin-commands-script-runners/test/create.ts b/exec/plugin-commands-script-runners/test/create.ts similarity index 100% rename from packages/plugin-commands-script-runners/test/create.ts rename to exec/plugin-commands-script-runners/test/create.ts diff --git a/packages/plugin-commands-script-runners/test/dlx.e2e.ts b/exec/plugin-commands-script-runners/test/dlx.e2e.ts similarity index 100% rename from packages/plugin-commands-script-runners/test/dlx.e2e.ts rename to exec/plugin-commands-script-runners/test/dlx.e2e.ts diff --git a/packages/plugin-commands-script-runners/test/dlx.ts b/exec/plugin-commands-script-runners/test/dlx.ts similarity index 100% rename from packages/plugin-commands-script-runners/test/dlx.ts rename to exec/plugin-commands-script-runners/test/dlx.ts diff --git a/packages/plugin-commands-script-runners/test/exec.e2e.ts b/exec/plugin-commands-script-runners/test/exec.e2e.ts similarity index 99% rename from packages/plugin-commands-script-runners/test/exec.e2e.ts rename to exec/plugin-commands-script-runners/test/exec.e2e.ts index 5ab5e00119..7228754875 100644 --- a/packages/plugin-commands-script-runners/test/exec.e2e.ts +++ b/exec/plugin-commands-script-runners/test/exec.e2e.ts @@ -8,7 +8,7 @@ import rimraf from '@zkochan/rimraf' import execa from 'execa' import { DEFAULT_OPTS, REGISTRY_URL } from './utils' -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('pnpm recursive exec', async () => { preparePackages([ diff --git a/packages/plugin-commands-script-runners/test/exec.ts b/exec/plugin-commands-script-runners/test/exec.ts similarity index 100% rename from packages/plugin-commands-script-runners/test/exec.ts rename to exec/plugin-commands-script-runners/test/exec.ts diff --git a/packages/plugin-commands-script-runners/test/index.ts b/exec/plugin-commands-script-runners/test/index.ts similarity index 99% rename from packages/plugin-commands-script-runners/test/index.ts rename to exec/plugin-commands-script-runners/test/index.ts index 86d591594b..49acf09faf 100644 --- a/packages/plugin-commands-script-runners/test/index.ts +++ b/exec/plugin-commands-script-runners/test/index.ts @@ -14,7 +14,7 @@ import isWindows from 'is-windows' import writeYamlFile from 'write-yaml-file' import { DEFAULT_OPTS, REGISTRY_URL } from './utils' -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('pnpm run: returns correct exit code', async () => { prepare({ diff --git a/packages/plugin-commands-script-runners/test/runCompletion.ts b/exec/plugin-commands-script-runners/test/runCompletion.ts similarity index 100% rename from packages/plugin-commands-script-runners/test/runCompletion.ts rename to exec/plugin-commands-script-runners/test/runCompletion.ts diff --git a/packages/plugin-commands-script-runners/test/runRecursive.ts b/exec/plugin-commands-script-runners/test/runRecursive.ts similarity index 99% rename from packages/plugin-commands-script-runners/test/runRecursive.ts rename to exec/plugin-commands-script-runners/test/runRecursive.ts index cb5ec5fc9e..ee4f0ac199 100644 --- a/packages/plugin-commands-script-runners/test/runRecursive.ts +++ b/exec/plugin-commands-script-runners/test/runRecursive.ts @@ -8,7 +8,7 @@ import execa from 'execa' import writeYamlFile from 'write-yaml-file' import { DEFAULT_OPTS, REGISTRY_URL } from './utils' -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('pnpm recursive run', async () => { preparePackages([ diff --git a/packages/plugin-commands-script-runners/test/testRecursive.ts b/exec/plugin-commands-script-runners/test/testRecursive.ts similarity index 98% rename from packages/plugin-commands-script-runners/test/testRecursive.ts rename to exec/plugin-commands-script-runners/test/testRecursive.ts index 8e3c4ccba6..c736514096 100644 --- a/packages/plugin-commands-script-runners/test/testRecursive.ts +++ b/exec/plugin-commands-script-runners/test/testRecursive.ts @@ -5,7 +5,7 @@ import { preparePackages } from '@pnpm/prepare' import execa from 'execa' import { DEFAULT_OPTS, REGISTRY_URL } from './utils' -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('pnpm recursive test', async () => { preparePackages([ diff --git a/packages/plugin-commands-script-runners/test/utils/index.ts b/exec/plugin-commands-script-runners/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-script-runners/test/utils/index.ts rename to exec/plugin-commands-script-runners/test/utils/index.ts diff --git a/exec/plugin-commands-script-runners/tsconfig.json b/exec/plugin-commands-script-runners/tsconfig.json new file mode 100644 index 0000000000..aa24321958 --- /dev/null +++ b/exec/plugin-commands-script-runners/tsconfig.json @@ -0,0 +1,58 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/command" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../config/config" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/package-bins" + }, + { + "path": "../../pkg-manager/plugin-commands-installation" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, + { + "path": "../../privatePackages/prepare" + }, + { + "path": "../../store/store-path" + }, + { + "path": "../../workspace/filter-workspace-packages" + }, + { + "path": "../../workspace/sort-packages" + }, + { + "path": "../lifecycle" + } + ] +} diff --git a/packages/fetcher-base/tsconfig.lint.json b/exec/plugin-commands-script-runners/tsconfig.lint.json similarity index 100% rename from packages/fetcher-base/tsconfig.lint.json rename to exec/plugin-commands-script-runners/tsconfig.lint.json diff --git a/packages/prepare-package/CHANGELOG.md b/exec/prepare-package/CHANGELOG.md similarity index 100% rename from packages/prepare-package/CHANGELOG.md rename to exec/prepare-package/CHANGELOG.md diff --git a/packages/prepare-package/README.md b/exec/prepare-package/README.md similarity index 100% rename from packages/prepare-package/README.md rename to exec/prepare-package/README.md diff --git a/packages/cafs/jest.config.js b/exec/prepare-package/jest.config.js similarity index 100% rename from packages/cafs/jest.config.js rename to exec/prepare-package/jest.config.js diff --git a/packages/prepare-package/package.json b/exec/prepare-package/package.json similarity index 84% rename from packages/prepare-package/package.json rename to exec/prepare-package/package.json index 2ddc94b3ee..eb72a1254b 100644 --- a/packages/prepare-package/package.json +++ b/exec/prepare-package/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/prepare-package", + "repository": "https://github.com/pnpm/pnpm/blob/main/exec/prepare-package", "keywords": [ "pnpm7", "pnpm" @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/prepare-package#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/exec/prepare-package#readme", "dependencies": { "@pnpm/error": "workspace:*", "@pnpm/read-package-json": "workspace:*", diff --git a/packages/prepare-package/src/index.ts b/exec/prepare-package/src/index.ts similarity index 100% rename from packages/prepare-package/src/index.ts rename to exec/prepare-package/src/index.ts diff --git a/packages/parse-overrides/tsconfig.json b/exec/prepare-package/tsconfig.json similarity index 71% rename from packages/parse-overrides/tsconfig.json rename to exec/prepare-package/tsconfig.json index c9a111ddb8..2acaf0bbdd 100644 --- a/packages/parse-overrides/tsconfig.json +++ b/exec/prepare-package/tsconfig.json @@ -10,10 +10,10 @@ ], "references": [ { - "path": "../error" + "path": "../../packages/error" }, { - "path": "../parse-wanted-dependency" + "path": "../../pkg-manifest/read-package-json" } ] } diff --git a/packages/fetching-types/tsconfig.lint.json b/exec/prepare-package/tsconfig.lint.json similarity index 100% rename from packages/fetching-types/tsconfig.lint.json rename to exec/prepare-package/tsconfig.lint.json diff --git a/packages/run-npm/CHANGELOG.md b/exec/run-npm/CHANGELOG.md similarity index 100% rename from packages/run-npm/CHANGELOG.md rename to exec/run-npm/CHANGELOG.md diff --git a/packages/run-npm/README.md b/exec/run-npm/README.md similarity index 100% rename from packages/run-npm/README.md rename to exec/run-npm/README.md diff --git a/packages/run-npm/package.json b/exec/run-npm/package.json similarity index 83% rename from packages/run-npm/package.json rename to exec/run-npm/package.json index abbe45aaf5..053a1bca2e 100644 --- a/packages/run-npm/package.json +++ b/exec/run-npm/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/run-npm", + "repository": "https://github.com/pnpm/pnpm/blob/main/exec/run-npm", "keywords": [ "pnpm7" ], @@ -25,7 +25,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/run-npm#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/exec/run-npm#readme", "devDependencies": { "@pnpm/run-npm": "workspace:*", "@types/cross-spawn": "^6.0.2" diff --git a/packages/run-npm/src/index.ts b/exec/run-npm/src/index.ts similarity index 100% rename from packages/run-npm/src/index.ts rename to exec/run-npm/src/index.ts diff --git a/packages/graceful-fs/tsconfig.json b/exec/run-npm/tsconfig.json similarity index 100% rename from packages/graceful-fs/tsconfig.json rename to exec/run-npm/tsconfig.json diff --git a/packages/filter-lockfile/tsconfig.lint.json b/exec/run-npm/tsconfig.lint.json similarity index 100% rename from packages/filter-lockfile/tsconfig.lint.json rename to exec/run-npm/tsconfig.lint.json diff --git a/packages/directory-fetcher/CHANGELOG.md b/fetching/directory-fetcher/CHANGELOG.md similarity index 100% rename from packages/directory-fetcher/CHANGELOG.md rename to fetching/directory-fetcher/CHANGELOG.md diff --git a/packages/directory-fetcher/README.md b/fetching/directory-fetcher/README.md similarity index 100% rename from packages/directory-fetcher/README.md rename to fetching/directory-fetcher/README.md diff --git a/packages/exportable-manifest/jest.config.js b/fetching/directory-fetcher/jest.config.js similarity index 100% rename from packages/exportable-manifest/jest.config.js rename to fetching/directory-fetcher/jest.config.js diff --git a/packages/directory-fetcher/package.json b/fetching/directory-fetcher/package.json similarity index 90% rename from packages/directory-fetcher/package.json rename to fetching/directory-fetcher/package.json index 885a939b39..275af8fbc0 100644 --- a/packages/directory-fetcher/package.json +++ b/fetching/directory-fetcher/package.json @@ -16,7 +16,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/directory-fetcher", + "repository": "https://github.com/pnpm/pnpm/blob/main/fetching/directory-fetcher", "engines": { "node": ">=14.6" }, @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/directory-fetcher#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fetching/directory-fetcher#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/directory-fetcher/src/index.ts b/fetching/directory-fetcher/src/index.ts similarity index 100% rename from packages/directory-fetcher/src/index.ts rename to fetching/directory-fetcher/src/index.ts diff --git a/packages/directory-fetcher/test/fixtures/no-manifest/index.js b/fetching/directory-fetcher/test/fixtures/no-manifest/index.js similarity index 100% rename from packages/directory-fetcher/test/fixtures/no-manifest/index.js rename to fetching/directory-fetcher/test/fixtures/no-manifest/index.js diff --git a/packages/directory-fetcher/test/fixtures/pkg-with-broken-symlink/index.js b/fetching/directory-fetcher/test/fixtures/pkg-with-broken-symlink/index.js similarity index 100% rename from packages/directory-fetcher/test/fixtures/pkg-with-broken-symlink/index.js rename to fetching/directory-fetcher/test/fixtures/pkg-with-broken-symlink/index.js diff --git a/packages/directory-fetcher/test/fixtures/pkg-with-broken-symlink/not-exists b/fetching/directory-fetcher/test/fixtures/pkg-with-broken-symlink/not-exists similarity index 100% rename from packages/directory-fetcher/test/fixtures/pkg-with-broken-symlink/not-exists rename to fetching/directory-fetcher/test/fixtures/pkg-with-broken-symlink/not-exists diff --git a/packages/directory-fetcher/test/fixtures/pkg-with-broken-symlink/package.json b/fetching/directory-fetcher/test/fixtures/pkg-with-broken-symlink/package.json similarity index 100% rename from packages/directory-fetcher/test/fixtures/pkg-with-broken-symlink/package.json rename to fetching/directory-fetcher/test/fixtures/pkg-with-broken-symlink/package.json diff --git a/packages/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/.gitignore b/fetching/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/.gitignore similarity index 100% rename from packages/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/.gitignore rename to fetching/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/.gitignore diff --git a/packages/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/package.json b/fetching/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/package.json similarity index 100% rename from packages/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/package.json rename to fetching/directory-fetcher/test/fixtures/pkg-with-symlinked-dir-and-files/package.json diff --git a/packages/directory-fetcher/test/fixtures/simple-pkg/index.js b/fetching/directory-fetcher/test/fixtures/simple-pkg/index.js similarity index 100% rename from packages/directory-fetcher/test/fixtures/simple-pkg/index.js rename to fetching/directory-fetcher/test/fixtures/simple-pkg/index.js diff --git a/packages/directory-fetcher/test/fixtures/simple-pkg/package.json b/fetching/directory-fetcher/test/fixtures/simple-pkg/package.json similarity index 100% rename from packages/directory-fetcher/test/fixtures/simple-pkg/package.json rename to fetching/directory-fetcher/test/fixtures/simple-pkg/package.json diff --git a/packages/directory-fetcher/test/fixtures/simple-pkg/test.js b/fetching/directory-fetcher/test/fixtures/simple-pkg/test.js similarity index 100% rename from packages/directory-fetcher/test/fixtures/simple-pkg/test.js rename to fetching/directory-fetcher/test/fixtures/simple-pkg/test.js diff --git a/packages/directory-fetcher/test/index.ts b/fetching/directory-fetcher/test/index.ts similarity index 100% rename from packages/directory-fetcher/test/index.ts rename to fetching/directory-fetcher/test/index.ts diff --git a/packages/directory-fetcher/tsconfig.json b/fetching/directory-fetcher/tsconfig.json similarity index 76% rename from packages/directory-fetcher/tsconfig.json rename to fetching/directory-fetcher/tsconfig.json index b51e0063a3..c1bebc18f9 100644 --- a/packages/directory-fetcher/tsconfig.json +++ b/fetching/directory-fetcher/tsconfig.json @@ -9,17 +9,17 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../../privatePackages/test-fixtures" }, + { + "path": "../../resolving/resolver-base" + }, { "path": "../fetcher-base" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../resolver-base" } ] } diff --git a/packages/filter-workspace-packages/tsconfig.lint.json b/fetching/directory-fetcher/tsconfig.lint.json similarity index 100% rename from packages/filter-workspace-packages/tsconfig.lint.json rename to fetching/directory-fetcher/tsconfig.lint.json diff --git a/packages/fetcher-base/CHANGELOG.md b/fetching/fetcher-base/CHANGELOG.md similarity index 100% rename from packages/fetcher-base/CHANGELOG.md rename to fetching/fetcher-base/CHANGELOG.md diff --git a/packages/fetcher-base/README.md b/fetching/fetcher-base/README.md similarity index 100% rename from packages/fetcher-base/README.md rename to fetching/fetcher-base/README.md diff --git a/packages/fetcher-base/package.json b/fetching/fetcher-base/package.json similarity index 88% rename from packages/fetcher-base/package.json rename to fetching/fetcher-base/package.json index 94ac6dd17d..74aca43cab 100644 --- a/packages/fetcher-base/package.json +++ b/fetching/fetcher-base/package.json @@ -15,7 +15,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/fetcher-base", + "repository": "https://github.com/pnpm/pnpm/blob/main/fetching/fetcher-base", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/fetcher-base#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fetching/fetcher-base#readme", "dependencies": { "@pnpm/resolver-base": "workspace:*", "@pnpm/types": "workspace:*", diff --git a/packages/fetcher-base/src/index.ts b/fetching/fetcher-base/src/index.ts similarity index 100% rename from packages/fetcher-base/src/index.ts rename to fetching/fetcher-base/src/index.ts diff --git a/fetching/fetcher-base/tsconfig.json b/fetching/fetcher-base/tsconfig.json new file mode 100644 index 0000000000..6da70fd1d7 --- /dev/null +++ b/fetching/fetcher-base/tsconfig.json @@ -0,0 +1,22 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + }, + { + "path": "../../resolving/resolver-base" + }, + { + "path": "../../store/cafs-types" + } + ] +} diff --git a/packages/find-packages/tsconfig.lint.json b/fetching/fetcher-base/tsconfig.lint.json similarity index 100% rename from packages/find-packages/tsconfig.lint.json rename to fetching/fetcher-base/tsconfig.lint.json diff --git a/packages/git-fetcher/CHANGELOG.md b/fetching/git-fetcher/CHANGELOG.md similarity index 100% rename from packages/git-fetcher/CHANGELOG.md rename to fetching/git-fetcher/CHANGELOG.md diff --git a/packages/git-fetcher/README.md b/fetching/git-fetcher/README.md similarity index 100% rename from packages/git-fetcher/README.md rename to fetching/git-fetcher/README.md diff --git a/packages/filter-lockfile/jest.config.js b/fetching/git-fetcher/jest.config.js similarity index 100% rename from packages/filter-lockfile/jest.config.js rename to fetching/git-fetcher/jest.config.js diff --git a/packages/git-fetcher/package.json b/fetching/git-fetcher/package.json similarity index 90% rename from packages/git-fetcher/package.json rename to fetching/git-fetcher/package.json index 5c4aac12f5..fb7dfee042 100644 --- a/packages/git-fetcher/package.json +++ b/fetching/git-fetcher/package.json @@ -15,7 +15,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/git-fetcher", + "repository": "https://github.com/pnpm/pnpm/blob/main/fetching/git-fetcher", "engines": { "node": ">=14.6" }, @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/git-fetcher#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fetching/git-fetcher#readme", "dependencies": { "@pnpm/fetcher-base": "workspace:*", "@pnpm/prepare-package": "workspace:*", diff --git a/packages/git-fetcher/src/index.ts b/fetching/git-fetcher/src/index.ts similarity index 100% rename from packages/git-fetcher/src/index.ts rename to fetching/git-fetcher/src/index.ts diff --git a/packages/git-fetcher/test/index.ts b/fetching/git-fetcher/test/index.ts similarity index 100% rename from packages/git-fetcher/test/index.ts rename to fetching/git-fetcher/test/index.ts diff --git a/packages/git-fetcher/tsconfig.json b/fetching/git-fetcher/tsconfig.json similarity index 64% rename from packages/git-fetcher/tsconfig.json rename to fetching/git-fetcher/tsconfig.json index f641de8e72..45c886fde6 100644 --- a/packages/git-fetcher/tsconfig.json +++ b/fetching/git-fetcher/tsconfig.json @@ -10,19 +10,19 @@ ], "references": [ { - "path": "../cafs" + "path": "../../exec/prepare-package" }, { - "path": "../create-cafs-store" + "path": "../../packages/types" + }, + { + "path": "../../store/cafs" + }, + { + "path": "../../store/create-cafs-store" }, { "path": "../fetcher-base" - }, - { - "path": "../prepare-package" - }, - { - "path": "../types" } ] } diff --git a/packages/find-workspace-dir/tsconfig.lint.json b/fetching/git-fetcher/tsconfig.lint.json similarity index 100% rename from packages/find-workspace-dir/tsconfig.lint.json rename to fetching/git-fetcher/tsconfig.lint.json diff --git a/packages/pick-fetcher/CHANGELOG.md b/fetching/pick-fetcher/CHANGELOG.md similarity index 100% rename from packages/pick-fetcher/CHANGELOG.md rename to fetching/pick-fetcher/CHANGELOG.md diff --git a/packages/pick-fetcher/README.md b/fetching/pick-fetcher/README.md similarity index 100% rename from packages/pick-fetcher/README.md rename to fetching/pick-fetcher/README.md diff --git a/packages/find-packages/jest.config.js b/fetching/pick-fetcher/jest.config.js similarity index 100% rename from packages/find-packages/jest.config.js rename to fetching/pick-fetcher/jest.config.js diff --git a/packages/pick-fetcher/package.json b/fetching/pick-fetcher/package.json similarity index 87% rename from packages/pick-fetcher/package.json rename to fetching/pick-fetcher/package.json index 5ae1501f5c..4c6ba8fd64 100644 --- a/packages/pick-fetcher/package.json +++ b/fetching/pick-fetcher/package.json @@ -15,7 +15,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/pick-fetcher", + "repository": "https://github.com/pnpm/pnpm/blob/main/fetching/pick-fetcher", "license": "MIT", "engines": { "node": ">=14.6" @@ -23,7 +23,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/pick-fetcher#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fetching/pick-fetcher#readme", "funding": "https://opencollective.com/pnpm", "keywords": [ "pnpm7" diff --git a/packages/pick-fetcher/src/index.ts b/fetching/pick-fetcher/src/index.ts similarity index 100% rename from packages/pick-fetcher/src/index.ts rename to fetching/pick-fetcher/src/index.ts diff --git a/packages/pick-fetcher/test/pickFetcher.ts b/fetching/pick-fetcher/test/pickFetcher.ts similarity index 100% rename from packages/pick-fetcher/test/pickFetcher.ts rename to fetching/pick-fetcher/test/pickFetcher.ts diff --git a/packages/pick-fetcher/tsconfig.json b/fetching/pick-fetcher/tsconfig.json similarity index 84% rename from packages/pick-fetcher/tsconfig.json rename to fetching/pick-fetcher/tsconfig.json index e9b404f5ae..32f7cec749 100644 --- a/packages/pick-fetcher/tsconfig.json +++ b/fetching/pick-fetcher/tsconfig.json @@ -10,10 +10,10 @@ ], "references": [ { - "path": "../fetcher-base" + "path": "../../resolving/resolver-base" }, { - "path": "../resolver-base" + "path": "../fetcher-base" } ] } diff --git a/packages/find-workspace-packages/tsconfig.lint.json b/fetching/pick-fetcher/tsconfig.lint.json similarity index 100% rename from packages/find-workspace-packages/tsconfig.lint.json rename to fetching/pick-fetcher/tsconfig.lint.json diff --git a/packages/tarball-fetcher/CHANGELOG.md b/fetching/tarball-fetcher/CHANGELOG.md similarity index 100% rename from packages/tarball-fetcher/CHANGELOG.md rename to fetching/tarball-fetcher/CHANGELOG.md diff --git a/packages/tarball-fetcher/README.md b/fetching/tarball-fetcher/README.md similarity index 100% rename from packages/tarball-fetcher/README.md rename to fetching/tarball-fetcher/README.md diff --git a/packages/parse-overrides/jest.config.js b/fetching/tarball-fetcher/jest.config.js similarity index 100% rename from packages/parse-overrides/jest.config.js rename to fetching/tarball-fetcher/jest.config.js diff --git a/packages/tarball-fetcher/package.json b/fetching/tarball-fetcher/package.json similarity index 92% rename from packages/tarball-fetcher/package.json rename to fetching/tarball-fetcher/package.json index be811a5a7f..c2b16f25cb 100644 --- a/packages/tarball-fetcher/package.json +++ b/fetching/tarball-fetcher/package.json @@ -15,7 +15,7 @@ "test": "pnpm run compile && pnpm run _test", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/tarball-fetcher", + "repository": "https://github.com/pnpm/pnpm/blob/main/fetching/tarball-fetcher", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/tarball-fetcher#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fetching/tarball-fetcher#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/tarball-fetcher/src/errorTypes/BadTarballError.ts b/fetching/tarball-fetcher/src/errorTypes/BadTarballError.ts similarity index 100% rename from packages/tarball-fetcher/src/errorTypes/BadTarballError.ts rename to fetching/tarball-fetcher/src/errorTypes/BadTarballError.ts diff --git a/packages/tarball-fetcher/src/errorTypes/index.ts b/fetching/tarball-fetcher/src/errorTypes/index.ts similarity index 100% rename from packages/tarball-fetcher/src/errorTypes/index.ts rename to fetching/tarball-fetcher/src/errorTypes/index.ts diff --git a/packages/tarball-fetcher/src/gitHostedTarballFetcher.ts b/fetching/tarball-fetcher/src/gitHostedTarballFetcher.ts similarity index 100% rename from packages/tarball-fetcher/src/gitHostedTarballFetcher.ts rename to fetching/tarball-fetcher/src/gitHostedTarballFetcher.ts diff --git a/packages/tarball-fetcher/src/index.ts b/fetching/tarball-fetcher/src/index.ts similarity index 100% rename from packages/tarball-fetcher/src/index.ts rename to fetching/tarball-fetcher/src/index.ts diff --git a/packages/tarball-fetcher/src/localTarballFetcher.ts b/fetching/tarball-fetcher/src/localTarballFetcher.ts similarity index 100% rename from packages/tarball-fetcher/src/localTarballFetcher.ts rename to fetching/tarball-fetcher/src/localTarballFetcher.ts diff --git a/packages/tarball-fetcher/src/remoteTarballFetcher.ts b/fetching/tarball-fetcher/src/remoteTarballFetcher.ts similarity index 100% rename from packages/tarball-fetcher/src/remoteTarballFetcher.ts rename to fetching/tarball-fetcher/src/remoteTarballFetcher.ts diff --git a/packages/tarball-fetcher/test/fetch.ts b/fetching/tarball-fetcher/test/fetch.ts similarity index 100% rename from packages/tarball-fetcher/test/fetch.ts rename to fetching/tarball-fetcher/test/fetch.ts diff --git a/packages/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-6.24.1.tgz b/fetching/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-6.24.1.tgz similarity index 100% rename from packages/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-6.24.1.tgz rename to fetching/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-6.24.1.tgz diff --git a/packages/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-7.0.0-alpha.10.tgz b/fetching/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-7.0.0-alpha.10.tgz similarity index 100% rename from packages/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-7.0.0-alpha.10.tgz rename to fetching/tarball-fetcher/test/fixtures/babel-helper-hoist-variables-7.0.0-alpha.10.tgz diff --git a/packages/tarball-fetcher/tsconfig.json b/fetching/tarball-fetcher/tsconfig.json similarity index 55% rename from packages/tarball-fetcher/tsconfig.json rename to fetching/tarball-fetcher/tsconfig.json index f8b9a08296..b1195bdffe 100644 --- a/packages/tarball-fetcher/tsconfig.json +++ b/fetching/tarball-fetcher/tsconfig.json @@ -9,35 +9,35 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../exec/prepare-package" + }, + { + "path": "../../fs/graceful-fs" + }, + { + "path": "../../network/fetch" + }, + { + "path": "../../network/fetching-types" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/error" + }, { "path": "../../privatePackages/test-fixtures" }, { - "path": "../cafs-types" + "path": "../../store/cafs-types" }, { - "path": "../core-loggers" - }, - { - "path": "../create-cafs-store" - }, - { - "path": "../error" - }, - { - "path": "../fetch" + "path": "../../store/create-cafs-store" }, { "path": "../fetcher-base" - }, - { - "path": "../fetching-types" - }, - { - "path": "../graceful-fs" - }, - { - "path": "../prepare-package" } ] } diff --git a/packages/fs.indexed-pkg-importer/tsconfig.lint.json b/fetching/tarball-fetcher/tsconfig.lint.json similarity index 100% rename from packages/fs.indexed-pkg-importer/tsconfig.lint.json rename to fetching/tarball-fetcher/tsconfig.lint.json diff --git a/fixtures/has-outdated-deps-and-external-shrinkwrap/.gitignore b/fixtures/has-outdated-deps-and-external-shrinkwrap/.gitignore deleted file mode 100644 index cf4bab9ddd..0000000000 --- a/fixtures/has-outdated-deps-and-external-shrinkwrap/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!node_modules diff --git a/fixtures/has-outdated-deps/.gitignore b/fixtures/has-outdated-deps/.gitignore deleted file mode 100644 index cf4bab9ddd..0000000000 --- a/fixtures/has-outdated-deps/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!node_modules diff --git a/fixtures/package.yaml b/fixtures/package.yaml deleted file mode 100644 index 72aae191c7..0000000000 --- a/fixtures/package.yaml +++ /dev/null @@ -1,5 +0,0 @@ -scripts: - prepareFixtures: > - node ../packages/pnpm/dist/pnpm.cjs install -rf --frozen-lockfile --no-shared-workspace-lockfile --no-link-workspace-packages && - node ../packages/pnpm/dist/pnpm.cjs install -rf -C fixtureWithLinks --frozen-lockfile --link-workspace-packages --no-shared-workspace-lockfile && - cd ./fixture-with-external-shrinkwrap/pkg && node ../../../packages/pnpm/dist/pnpm.cjs install -f --frozen-lockfile diff --git a/packages/find-packages/CHANGELOG.md b/fs/find-packages/CHANGELOG.md similarity index 100% rename from packages/find-packages/CHANGELOG.md rename to fs/find-packages/CHANGELOG.md diff --git a/packages/find-packages/README.md b/fs/find-packages/README.md similarity index 100% rename from packages/find-packages/README.md rename to fs/find-packages/README.md diff --git a/packages/find-packages/example.js b/fs/find-packages/example.js similarity index 100% rename from packages/find-packages/example.js rename to fs/find-packages/example.js diff --git a/packages/find-workspace-dir/jest.config.js b/fs/find-packages/jest.config.js similarity index 100% rename from packages/find-workspace-dir/jest.config.js rename to fs/find-packages/jest.config.js diff --git a/packages/find-packages/package.json b/fs/find-packages/package.json similarity index 85% rename from packages/find-packages/package.json rename to fs/find-packages/package.json index 4b19dcf617..bc67d5a7b7 100644 --- a/packages/find-packages/package.json +++ b/fs/find-packages/package.json @@ -15,7 +15,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/find-packages", + "repository": "https://github.com/pnpm/pnpm/blob/main/fs/find-packages", "keywords": [ "pnpm7", "find", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/find-packages#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fs/find-packages#readme", "dependencies": { "@pnpm/read-project-manifest": "workspace:*", "@pnpm/types": "workspace:*", diff --git a/packages/find-packages/src/index.ts b/fs/find-packages/src/index.ts similarity index 100% rename from packages/find-packages/src/index.ts rename to fs/find-packages/src/index.ts diff --git a/packages/find-packages/test/fixtures/many-pkgs-2/components/component-1/package.json b/fs/find-packages/test/fixtures/many-pkgs-2/components/component-1/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs-2/components/component-1/package.json rename to fs/find-packages/test/fixtures/many-pkgs-2/components/component-1/package.json diff --git a/packages/find-packages/test/fixtures/many-pkgs-2/components/component-2/package.json b/fs/find-packages/test/fixtures/many-pkgs-2/components/component-2/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs-2/components/component-2/package.json rename to fs/find-packages/test/fixtures/many-pkgs-2/components/component-2/package.json diff --git a/packages/find-packages/test/fixtures/many-pkgs-2/libs/foo/package.json b/fs/find-packages/test/fixtures/many-pkgs-2/libs/foo/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs-2/libs/foo/package.json rename to fs/find-packages/test/fixtures/many-pkgs-2/libs/foo/package.json diff --git a/packages/find-packages/test/fixtures/many-pkgs-2/package.json b/fs/find-packages/test/fixtures/many-pkgs-2/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs-2/package.json rename to fs/find-packages/test/fixtures/many-pkgs-2/package.json diff --git a/packages/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-1/package.yaml b/fs/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-1/package.yaml similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-1/package.yaml rename to fs/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-1/package.yaml diff --git a/packages/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-2/package.json5 b/fs/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-2/package.json5 similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-2/package.json5 rename to fs/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/components/component-2/package.json5 diff --git a/packages/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/libs/foo/package.json b/fs/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/libs/foo/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/libs/foo/package.json rename to fs/find-packages/test/fixtures/many-pkgs-with-different-manifest-types/libs/foo/package.json diff --git a/packages/find-packages/test/fixtures/many-pkgs/components/component-1/package.json b/fs/find-packages/test/fixtures/many-pkgs/components/component-1/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs/components/component-1/package.json rename to fs/find-packages/test/fixtures/many-pkgs/components/component-1/package.json diff --git a/packages/find-packages/test/fixtures/many-pkgs/components/component-2/package.json b/fs/find-packages/test/fixtures/many-pkgs/components/component-2/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs/components/component-2/package.json rename to fs/find-packages/test/fixtures/many-pkgs/components/component-2/package.json diff --git a/packages/find-packages/test/fixtures/many-pkgs/libs/foo/package.json b/fs/find-packages/test/fixtures/many-pkgs/libs/foo/package.json similarity index 100% rename from packages/find-packages/test/fixtures/many-pkgs/libs/foo/package.json rename to fs/find-packages/test/fixtures/many-pkgs/libs/foo/package.json diff --git a/packages/find-packages/test/fixtures/one-pkg/foo/package.json b/fs/find-packages/test/fixtures/one-pkg/foo/package.json similarity index 100% rename from packages/find-packages/test/fixtures/one-pkg/foo/package.json rename to fs/find-packages/test/fixtures/one-pkg/foo/package.json diff --git a/packages/find-packages/test/index.ts b/fs/find-packages/test/index.ts similarity index 100% rename from packages/find-packages/test/index.ts rename to fs/find-packages/test/index.ts diff --git a/fs/find-packages/tsconfig.json b/fs/find-packages/tsconfig.json new file mode 100644 index 0000000000..211cb502ec --- /dev/null +++ b/fs/find-packages/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + } + ] +} diff --git a/packages/get-context/tsconfig.lint.json b/fs/find-packages/tsconfig.lint.json similarity index 100% rename from packages/get-context/tsconfig.lint.json rename to fs/find-packages/tsconfig.lint.json diff --git a/packages/graceful-fs/CHANGELOG.md b/fs/graceful-fs/CHANGELOG.md similarity index 100% rename from packages/graceful-fs/CHANGELOG.md rename to fs/graceful-fs/CHANGELOG.md diff --git a/packages/graceful-fs/README.md b/fs/graceful-fs/README.md similarity index 100% rename from packages/graceful-fs/README.md rename to fs/graceful-fs/README.md diff --git a/packages/client/jest.config.js b/fs/graceful-fs/jest.config.js similarity index 100% rename from packages/client/jest.config.js rename to fs/graceful-fs/jest.config.js diff --git a/packages/graceful-fs/package.json b/fs/graceful-fs/package.json similarity index 83% rename from packages/graceful-fs/package.json rename to fs/graceful-fs/package.json index 94bc827778..0409328046 100644 --- a/packages/graceful-fs/package.json +++ b/fs/graceful-fs/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/graceful-fs", + "repository": "https://github.com/pnpm/pnpm/blob/main/fs/graceful-fs", "keywords": [ "pnpm7", "pnpm" @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/graceful-fs#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fs/graceful-fs#readme", "dependencies": { "graceful-fs": "^4.2.10" }, diff --git a/packages/graceful-fs/src/index.ts b/fs/graceful-fs/src/index.ts similarity index 100% rename from packages/graceful-fs/src/index.ts rename to fs/graceful-fs/src/index.ts diff --git a/packages/matcher/tsconfig.json b/fs/graceful-fs/tsconfig.json similarity index 100% rename from packages/matcher/tsconfig.json rename to fs/graceful-fs/tsconfig.json diff --git a/packages/git-fetcher/tsconfig.lint.json b/fs/graceful-fs/tsconfig.lint.json similarity index 100% rename from packages/git-fetcher/tsconfig.lint.json rename to fs/graceful-fs/tsconfig.lint.json diff --git a/packages/fs.indexed-pkg-importer/CHANGELOG.md b/fs/indexed-pkg-importer/CHANGELOG.md similarity index 100% rename from packages/fs.indexed-pkg-importer/CHANGELOG.md rename to fs/indexed-pkg-importer/CHANGELOG.md diff --git a/packages/fs.indexed-pkg-importer/README.md b/fs/indexed-pkg-importer/README.md similarity index 100% rename from packages/fs.indexed-pkg-importer/README.md rename to fs/indexed-pkg-importer/README.md diff --git a/packages/config/jest.config.js b/fs/indexed-pkg-importer/jest.config.js similarity index 100% rename from packages/config/jest.config.js rename to fs/indexed-pkg-importer/jest.config.js diff --git a/packages/fs.indexed-pkg-importer/package.json b/fs/indexed-pkg-importer/package.json similarity index 89% rename from packages/fs.indexed-pkg-importer/package.json rename to fs/indexed-pkg-importer/package.json index d0b5a4d160..ebb71a4b86 100644 --- a/packages/fs.indexed-pkg-importer/package.json +++ b/fs/indexed-pkg-importer/package.json @@ -32,7 +32,7 @@ "directories": { "test": "test" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/fs.indexed-pkg-importer#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fs/indexed-pkg-importer#readme", "keywords": [ "pnpm7", "store", @@ -47,7 +47,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/fs.indexed-pkg-importer", + "repository": "https://github.com/pnpm/pnpm/blob/main/fs/indexed-pkg-importer", "scripts": { "start": "tsc --watch", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", diff --git a/packages/fs.indexed-pkg-importer/src/importIndexedDir.ts b/fs/indexed-pkg-importer/src/importIndexedDir.ts similarity index 100% rename from packages/fs.indexed-pkg-importer/src/importIndexedDir.ts rename to fs/indexed-pkg-importer/src/importIndexedDir.ts diff --git a/packages/fs.indexed-pkg-importer/src/index.ts b/fs/indexed-pkg-importer/src/index.ts similarity index 100% rename from packages/fs.indexed-pkg-importer/src/index.ts rename to fs/indexed-pkg-importer/src/index.ts diff --git a/packages/fs.indexed-pkg-importer/test/createImportPackage.test.ts b/fs/indexed-pkg-importer/test/createImportPackage.test.ts similarity index 100% rename from packages/fs.indexed-pkg-importer/test/createImportPackage.test.ts rename to fs/indexed-pkg-importer/test/createImportPackage.test.ts diff --git a/packages/fs.indexed-pkg-importer/test/importingPkgWithInvalidFiles.ts b/fs/indexed-pkg-importer/test/importingPkgWithInvalidFiles.ts similarity index 100% rename from packages/fs.indexed-pkg-importer/test/importingPkgWithInvalidFiles.ts rename to fs/indexed-pkg-importer/test/importingPkgWithInvalidFiles.ts diff --git a/packages/fs.indexed-pkg-importer/tsconfig.json b/fs/indexed-pkg-importer/tsconfig.json similarity index 74% rename from packages/fs.indexed-pkg-importer/tsconfig.json rename to fs/indexed-pkg-importer/tsconfig.json index 11a6bdc019..98943131b9 100644 --- a/packages/fs.indexed-pkg-importer/tsconfig.json +++ b/fs/indexed-pkg-importer/tsconfig.json @@ -9,14 +9,14 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../packages/core-loggers" + }, { "path": "../../privatePackages/prepare" }, { - "path": "../core-loggers" - }, - { - "path": "../store-controller-types" + "path": "../../store/store-controller-types" } ] } diff --git a/packages/git-resolver/tsconfig.lint.json b/fs/indexed-pkg-importer/tsconfig.lint.json similarity index 100% rename from packages/git-resolver/tsconfig.lint.json rename to fs/indexed-pkg-importer/tsconfig.lint.json diff --git a/packages/read-modules-dir/CHANGELOG.md b/fs/read-modules-dir/CHANGELOG.md similarity index 100% rename from packages/read-modules-dir/CHANGELOG.md rename to fs/read-modules-dir/CHANGELOG.md diff --git a/packages/read-modules-dir/README.md b/fs/read-modules-dir/README.md similarity index 100% rename from packages/read-modules-dir/README.md rename to fs/read-modules-dir/README.md diff --git a/packages/read-modules-dir/package.json b/fs/read-modules-dir/package.json similarity index 82% rename from packages/read-modules-dir/package.json rename to fs/read-modules-dir/package.json index 1c69065d6e..60520ca127 100644 --- a/packages/read-modules-dir/package.json +++ b/fs/read-modules-dir/package.json @@ -15,8 +15,8 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/read-modules-dir", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/read-modules-dir#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/fs/read-modules-dir", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fs/read-modules-dir#readme", "scripts": { "start": "tsc --watch", "test": "pnpm run compile", diff --git a/packages/read-modules-dir/src/index.ts b/fs/read-modules-dir/src/index.ts similarity index 100% rename from packages/read-modules-dir/src/index.ts rename to fs/read-modules-dir/src/index.ts diff --git a/packages/read-modules-dir/tsconfig.json b/fs/read-modules-dir/tsconfig.json similarity index 100% rename from packages/read-modules-dir/tsconfig.json rename to fs/read-modules-dir/tsconfig.json diff --git a/packages/graceful-fs/tsconfig.lint.json b/fs/read-modules-dir/tsconfig.lint.json similarity index 100% rename from packages/graceful-fs/tsconfig.lint.json rename to fs/read-modules-dir/tsconfig.lint.json diff --git a/packages/symlink-dependency/CHANGELOG.md b/fs/symlink-dependency/CHANGELOG.md similarity index 100% rename from packages/symlink-dependency/CHANGELOG.md rename to fs/symlink-dependency/CHANGELOG.md diff --git a/packages/symlink-dependency/README.md b/fs/symlink-dependency/README.md similarity index 100% rename from packages/symlink-dependency/README.md rename to fs/symlink-dependency/README.md diff --git a/packages/find-workspace-packages/jest.config.js b/fs/symlink-dependency/jest.config.js similarity index 100% rename from packages/find-workspace-packages/jest.config.js rename to fs/symlink-dependency/jest.config.js diff --git a/packages/symlink-dependency/package.json b/fs/symlink-dependency/package.json similarity index 85% rename from packages/symlink-dependency/package.json rename to fs/symlink-dependency/package.json index 15099adab3..726189ea2e 100644 --- a/packages/symlink-dependency/package.json +++ b/fs/symlink-dependency/package.json @@ -21,7 +21,7 @@ "directories": { "test": "test" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/symlink-dependency#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/fs/symlink-dependency#readme", "keywords": [ "pnpm7", "pnpm" @@ -30,7 +30,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/symlink-dependency", + "repository": "https://github.com/pnpm/pnpm/blob/main/fs/symlink-dependency", "scripts": { "start": "tsc --watch", "test": "pnpm run compile && pnpm run _test", diff --git a/packages/symlink-dependency/src/index.ts b/fs/symlink-dependency/src/index.ts similarity index 100% rename from packages/symlink-dependency/src/index.ts rename to fs/symlink-dependency/src/index.ts diff --git a/packages/symlink-dependency/src/symlinkDirectRootDependency.ts b/fs/symlink-dependency/src/symlinkDirectRootDependency.ts similarity index 100% rename from packages/symlink-dependency/src/symlinkDirectRootDependency.ts rename to fs/symlink-dependency/src/symlinkDirectRootDependency.ts diff --git a/packages/symlink-dependency/test/symlinkDirectRootDependency.test.ts b/fs/symlink-dependency/test/symlinkDirectRootDependency.test.ts similarity index 100% rename from packages/symlink-dependency/test/symlinkDirectRootDependency.test.ts rename to fs/symlink-dependency/test/symlinkDirectRootDependency.test.ts diff --git a/packages/symlink-dependency/tsconfig.json b/fs/symlink-dependency/tsconfig.json similarity index 77% rename from packages/symlink-dependency/tsconfig.json rename to fs/symlink-dependency/tsconfig.json index 783b976c39..da754b4e20 100644 --- a/packages/symlink-dependency/tsconfig.json +++ b/fs/symlink-dependency/tsconfig.json @@ -9,14 +9,14 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/types" + }, { "path": "../../privatePackages/prepare" - }, - { - "path": "../core-loggers" - }, - { - "path": "../types" } ] } diff --git a/packages/headless/tsconfig.lint.json b/fs/symlink-dependency/tsconfig.lint.json similarity index 100% rename from packages/headless/tsconfig.lint.json rename to fs/symlink-dependency/tsconfig.lint.json diff --git a/packages/pnpmfile/CHANGELOG.md b/hooks/pnpmfile/CHANGELOG.md similarity index 100% rename from packages/pnpmfile/CHANGELOG.md rename to hooks/pnpmfile/CHANGELOG.md diff --git a/packages/pnpmfile/README.md b/hooks/pnpmfile/README.md similarity index 100% rename from packages/pnpmfile/README.md rename to hooks/pnpmfile/README.md diff --git a/packages/pnpmfile/jest.config.js b/hooks/pnpmfile/jest.config.js similarity index 100% rename from packages/pnpmfile/jest.config.js rename to hooks/pnpmfile/jest.config.js diff --git a/packages/pnpmfile/package.json b/hooks/pnpmfile/package.json similarity index 88% rename from packages/pnpmfile/package.json rename to hooks/pnpmfile/package.json index 6e31d057b8..c1940e9671 100644 --- a/packages/pnpmfile/package.json +++ b/hooks/pnpmfile/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/pnpmfile", + "repository": "https://github.com/pnpm/pnpm/blob/main/hooks/pnpmfile", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/pnpmfile#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/hooks/pnpmfile#readme", "devDependencies": { "@pnpm/fetcher-base": "workspace:*", "@pnpm/pnpmfile": "workspace:*" diff --git a/packages/pnpmfile/src/index.ts b/hooks/pnpmfile/src/index.ts similarity index 100% rename from packages/pnpmfile/src/index.ts rename to hooks/pnpmfile/src/index.ts diff --git a/packages/pnpmfile/src/requireHooks.ts b/hooks/pnpmfile/src/requireHooks.ts similarity index 100% rename from packages/pnpmfile/src/requireHooks.ts rename to hooks/pnpmfile/src/requireHooks.ts diff --git a/packages/pnpmfile/src/requirePnpmfile.ts b/hooks/pnpmfile/src/requirePnpmfile.ts similarity index 100% rename from packages/pnpmfile/src/requirePnpmfile.ts rename to hooks/pnpmfile/src/requirePnpmfile.ts diff --git a/packages/pnpmfile/test/index.ts b/hooks/pnpmfile/test/index.ts similarity index 100% rename from packages/pnpmfile/test/index.ts rename to hooks/pnpmfile/test/index.ts diff --git a/packages/pnpmfile/test/pnpmfiles/filterLog.js b/hooks/pnpmfile/test/pnpmfiles/filterLog.js similarity index 100% rename from packages/pnpmfile/test/pnpmfiles/filterLog.js rename to hooks/pnpmfile/test/pnpmfiles/filterLog.js diff --git a/packages/pnpmfile/test/pnpmfiles/globalFilterLog.js b/hooks/pnpmfile/test/pnpmfiles/globalFilterLog.js similarity index 100% rename from packages/pnpmfile/test/pnpmfiles/globalFilterLog.js rename to hooks/pnpmfile/test/pnpmfiles/globalFilterLog.js diff --git a/packages/pnpmfile/test/pnpmfiles/readPackageNoObject.js b/hooks/pnpmfile/test/pnpmfiles/readPackageNoObject.js similarity index 100% rename from packages/pnpmfile/test/pnpmfiles/readPackageNoObject.js rename to hooks/pnpmfile/test/pnpmfiles/readPackageNoObject.js diff --git a/packages/pnpmfile/test/pnpmfiles/readPackageNoReturn.js b/hooks/pnpmfile/test/pnpmfiles/readPackageNoReturn.js similarity index 100% rename from packages/pnpmfile/test/pnpmfiles/readPackageNoReturn.js rename to hooks/pnpmfile/test/pnpmfiles/readPackageNoReturn.js diff --git a/packages/pnpmfile/test/pnpmfiles/undefined.js b/hooks/pnpmfile/test/pnpmfiles/undefined.js similarity index 100% rename from packages/pnpmfile/test/pnpmfiles/undefined.js rename to hooks/pnpmfile/test/pnpmfiles/undefined.js diff --git a/hooks/pnpmfile/tsconfig.json b/hooks/pnpmfile/tsconfig.json new file mode 100644 index 0000000000..8abbd80e28 --- /dev/null +++ b/hooks/pnpmfile/tsconfig.json @@ -0,0 +1,34 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/core" + }, + { + "path": "../../store/store-controller-types" + } + ] +} diff --git a/packages/hoist/tsconfig.lint.json b/hooks/pnpmfile/tsconfig.lint.json similarity index 100% rename from packages/hoist/tsconfig.lint.json rename to hooks/pnpmfile/tsconfig.lint.json diff --git a/packages/hooks.read-package-hook/CHANGELOG.md b/hooks/read-package-hook/CHANGELOG.md similarity index 100% rename from packages/hooks.read-package-hook/CHANGELOG.md rename to hooks/read-package-hook/CHANGELOG.md diff --git a/packages/hooks.read-package-hook/README.md b/hooks/read-package-hook/README.md similarity index 100% rename from packages/hooks.read-package-hook/README.md rename to hooks/read-package-hook/README.md diff --git a/packages/create-cafs-store/jest.config.js b/hooks/read-package-hook/jest.config.js similarity index 100% rename from packages/create-cafs-store/jest.config.js rename to hooks/read-package-hook/jest.config.js diff --git a/packages/hooks.read-package-hook/package.json b/hooks/read-package-hook/package.json similarity index 87% rename from packages/hooks.read-package-hook/package.json rename to hooks/read-package-hook/package.json index a95de7e321..6b824a2da7 100644 --- a/packages/hooks.read-package-hook/package.json +++ b/hooks/read-package-hook/package.json @@ -15,7 +15,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/hooks.read-package-hook", + "repository": "https://github.com/pnpm/pnpm/blob/main/hooks/read-package-hook", "keywords": [ "pnpm7" ], @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/hooks.read-package-hook#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/hooks/read-package-hook#readme", "dependencies": { "@pnpm/matcher": "workspace:*", "@pnpm/parse-overrides": "workspace:*", diff --git a/packages/hooks.read-package-hook/src/createPackageExtender.ts b/hooks/read-package-hook/src/createPackageExtender.ts similarity index 100% rename from packages/hooks.read-package-hook/src/createPackageExtender.ts rename to hooks/read-package-hook/src/createPackageExtender.ts diff --git a/packages/hooks.read-package-hook/src/createPeerDependencyPatcher.ts b/hooks/read-package-hook/src/createPeerDependencyPatcher.ts similarity index 100% rename from packages/hooks.read-package-hook/src/createPeerDependencyPatcher.ts rename to hooks/read-package-hook/src/createPeerDependencyPatcher.ts diff --git a/packages/hooks.read-package-hook/src/createReadPackageHook.ts b/hooks/read-package-hook/src/createReadPackageHook.ts similarity index 100% rename from packages/hooks.read-package-hook/src/createReadPackageHook.ts rename to hooks/read-package-hook/src/createReadPackageHook.ts diff --git a/packages/hooks.read-package-hook/src/createVersionsOverrider.ts b/hooks/read-package-hook/src/createVersionsOverrider.ts similarity index 100% rename from packages/hooks.read-package-hook/src/createVersionsOverrider.ts rename to hooks/read-package-hook/src/createVersionsOverrider.ts diff --git a/packages/hooks.read-package-hook/src/index.ts b/hooks/read-package-hook/src/index.ts similarity index 100% rename from packages/hooks.read-package-hook/src/index.ts rename to hooks/read-package-hook/src/index.ts diff --git a/packages/hooks.read-package-hook/test/createPackageExtender.test.ts b/hooks/read-package-hook/test/createPackageExtender.test.ts similarity index 100% rename from packages/hooks.read-package-hook/test/createPackageExtender.test.ts rename to hooks/read-package-hook/test/createPackageExtender.test.ts diff --git a/packages/hooks.read-package-hook/test/createPeerDependencyPatcher.test.ts b/hooks/read-package-hook/test/createPeerDependencyPatcher.test.ts similarity index 100% rename from packages/hooks.read-package-hook/test/createPeerDependencyPatcher.test.ts rename to hooks/read-package-hook/test/createPeerDependencyPatcher.test.ts diff --git a/packages/hooks.read-package-hook/test/createReadPackageHook.ts b/hooks/read-package-hook/test/createReadPackageHook.ts similarity index 100% rename from packages/hooks.read-package-hook/test/createReadPackageHook.ts rename to hooks/read-package-hook/test/createReadPackageHook.ts diff --git a/packages/hooks.read-package-hook/test/createVersionOverrider.test.ts b/hooks/read-package-hook/test/createVersionOverrider.test.ts similarity index 100% rename from packages/hooks.read-package-hook/test/createVersionOverrider.test.ts rename to hooks/read-package-hook/test/createVersionOverrider.test.ts diff --git a/packages/default-reporter/tsconfig.json b/hooks/read-package-hook/tsconfig.json similarity index 58% rename from packages/default-reporter/tsconfig.json rename to hooks/read-package-hook/tsconfig.json index a55bbd5309..13d8248f2f 100644 --- a/packages/default-reporter/tsconfig.json +++ b/hooks/read-package-hook/tsconfig.json @@ -10,19 +10,16 @@ ], "references": [ { - "path": "../config" + "path": "../../config/matcher" }, { - "path": "../core-loggers" + "path": "../../config/parse-overrides" }, { - "path": "../error" + "path": "../../packages/parse-wanted-dependency" }, { - "path": "../render-peer-issues" - }, - { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/hooks.read-package-hook/tsconfig.lint.json b/hooks/read-package-hook/tsconfig.lint.json similarity index 100% rename from packages/hooks.read-package-hook/tsconfig.lint.json rename to hooks/read-package-hook/tsconfig.lint.json diff --git a/packages/audit/CHANGELOG.md b/lockfile/audit/CHANGELOG.md similarity index 100% rename from packages/audit/CHANGELOG.md rename to lockfile/audit/CHANGELOG.md diff --git a/packages/audit/README.md b/lockfile/audit/README.md similarity index 100% rename from packages/audit/README.md rename to lockfile/audit/README.md diff --git a/packages/audit/example.js b/lockfile/audit/example.js similarity index 100% rename from packages/audit/example.js rename to lockfile/audit/example.js diff --git a/packages/default-resolver/jest.config.js b/lockfile/audit/jest.config.js similarity index 100% rename from packages/default-resolver/jest.config.js rename to lockfile/audit/jest.config.js diff --git a/packages/audit/package.json b/lockfile/audit/package.json similarity index 90% rename from packages/audit/package.json rename to lockfile/audit/package.json index 8be243f2b0..b4170142ae 100644 --- a/packages/audit/package.json +++ b/lockfile/audit/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/audit", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/audit", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/audit#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/audit#readme", "devDependencies": { "@pnpm/audit": "workspace:*", "@pnpm/constants": "workspace:*", diff --git a/packages/audit/src/index.ts b/lockfile/audit/src/index.ts similarity index 100% rename from packages/audit/src/index.ts rename to lockfile/audit/src/index.ts diff --git a/packages/audit/src/lockfileToAuditTree.ts b/lockfile/audit/src/lockfileToAuditTree.ts similarity index 100% rename from packages/audit/src/lockfileToAuditTree.ts rename to lockfile/audit/src/lockfileToAuditTree.ts diff --git a/packages/audit/src/types.ts b/lockfile/audit/src/types.ts similarity index 100% rename from packages/audit/src/types.ts rename to lockfile/audit/src/types.ts diff --git a/packages/audit/test/index.ts b/lockfile/audit/test/index.ts similarity index 100% rename from packages/audit/test/index.ts rename to lockfile/audit/test/index.ts diff --git a/packages/audit/tsconfig.json b/lockfile/audit/tsconfig.json similarity index 69% rename from packages/audit/tsconfig.json rename to lockfile/audit/tsconfig.json index 652e71cdf5..cbbbf82b71 100644 --- a/packages/audit/tsconfig.json +++ b/lockfile/audit/tsconfig.json @@ -10,16 +10,19 @@ ], "references": [ { - "path": "../constants" + "path": "../../network/fetch" }, { - "path": "../error" + "path": "../../network/fetching-types" }, { - "path": "../fetch" + "path": "../../packages/constants" }, { - "path": "../fetching-types" + "path": "../../packages/error" + }, + { + "path": "../../packages/types" }, { "path": "../lockfile-file" @@ -32,9 +35,6 @@ }, { "path": "../lockfile-walker" - }, - { - "path": "../types" } ] } diff --git a/packages/license-scanner/tsconfig.lint.json b/lockfile/audit/tsconfig.lint.json similarity index 100% rename from packages/license-scanner/tsconfig.lint.json rename to lockfile/audit/tsconfig.lint.json diff --git a/packages/filter-lockfile/CHANGELOG.md b/lockfile/filter-lockfile/CHANGELOG.md similarity index 100% rename from packages/filter-lockfile/CHANGELOG.md rename to lockfile/filter-lockfile/CHANGELOG.md diff --git a/packages/filter-lockfile/README.md b/lockfile/filter-lockfile/README.md similarity index 100% rename from packages/filter-lockfile/README.md rename to lockfile/filter-lockfile/README.md diff --git a/packages/git-fetcher/jest.config.js b/lockfile/filter-lockfile/jest.config.js similarity index 100% rename from packages/git-fetcher/jest.config.js rename to lockfile/filter-lockfile/jest.config.js diff --git a/packages/filter-lockfile/package.json b/lockfile/filter-lockfile/package.json similarity index 91% rename from packages/filter-lockfile/package.json rename to lockfile/filter-lockfile/package.json index 37eec104c0..f2a1236fd8 100644 --- a/packages/filter-lockfile/package.json +++ b/lockfile/filter-lockfile/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/filter-lockfile", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/filter-lockfile", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/filter-lockfile#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/filter-lockfile#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/filter-lockfile/src/filterImporter.ts b/lockfile/filter-lockfile/src/filterImporter.ts similarity index 100% rename from packages/filter-lockfile/src/filterImporter.ts rename to lockfile/filter-lockfile/src/filterImporter.ts diff --git a/packages/filter-lockfile/src/filterLockfile.ts b/lockfile/filter-lockfile/src/filterLockfile.ts similarity index 100% rename from packages/filter-lockfile/src/filterLockfile.ts rename to lockfile/filter-lockfile/src/filterLockfile.ts diff --git a/packages/filter-lockfile/src/filterLockfileByImporters.ts b/lockfile/filter-lockfile/src/filterLockfileByImporters.ts similarity index 100% rename from packages/filter-lockfile/src/filterLockfileByImporters.ts rename to lockfile/filter-lockfile/src/filterLockfileByImporters.ts diff --git a/packages/filter-lockfile/src/filterLockfileByImportersAndEngine.ts b/lockfile/filter-lockfile/src/filterLockfileByImportersAndEngine.ts similarity index 100% rename from packages/filter-lockfile/src/filterLockfileByImportersAndEngine.ts rename to lockfile/filter-lockfile/src/filterLockfileByImportersAndEngine.ts diff --git a/packages/filter-lockfile/src/index.ts b/lockfile/filter-lockfile/src/index.ts similarity index 100% rename from packages/filter-lockfile/src/index.ts rename to lockfile/filter-lockfile/src/index.ts diff --git a/packages/filter-lockfile/test/filterByImporters.ts b/lockfile/filter-lockfile/test/filterByImporters.ts similarity index 100% rename from packages/filter-lockfile/test/filterByImporters.ts rename to lockfile/filter-lockfile/test/filterByImporters.ts diff --git a/packages/filter-lockfile/test/filterByImportersAndEngine.ts b/lockfile/filter-lockfile/test/filterByImportersAndEngine.ts similarity index 100% rename from packages/filter-lockfile/test/filterByImportersAndEngine.ts rename to lockfile/filter-lockfile/test/filterByImportersAndEngine.ts diff --git a/packages/filter-lockfile/tsconfig.json b/lockfile/filter-lockfile/tsconfig.json similarity index 65% rename from packages/filter-lockfile/tsconfig.json rename to lockfile/filter-lockfile/tsconfig.json index ff782d42cd..df082ad6ac 100644 --- a/packages/filter-lockfile/tsconfig.json +++ b/lockfile/filter-lockfile/tsconfig.json @@ -10,13 +10,19 @@ ], "references": [ { - "path": "../constants" + "path": "../../config/package-is-installable" }, { - "path": "../dependency-path" + "path": "../../packages/constants" }, { - "path": "../error" + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" }, { "path": "../lockfile-types" @@ -26,12 +32,6 @@ }, { "path": "../lockfile-walker" - }, - { - "path": "../package-is-installable" - }, - { - "path": "../types" } ] } diff --git a/packages/lifecycle/tsconfig.lint.json b/lockfile/filter-lockfile/tsconfig.lint.json similarity index 100% rename from packages/lifecycle/tsconfig.lint.json rename to lockfile/filter-lockfile/tsconfig.lint.json diff --git a/packages/lockfile-file/CHANGELOG.md b/lockfile/lockfile-file/CHANGELOG.md similarity index 100% rename from packages/lockfile-file/CHANGELOG.md rename to lockfile/lockfile-file/CHANGELOG.md diff --git a/packages/lockfile-file/README.md b/lockfile/lockfile-file/README.md similarity index 100% rename from packages/lockfile-file/README.md rename to lockfile/lockfile-file/README.md diff --git a/packages/lockfile-file/jest.config.js b/lockfile/lockfile-file/jest.config.js similarity index 100% rename from packages/lockfile-file/jest.config.js rename to lockfile/lockfile-file/jest.config.js diff --git a/packages/lockfile-file/package.json b/lockfile/lockfile-file/package.json similarity index 93% rename from packages/lockfile-file/package.json rename to lockfile/lockfile-file/package.json index 85fb6ef173..f4ba48b454 100644 --- a/packages/lockfile-file/package.json +++ b/lockfile/lockfile-file/package.json @@ -19,7 +19,7 @@ "compile": "tsc --build && pnpm run lint --fix", "start": "tsc --watch" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-file", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-file", "keywords": [ "pnpm7", "pnpm", @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-file#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-file#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/lockfile-file/src/errors/LockfileBreakingChangeError.ts b/lockfile/lockfile-file/src/errors/LockfileBreakingChangeError.ts similarity index 100% rename from packages/lockfile-file/src/errors/LockfileBreakingChangeError.ts rename to lockfile/lockfile-file/src/errors/LockfileBreakingChangeError.ts diff --git a/packages/lockfile-file/src/errors/index.ts b/lockfile/lockfile-file/src/errors/index.ts similarity index 100% rename from packages/lockfile-file/src/errors/index.ts rename to lockfile/lockfile-file/src/errors/index.ts diff --git a/packages/lockfile-file/src/existsWantedLockfile.ts b/lockfile/lockfile-file/src/existsWantedLockfile.ts similarity index 100% rename from packages/lockfile-file/src/existsWantedLockfile.ts rename to lockfile/lockfile-file/src/existsWantedLockfile.ts diff --git a/packages/lockfile-file/src/experiments/InlineSpecifiersLockfile.ts b/lockfile/lockfile-file/src/experiments/InlineSpecifiersLockfile.ts similarity index 100% rename from packages/lockfile-file/src/experiments/InlineSpecifiersLockfile.ts rename to lockfile/lockfile-file/src/experiments/InlineSpecifiersLockfile.ts diff --git a/packages/lockfile-file/src/experiments/inlineSpecifiersLockfileConverters.ts b/lockfile/lockfile-file/src/experiments/inlineSpecifiersLockfileConverters.ts similarity index 100% rename from packages/lockfile-file/src/experiments/inlineSpecifiersLockfileConverters.ts rename to lockfile/lockfile-file/src/experiments/inlineSpecifiersLockfileConverters.ts diff --git a/packages/lockfile-file/src/getLockfileImporterId.ts b/lockfile/lockfile-file/src/getLockfileImporterId.ts similarity index 100% rename from packages/lockfile-file/src/getLockfileImporterId.ts rename to lockfile/lockfile-file/src/getLockfileImporterId.ts diff --git a/packages/lockfile-file/src/gitBranchLockfile.ts b/lockfile/lockfile-file/src/gitBranchLockfile.ts similarity index 100% rename from packages/lockfile-file/src/gitBranchLockfile.ts rename to lockfile/lockfile-file/src/gitBranchLockfile.ts diff --git a/packages/lockfile-file/src/gitMergeFile.ts b/lockfile/lockfile-file/src/gitMergeFile.ts similarity index 100% rename from packages/lockfile-file/src/gitMergeFile.ts rename to lockfile/lockfile-file/src/gitMergeFile.ts diff --git a/packages/lockfile-file/src/index.ts b/lockfile/lockfile-file/src/index.ts similarity index 100% rename from packages/lockfile-file/src/index.ts rename to lockfile/lockfile-file/src/index.ts diff --git a/packages/lockfile-file/src/lockfileName.ts b/lockfile/lockfile-file/src/lockfileName.ts similarity index 100% rename from packages/lockfile-file/src/lockfileName.ts rename to lockfile/lockfile-file/src/lockfileName.ts diff --git a/packages/lockfile-file/src/logger.ts b/lockfile/lockfile-file/src/logger.ts similarity index 100% rename from packages/lockfile-file/src/logger.ts rename to lockfile/lockfile-file/src/logger.ts diff --git a/packages/lockfile-file/src/read.ts b/lockfile/lockfile-file/src/read.ts similarity index 100% rename from packages/lockfile-file/src/read.ts rename to lockfile/lockfile-file/src/read.ts diff --git a/packages/lockfile-file/src/sortLockfileKeys.ts b/lockfile/lockfile-file/src/sortLockfileKeys.ts similarity index 100% rename from packages/lockfile-file/src/sortLockfileKeys.ts rename to lockfile/lockfile-file/src/sortLockfileKeys.ts diff --git a/packages/lockfile-file/src/write.ts b/lockfile/lockfile-file/src/write.ts similarity index 100% rename from packages/lockfile-file/src/write.ts rename to lockfile/lockfile-file/src/write.ts diff --git a/packages/lockfile-file/test/__snapshots__/write.test.ts.snap b/lockfile/lockfile-file/test/__snapshots__/write.test.ts.snap similarity index 100% rename from packages/lockfile-file/test/__snapshots__/write.test.ts.snap rename to lockfile/lockfile-file/test/__snapshots__/write.test.ts.snap diff --git a/lockfile/lockfile-file/test/fixtures/.gitignore b/lockfile/lockfile-file/test/fixtures/.gitignore new file mode 100644 index 0000000000..2e3b88e35f --- /dev/null +++ b/lockfile/lockfile-file/test/fixtures/.gitignore @@ -0,0 +1 @@ +!**/node_modules/**/* diff --git a/lockfile/lockfile-file/test/fixtures/1/.gitignore b/lockfile/lockfile-file/test/fixtures/1/.gitignore new file mode 100644 index 0000000000..2b9b8877da --- /dev/null +++ b/lockfile/lockfile-file/test/fixtures/1/.gitignore @@ -0,0 +1 @@ +!/node_modules/ diff --git a/packages/lockfile-file/test/fixtures/1/node_modules/.pnpm/lock.yaml b/lockfile/lockfile-file/test/fixtures/1/node_modules/.pnpm/lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/1/node_modules/.pnpm/lock.yaml rename to lockfile/lockfile-file/test/fixtures/1/node_modules/.pnpm/lock.yaml diff --git a/packages/lockfile-file/test/fixtures/1/pnpm-lock.yaml b/lockfile/lockfile-file/test/fixtures/1/pnpm-lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/1/pnpm-lock.yaml rename to lockfile/lockfile-file/test/fixtures/1/pnpm-lock.yaml diff --git a/lockfile/lockfile-file/test/fixtures/2/.gitignore b/lockfile/lockfile-file/test/fixtures/2/.gitignore new file mode 100644 index 0000000000..2b9b8877da --- /dev/null +++ b/lockfile/lockfile-file/test/fixtures/2/.gitignore @@ -0,0 +1 @@ +!/node_modules/ diff --git a/packages/lockfile-file/test/fixtures/2/node_modules/.pnpm/lock.yaml b/lockfile/lockfile-file/test/fixtures/2/node_modules/.pnpm/lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/2/node_modules/.pnpm/lock.yaml rename to lockfile/lockfile-file/test/fixtures/2/node_modules/.pnpm/lock.yaml diff --git a/packages/lockfile-file/test/fixtures/2/pnpm-lock.yaml b/lockfile/lockfile-file/test/fixtures/2/pnpm-lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/2/pnpm-lock.yaml rename to lockfile/lockfile-file/test/fixtures/2/pnpm-lock.yaml diff --git a/packages/lockfile-file/test/fixtures/3/pnpm-lock.yaml b/lockfile/lockfile-file/test/fixtures/3/pnpm-lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/3/pnpm-lock.yaml rename to lockfile/lockfile-file/test/fixtures/3/pnpm-lock.yaml diff --git a/packages/lockfile-file/test/fixtures/4/pnpm-lock.yaml b/lockfile/lockfile-file/test/fixtures/4/pnpm-lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/4/pnpm-lock.yaml rename to lockfile/lockfile-file/test/fixtures/4/pnpm-lock.yaml diff --git a/packages/lockfile-file/test/fixtures/5/pnpm-lock.yaml b/lockfile/lockfile-file/test/fixtures/5/pnpm-lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/5/pnpm-lock.yaml rename to lockfile/lockfile-file/test/fixtures/5/pnpm-lock.yaml diff --git a/packages/lockfile-file/test/fixtures/6/otherFile.md b/lockfile/lockfile-file/test/fixtures/6/otherFile.md similarity index 100% rename from packages/lockfile-file/test/fixtures/6/otherFile.md rename to lockfile/lockfile-file/test/fixtures/6/otherFile.md diff --git a/packages/lockfile-file/test/fixtures/6/pnpm-lock.branch.yaml b/lockfile/lockfile-file/test/fixtures/6/pnpm-lock.branch.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/6/pnpm-lock.branch.yaml rename to lockfile/lockfile-file/test/fixtures/6/pnpm-lock.branch.yaml diff --git a/packages/lockfile-file/test/fixtures/6/pnpm-lock.yaml b/lockfile/lockfile-file/test/fixtures/6/pnpm-lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/6/pnpm-lock.yaml rename to lockfile/lockfile-file/test/fixtures/6/pnpm-lock.yaml diff --git a/packages/lockfile-file/test/fixtures/7/pnpm-lock.yaml b/lockfile/lockfile-file/test/fixtures/7/pnpm-lock.yaml similarity index 100% rename from packages/lockfile-file/test/fixtures/7/pnpm-lock.yaml rename to lockfile/lockfile-file/test/fixtures/7/pnpm-lock.yaml diff --git a/packages/lockfile-file/test/gitBranchLockfile.test.ts b/lockfile/lockfile-file/test/gitBranchLockfile.test.ts similarity index 100% rename from packages/lockfile-file/test/gitBranchLockfile.test.ts rename to lockfile/lockfile-file/test/gitBranchLockfile.test.ts diff --git a/packages/lockfile-file/test/lockfileName.test.ts b/lockfile/lockfile-file/test/lockfileName.test.ts similarity index 100% rename from packages/lockfile-file/test/lockfileName.test.ts rename to lockfile/lockfile-file/test/lockfileName.test.ts diff --git a/packages/lockfile-file/test/normalizeLockfile.test.ts b/lockfile/lockfile-file/test/normalizeLockfile.test.ts similarity index 100% rename from packages/lockfile-file/test/normalizeLockfile.test.ts rename to lockfile/lockfile-file/test/normalizeLockfile.test.ts diff --git a/packages/lockfile-file/test/read.test.ts b/lockfile/lockfile-file/test/read.test.ts similarity index 100% rename from packages/lockfile-file/test/read.test.ts rename to lockfile/lockfile-file/test/read.test.ts diff --git a/packages/lockfile-file/test/sortLockfileKeys.test.ts b/lockfile/lockfile-file/test/sortLockfileKeys.test.ts similarity index 100% rename from packages/lockfile-file/test/sortLockfileKeys.test.ts rename to lockfile/lockfile-file/test/sortLockfileKeys.test.ts diff --git a/packages/lockfile-file/test/write.test.ts b/lockfile/lockfile-file/test/write.test.ts similarity index 100% rename from packages/lockfile-file/test/write.test.ts rename to lockfile/lockfile-file/test/write.test.ts diff --git a/packages/lockfile-file/tsconfig.json b/lockfile/lockfile-file/tsconfig.json similarity index 64% rename from packages/lockfile-file/tsconfig.json rename to lockfile/lockfile-file/tsconfig.json index a22caf71b5..6628e0e6cd 100644 --- a/packages/lockfile-file/tsconfig.json +++ b/lockfile/lockfile-file/tsconfig.json @@ -10,25 +10,25 @@ ], "references": [ { - "path": "../constants" + "path": "../../packages/constants" }, { - "path": "../dependency-path" + "path": "../../packages/dependency-path" }, { - "path": "../error" + "path": "../../packages/error" }, { - "path": "../git-utils" + "path": "../../packages/git-utils" + }, + { + "path": "../../packages/types" }, { "path": "../lockfile-types" }, { "path": "../merge-lockfile-changes" - }, - { - "path": "../types" } ] } diff --git a/packages/link-bins/tsconfig.lint.json b/lockfile/lockfile-file/tsconfig.lint.json similarity index 100% rename from packages/link-bins/tsconfig.lint.json rename to lockfile/lockfile-file/tsconfig.lint.json diff --git a/packages/lockfile-to-pnp/CHANGELOG.md b/lockfile/lockfile-to-pnp/CHANGELOG.md similarity index 100% rename from packages/lockfile-to-pnp/CHANGELOG.md rename to lockfile/lockfile-to-pnp/CHANGELOG.md diff --git a/packages/lockfile-to-pnp/README.md b/lockfile/lockfile-to-pnp/README.md similarity index 100% rename from packages/lockfile-to-pnp/README.md rename to lockfile/lockfile-to-pnp/README.md diff --git a/packages/dependencies-hierarchy/jest.config.js b/lockfile/lockfile-to-pnp/jest.config.js similarity index 100% rename from packages/dependencies-hierarchy/jest.config.js rename to lockfile/lockfile-to-pnp/jest.config.js diff --git a/packages/lockfile-to-pnp/package.json b/lockfile/lockfile-to-pnp/package.json similarity index 91% rename from packages/lockfile-to-pnp/package.json rename to lockfile/lockfile-to-pnp/package.json index b7ee61d47f..d93ceec1a5 100644 --- a/packages/lockfile-to-pnp/package.json +++ b/lockfile/lockfile-to-pnp/package.json @@ -18,7 +18,7 @@ "_test": "jest", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-to-pnp", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-to-pnp", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-to-pnp#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-to-pnp#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/lockfile-to-pnp/src/index.ts b/lockfile/lockfile-to-pnp/src/index.ts similarity index 100% rename from packages/lockfile-to-pnp/src/index.ts rename to lockfile/lockfile-to-pnp/src/index.ts diff --git a/packages/lockfile-to-pnp/test/index.ts b/lockfile/lockfile-to-pnp/test/index.ts similarity index 100% rename from packages/lockfile-to-pnp/test/index.ts rename to lockfile/lockfile-to-pnp/test/index.ts diff --git a/packages/real-hoist/tsconfig.json b/lockfile/lockfile-to-pnp/tsconfig.json similarity index 78% rename from packages/real-hoist/tsconfig.json rename to lockfile/lockfile-to-pnp/tsconfig.json index 9b78ad735d..d79e9bd548 100644 --- a/packages/real-hoist/tsconfig.json +++ b/lockfile/lockfile-to-pnp/tsconfig.json @@ -10,10 +10,10 @@ ], "references": [ { - "path": "../dependency-path" + "path": "../../packages/dependency-path" }, { - "path": "../error" + "path": "../../packages/types" }, { "path": "../lockfile-file" diff --git a/packages/list/tsconfig.lint.json b/lockfile/lockfile-to-pnp/tsconfig.lint.json similarity index 100% rename from packages/list/tsconfig.lint.json rename to lockfile/lockfile-to-pnp/tsconfig.lint.json diff --git a/packages/lockfile-types/CHANGELOG.md b/lockfile/lockfile-types/CHANGELOG.md similarity index 100% rename from packages/lockfile-types/CHANGELOG.md rename to lockfile/lockfile-types/CHANGELOG.md diff --git a/packages/lockfile-types/README.md b/lockfile/lockfile-types/README.md similarity index 100% rename from packages/lockfile-types/README.md rename to lockfile/lockfile-types/README.md diff --git a/packages/lockfile-types/package.json b/lockfile/lockfile-types/package.json similarity index 86% rename from packages/lockfile-types/package.json rename to lockfile/lockfile-types/package.json index 54f0bedbc0..05b8d3c351 100644 --- a/packages/lockfile-types/package.json +++ b/lockfile/lockfile-types/package.json @@ -11,7 +11,7 @@ "lib", "!*.map" ], - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-types", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-types", "keywords": [ "pnpm7", "pnpm", @@ -21,7 +21,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-types#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-types#readme", "scripts": { "lint": "eslint src/**/*.ts", "compile": "tsc --build && pnpm run lint --fix", diff --git a/packages/lockfile-types/src/index.ts b/lockfile/lockfile-types/src/index.ts similarity index 100% rename from packages/lockfile-types/src/index.ts rename to lockfile/lockfile-types/src/index.ts diff --git a/packages/find-workspace-dir/tsconfig.json b/lockfile/lockfile-types/tsconfig.json similarity index 84% rename from packages/find-workspace-dir/tsconfig.json rename to lockfile/lockfile-types/tsconfig.json index b2232f7e30..4934a75de4 100644 --- a/packages/find-workspace-dir/tsconfig.json +++ b/lockfile/lockfile-types/tsconfig.json @@ -10,7 +10,7 @@ ], "references": [ { - "path": "../error" + "path": "../../packages/types" } ] } diff --git a/packages/local-resolver/tsconfig.lint.json b/lockfile/lockfile-types/tsconfig.lint.json similarity index 100% rename from packages/local-resolver/tsconfig.lint.json rename to lockfile/lockfile-types/tsconfig.lint.json diff --git a/packages/lockfile-utils/CHANGELOG.md b/lockfile/lockfile-utils/CHANGELOG.md similarity index 100% rename from packages/lockfile-utils/CHANGELOG.md rename to lockfile/lockfile-utils/CHANGELOG.md diff --git a/packages/lockfile-utils/README.md b/lockfile/lockfile-utils/README.md similarity index 100% rename from packages/lockfile-utils/README.md rename to lockfile/lockfile-utils/README.md diff --git a/packages/lockfile-utils/jest.config.js b/lockfile/lockfile-utils/jest.config.js similarity index 100% rename from packages/lockfile-utils/jest.config.js rename to lockfile/lockfile-utils/jest.config.js diff --git a/packages/lockfile-utils/package.json b/lockfile/lockfile-utils/package.json similarity index 90% rename from packages/lockfile-utils/package.json rename to lockfile/lockfile-utils/package.json index b714cc2f41..670835ac99 100644 --- a/packages/lockfile-utils/package.json +++ b/lockfile/lockfile-utils/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-utils", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-utils", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-utils#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-utils#readme", "devDependencies": { "@pnpm/lockfile-utils": "workspace:*", "@types/js-yaml": "^4.0.5", diff --git a/packages/lockfile-utils/src/extendProjectsWithTargetDirs.ts b/lockfile/lockfile-utils/src/extendProjectsWithTargetDirs.ts similarity index 100% rename from packages/lockfile-utils/src/extendProjectsWithTargetDirs.ts rename to lockfile/lockfile-utils/src/extendProjectsWithTargetDirs.ts diff --git a/packages/lockfile-utils/src/index.ts b/lockfile/lockfile-utils/src/index.ts similarity index 100% rename from packages/lockfile-utils/src/index.ts rename to lockfile/lockfile-utils/src/index.ts diff --git a/packages/lockfile-utils/src/nameVerFromPkgSnapshot.ts b/lockfile/lockfile-utils/src/nameVerFromPkgSnapshot.ts similarity index 100% rename from packages/lockfile-utils/src/nameVerFromPkgSnapshot.ts rename to lockfile/lockfile-utils/src/nameVerFromPkgSnapshot.ts diff --git a/packages/lockfile-utils/src/packageIdFromSnapshot.ts b/lockfile/lockfile-utils/src/packageIdFromSnapshot.ts similarity index 100% rename from packages/lockfile-utils/src/packageIdFromSnapshot.ts rename to lockfile/lockfile-utils/src/packageIdFromSnapshot.ts diff --git a/packages/lockfile-utils/src/packageIsIndependent.ts b/lockfile/lockfile-utils/src/packageIsIndependent.ts similarity index 100% rename from packages/lockfile-utils/src/packageIsIndependent.ts rename to lockfile/lockfile-utils/src/packageIsIndependent.ts diff --git a/packages/lockfile-utils/src/pkgSnapshotToResolution.ts b/lockfile/lockfile-utils/src/pkgSnapshotToResolution.ts similarity index 100% rename from packages/lockfile-utils/src/pkgSnapshotToResolution.ts rename to lockfile/lockfile-utils/src/pkgSnapshotToResolution.ts diff --git a/packages/lockfile-utils/src/satisfiesPackageManifest.ts b/lockfile/lockfile-utils/src/satisfiesPackageManifest.ts similarity index 100% rename from packages/lockfile-utils/src/satisfiesPackageManifest.ts rename to lockfile/lockfile-utils/src/satisfiesPackageManifest.ts diff --git a/packages/lockfile-utils/test/index.ts b/lockfile/lockfile-utils/test/index.ts similarity index 100% rename from packages/lockfile-utils/test/index.ts rename to lockfile/lockfile-utils/test/index.ts diff --git a/packages/lockfile-utils/test/nameVerFromPkgSnapshot.ts b/lockfile/lockfile-utils/test/nameVerFromPkgSnapshot.ts similarity index 100% rename from packages/lockfile-utils/test/nameVerFromPkgSnapshot.ts rename to lockfile/lockfile-utils/test/nameVerFromPkgSnapshot.ts diff --git a/packages/lockfile-utils/test/pkgSnapshotToResolution.ts b/lockfile/lockfile-utils/test/pkgSnapshotToResolution.ts similarity index 100% rename from packages/lockfile-utils/test/pkgSnapshotToResolution.ts rename to lockfile/lockfile-utils/test/pkgSnapshotToResolution.ts diff --git a/packages/lockfile-utils/test/satisfiesPackageManifest.ts b/lockfile/lockfile-utils/test/satisfiesPackageManifest.ts similarity index 100% rename from packages/lockfile-utils/test/satisfiesPackageManifest.ts rename to lockfile/lockfile-utils/test/satisfiesPackageManifest.ts diff --git a/packages/prune-lockfile/tsconfig.json b/lockfile/lockfile-utils/tsconfig.json similarity index 68% rename from packages/prune-lockfile/tsconfig.json rename to lockfile/lockfile-utils/tsconfig.json index 46f935c509..274338fcf5 100644 --- a/packages/prune-lockfile/tsconfig.json +++ b/lockfile/lockfile-utils/tsconfig.json @@ -10,16 +10,16 @@ ], "references": [ { - "path": "../constants" + "path": "../../packages/dependency-path" }, { - "path": "../dependency-path" + "path": "../../packages/types" + }, + { + "path": "../../resolving/resolver-base" }, { "path": "../lockfile-types" - }, - { - "path": "../types" } ] } diff --git a/packages/lockfile-file/tsconfig.lint.json b/lockfile/lockfile-utils/tsconfig.lint.json similarity index 100% rename from packages/lockfile-file/tsconfig.lint.json rename to lockfile/lockfile-utils/tsconfig.lint.json diff --git a/packages/lockfile-walker/CHANGELOG.md b/lockfile/lockfile-walker/CHANGELOG.md similarity index 100% rename from packages/lockfile-walker/CHANGELOG.md rename to lockfile/lockfile-walker/CHANGELOG.md diff --git a/packages/lockfile-walker/README.md b/lockfile/lockfile-walker/README.md similarity index 100% rename from packages/lockfile-walker/README.md rename to lockfile/lockfile-walker/README.md diff --git a/packages/lockfile-walker/package.json b/lockfile/lockfile-walker/package.json similarity index 89% rename from packages/lockfile-walker/package.json rename to lockfile/lockfile-walker/package.json index 3437780de0..9996c7a558 100644 --- a/packages/lockfile-walker/package.json +++ b/lockfile/lockfile-walker/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-walker", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-walker", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-walker#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-walker#readme", "devDependencies": { "@pnpm/lockfile-walker": "workspace:*", "@types/ramda": "0.28.15", diff --git a/packages/lockfile-walker/src/index.ts b/lockfile/lockfile-walker/src/index.ts similarity index 100% rename from packages/lockfile-walker/src/index.ts rename to lockfile/lockfile-walker/src/index.ts diff --git a/packages/lockfile-walker/tsconfig.json b/lockfile/lockfile-walker/tsconfig.json similarity index 76% rename from packages/lockfile-walker/tsconfig.json rename to lockfile/lockfile-walker/tsconfig.json index acf2df076b..543aecfa11 100644 --- a/packages/lockfile-walker/tsconfig.json +++ b/lockfile/lockfile-walker/tsconfig.json @@ -10,13 +10,13 @@ ], "references": [ { - "path": "../dependency-path" + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/types" }, { "path": "../lockfile-types" - }, - { - "path": "../types" } ] } diff --git a/packages/lockfile-to-pnp/tsconfig.lint.json b/lockfile/lockfile-walker/tsconfig.lint.json similarity index 100% rename from packages/lockfile-to-pnp/tsconfig.lint.json rename to lockfile/lockfile-walker/tsconfig.lint.json diff --git a/packages/merge-lockfile-changes/CHANGELOG.md b/lockfile/merge-lockfile-changes/CHANGELOG.md similarity index 100% rename from packages/merge-lockfile-changes/CHANGELOG.md rename to lockfile/merge-lockfile-changes/CHANGELOG.md diff --git a/packages/merge-lockfile-changes/README.md b/lockfile/merge-lockfile-changes/README.md similarity index 100% rename from packages/merge-lockfile-changes/README.md rename to lockfile/merge-lockfile-changes/README.md diff --git a/packages/manifest-utils/jest.config.js b/lockfile/merge-lockfile-changes/jest.config.js similarity index 100% rename from packages/manifest-utils/jest.config.js rename to lockfile/merge-lockfile-changes/jest.config.js diff --git a/packages/merge-lockfile-changes/package.json b/lockfile/merge-lockfile-changes/package.json similarity index 89% rename from packages/merge-lockfile-changes/package.json rename to lockfile/merge-lockfile-changes/package.json index c6c7ae4bc7..d9d0fbf7b8 100644 --- a/packages/merge-lockfile-changes/package.json +++ b/lockfile/merge-lockfile-changes/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/merge-lockfile-changes", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/merge-lockfile-changes", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/merge-lockfile-changes#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/merge-lockfile-changes#readme", "dependencies": { "@pnpm/lockfile-types": "workspace:*", "comver-to-semver": "^1.0.0", diff --git a/packages/merge-lockfile-changes/src/index.ts b/lockfile/merge-lockfile-changes/src/index.ts similarity index 100% rename from packages/merge-lockfile-changes/src/index.ts rename to lockfile/merge-lockfile-changes/src/index.ts diff --git a/packages/merge-lockfile-changes/test/index.ts b/lockfile/merge-lockfile-changes/test/index.ts similarity index 100% rename from packages/merge-lockfile-changes/test/index.ts rename to lockfile/merge-lockfile-changes/test/index.ts diff --git a/packages/merge-lockfile-changes/tsconfig.json b/lockfile/merge-lockfile-changes/tsconfig.json similarity index 100% rename from packages/merge-lockfile-changes/tsconfig.json rename to lockfile/merge-lockfile-changes/tsconfig.json diff --git a/packages/lockfile-types/tsconfig.lint.json b/lockfile/merge-lockfile-changes/tsconfig.lint.json similarity index 100% rename from packages/lockfile-types/tsconfig.lint.json rename to lockfile/merge-lockfile-changes/tsconfig.lint.json diff --git a/packages/plugin-commands-audit/CHANGELOG.md b/lockfile/plugin-commands-audit/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-audit/CHANGELOG.md rename to lockfile/plugin-commands-audit/CHANGELOG.md diff --git a/packages/plugin-commands-audit/README.md b/lockfile/plugin-commands-audit/README.md similarity index 100% rename from packages/plugin-commands-audit/README.md rename to lockfile/plugin-commands-audit/README.md diff --git a/packages/plugin-commands-audit/jest.config.js b/lockfile/plugin-commands-audit/jest.config.js similarity index 100% rename from packages/plugin-commands-audit/jest.config.js rename to lockfile/plugin-commands-audit/jest.config.js diff --git a/packages/plugin-commands-audit/package.json b/lockfile/plugin-commands-audit/package.json similarity index 92% rename from packages/plugin-commands-audit/package.json rename to lockfile/plugin-commands-audit/package.json index 730f892e9a..66682e077f 100644 --- a/packages/plugin-commands-audit/package.json +++ b/lockfile/plugin-commands-audit/package.json @@ -19,7 +19,7 @@ "compile": "tsc --build && pnpm run lint --fix", "update-responses": "ts-node test/utils/responses/update.ts" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-audit", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/plugin-commands-audit", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-audit#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/plugin-commands-audit#readme", "devDependencies": { "@pnpm/plugin-commands-audit": "workspace:*", "@pnpm/test-fixtures": "workspace:*", diff --git a/packages/plugin-commands-audit/src/audit.ts b/lockfile/plugin-commands-audit/src/audit.ts similarity index 100% rename from packages/plugin-commands-audit/src/audit.ts rename to lockfile/plugin-commands-audit/src/audit.ts diff --git a/packages/plugin-commands-audit/src/fix.ts b/lockfile/plugin-commands-audit/src/fix.ts similarity index 100% rename from packages/plugin-commands-audit/src/fix.ts rename to lockfile/plugin-commands-audit/src/fix.ts diff --git a/packages/plugin-commands-audit/src/index.ts b/lockfile/plugin-commands-audit/src/index.ts similarity index 100% rename from packages/plugin-commands-audit/src/index.ts rename to lockfile/plugin-commands-audit/src/index.ts diff --git a/packages/plugin-commands-audit/test/__snapshots__/index.ts.snap b/lockfile/plugin-commands-audit/test/__snapshots__/index.ts.snap similarity index 100% rename from packages/plugin-commands-audit/test/__snapshots__/index.ts.snap rename to lockfile/plugin-commands-audit/test/__snapshots__/index.ts.snap diff --git a/packages/plugin-commands-audit/test/fix.ts b/lockfile/plugin-commands-audit/test/fix.ts similarity index 100% rename from packages/plugin-commands-audit/test/fix.ts rename to lockfile/plugin-commands-audit/test/fix.ts diff --git a/packages/plugin-commands-audit/test/fixtures/.gitignore b/lockfile/plugin-commands-audit/test/fixtures/.gitignore similarity index 100% rename from packages/plugin-commands-audit/test/fixtures/.gitignore rename to lockfile/plugin-commands-audit/test/fixtures/.gitignore diff --git a/packages/plugin-commands-audit/test/fixtures/.npmrc b/lockfile/plugin-commands-audit/test/fixtures/.npmrc similarity index 100% rename from packages/plugin-commands-audit/test/fixtures/.npmrc rename to lockfile/plugin-commands-audit/test/fixtures/.npmrc diff --git a/packages/plugin-commands-audit/test/fixtures/has-vulnerabilities/package.json b/lockfile/plugin-commands-audit/test/fixtures/has-vulnerabilities/package.json similarity index 100% rename from packages/plugin-commands-audit/test/fixtures/has-vulnerabilities/package.json rename to lockfile/plugin-commands-audit/test/fixtures/has-vulnerabilities/package.json diff --git a/packages/plugin-commands-audit/test/fixtures/has-vulnerabilities/pnpm-lock.yaml b/lockfile/plugin-commands-audit/test/fixtures/has-vulnerabilities/pnpm-lock.yaml similarity index 100% rename from packages/plugin-commands-audit/test/fixtures/has-vulnerabilities/pnpm-lock.yaml rename to lockfile/plugin-commands-audit/test/fixtures/has-vulnerabilities/pnpm-lock.yaml diff --git a/packages/plugin-commands-audit/test/fixtures/pnpm-workspace.yaml b/lockfile/plugin-commands-audit/test/fixtures/pnpm-workspace.yaml similarity index 100% rename from packages/plugin-commands-audit/test/fixtures/pnpm-workspace.yaml rename to lockfile/plugin-commands-audit/test/fixtures/pnpm-workspace.yaml diff --git a/packages/plugin-commands-audit/test/index.ts b/lockfile/plugin-commands-audit/test/index.ts similarity index 89% rename from packages/plugin-commands-audit/test/index.ts rename to lockfile/plugin-commands-audit/test/index.ts index 68fe016cfd..1df3f5b4e8 100644 --- a/packages/plugin-commands-audit/test/index.ts +++ b/lockfile/plugin-commands-audit/test/index.ts @@ -20,7 +20,7 @@ test('audit', async () => { .reply(200, responses.ALL_VULN_RESP) const { output, exitCode } = await audit.handler({ - dir: path.join(__dirname, 'fixtures/has-vulnerabilities'), + dir: f.find('has-vulnerabilities'), userConfig: {}, rawConfig, registries, @@ -35,7 +35,7 @@ test('audit --dev', async () => { .reply(200, responses.DEV_VULN_ONLY_RESP) const { output, exitCode } = await audit.handler({ - dir: path.join(__dirname, 'fixtures/has-vulnerabilities'), + dir: f.find('has-vulnerabilities'), dev: true, production: false, userConfig: {}, @@ -54,7 +54,7 @@ test('audit --audit-level', async () => { const { output, exitCode } = await audit.handler({ auditLevel: 'moderate', - dir: path.join(__dirname, 'fixtures/has-vulnerabilities'), + dir: f.find('has-vulnerabilities'), userConfig: {}, rawConfig, registries, @@ -70,7 +70,7 @@ test('audit: no vulnerabilities', async () => { .reply(200, responses.NO_VULN_RESP) const { output, exitCode } = await audit.handler({ - dir: path.join(__dirname, '../../../fixtures/has-outdated-deps'), + dir: f.find('has-outdated-deps'), userConfig: {}, rawConfig, registries, @@ -86,7 +86,7 @@ test('audit --json', async () => { .reply(200, responses.ALL_VULN_RESP) const { output, exitCode } = await audit.handler({ - dir: path.join(__dirname, 'fixtures/has-vulnerabilities'), + dir: f.find('has-vulnerabilities'), json: true, userConfig: {}, rawConfig, @@ -105,7 +105,7 @@ test.skip('audit does not exit with code 1 if the found vulnerabilities are havi const { output, exitCode } = await audit.handler({ auditLevel: 'high', - dir: path.join(__dirname, 'fixtures/has-vulnerabilities'), + dir: f.find('has-vulnerabilities'), userConfig: {}, rawConfig, dev: true, @@ -122,7 +122,7 @@ test('audit does not exit with code 1 if the registry responds with a non-200 re .post('/-/npm/v1/security/audits') .reply(500, { message: 'Something bad happened' }) const { output, exitCode } = await audit.handler({ - dir: path.join(__dirname, 'fixtures/has-vulnerabilities'), + dir: f.find('has-vulnerabilities'), dev: true, fetchRetries: 0, ignoreRegistryErrors: true, @@ -144,7 +144,7 @@ test('audit sends authToken', async () => { .reply(200, responses.NO_VULN_RESP) const { output, exitCode } = await audit.handler({ - dir: path.join(__dirname, '../../../fixtures/has-outdated-deps'), + dir: f.find('has-outdated-deps'), userConfig: {}, rawConfig: { registry: registries.default, @@ -163,7 +163,7 @@ test('audit endpoint does not exist', async () => { .reply(404, {}) await expect(audit.handler({ - dir: path.join(__dirname, 'fixtures/has-vulnerabilities'), + dir: f.find('has-vulnerabilities'), dev: true, fetchRetries: 0, ignoreRegistryErrors: false, diff --git a/packages/plugin-commands-audit/test/utils/responses/all-vulnerabilities-response.json b/lockfile/plugin-commands-audit/test/utils/responses/all-vulnerabilities-response.json similarity index 100% rename from packages/plugin-commands-audit/test/utils/responses/all-vulnerabilities-response.json rename to lockfile/plugin-commands-audit/test/utils/responses/all-vulnerabilities-response.json diff --git a/packages/plugin-commands-audit/test/utils/responses/dev-vulnerabilities-only-response.json b/lockfile/plugin-commands-audit/test/utils/responses/dev-vulnerabilities-only-response.json similarity index 100% rename from packages/plugin-commands-audit/test/utils/responses/dev-vulnerabilities-only-response.json rename to lockfile/plugin-commands-audit/test/utils/responses/dev-vulnerabilities-only-response.json diff --git a/packages/plugin-commands-audit/test/utils/responses/index.ts b/lockfile/plugin-commands-audit/test/utils/responses/index.ts similarity index 100% rename from packages/plugin-commands-audit/test/utils/responses/index.ts rename to lockfile/plugin-commands-audit/test/utils/responses/index.ts diff --git a/packages/plugin-commands-audit/test/utils/responses/no-vulnerabilities-response.json b/lockfile/plugin-commands-audit/test/utils/responses/no-vulnerabilities-response.json similarity index 100% rename from packages/plugin-commands-audit/test/utils/responses/no-vulnerabilities-response.json rename to lockfile/plugin-commands-audit/test/utils/responses/no-vulnerabilities-response.json diff --git a/packages/plugin-commands-audit/test/utils/responses/update.ts b/lockfile/plugin-commands-audit/test/utils/responses/update.ts similarity index 100% rename from packages/plugin-commands-audit/test/utils/responses/update.ts rename to lockfile/plugin-commands-audit/test/utils/responses/update.ts diff --git a/packages/plugin-commands-audit/tsconfig.json b/lockfile/plugin-commands-audit/tsconfig.json similarity index 60% rename from packages/plugin-commands-audit/tsconfig.json rename to lockfile/plugin-commands-audit/tsconfig.json index 9b9168e173..cf77939312 100644 --- a/packages/plugin-commands-audit/tsconfig.json +++ b/lockfile/plugin-commands-audit/tsconfig.json @@ -9,35 +9,35 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../config/config" + }, + { + "path": "../../network/auth-header" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../../privatePackages/test-fixtures" }, { "path": "../audit" }, - { - "path": "../cli-utils" - }, - { - "path": "../config" - }, - { - "path": "../constants" - }, - { - "path": "../error" - }, { "path": "../lockfile-file" - }, - { - "path": "../network.auth-header" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../types" } ] } diff --git a/packages/lockfile-utils/tsconfig.lint.json b/lockfile/plugin-commands-audit/tsconfig.lint.json similarity index 100% rename from packages/lockfile-utils/tsconfig.lint.json rename to lockfile/plugin-commands-audit/tsconfig.lint.json diff --git a/packages/prune-lockfile/CHANGELOG.md b/lockfile/prune-lockfile/CHANGELOG.md similarity index 100% rename from packages/prune-lockfile/CHANGELOG.md rename to lockfile/prune-lockfile/CHANGELOG.md diff --git a/packages/prune-lockfile/README.md b/lockfile/prune-lockfile/README.md similarity index 100% rename from packages/prune-lockfile/README.md rename to lockfile/prune-lockfile/README.md diff --git a/packages/prune-lockfile/jest.config.js b/lockfile/prune-lockfile/jest.config.js similarity index 100% rename from packages/prune-lockfile/jest.config.js rename to lockfile/prune-lockfile/jest.config.js diff --git a/packages/prune-lockfile/package.json b/lockfile/prune-lockfile/package.json similarity index 89% rename from packages/prune-lockfile/package.json rename to lockfile/prune-lockfile/package.json index b703295d45..27cec3de90 100644 --- a/packages/prune-lockfile/package.json +++ b/lockfile/prune-lockfile/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/prune-lockfile", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/prune-lockfile", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/prune-lockfile#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/prune-lockfile#readme", "devDependencies": { "@pnpm/prune-lockfile": "workspace:*", "@types/ramda": "0.28.15", diff --git a/packages/prune-lockfile/src/index.ts b/lockfile/prune-lockfile/src/index.ts similarity index 100% rename from packages/prune-lockfile/src/index.ts rename to lockfile/prune-lockfile/src/index.ts diff --git a/packages/prune-lockfile/test/index.ts b/lockfile/prune-lockfile/test/index.ts similarity index 100% rename from packages/prune-lockfile/test/index.ts rename to lockfile/prune-lockfile/test/index.ts diff --git a/packages/lockfile-utils/tsconfig.json b/lockfile/prune-lockfile/tsconfig.json similarity index 69% rename from packages/lockfile-utils/tsconfig.json rename to lockfile/prune-lockfile/tsconfig.json index 19b25b6e16..b76dc1b363 100644 --- a/packages/lockfile-utils/tsconfig.json +++ b/lockfile/prune-lockfile/tsconfig.json @@ -10,16 +10,16 @@ ], "references": [ { - "path": "../dependency-path" + "path": "../../packages/constants" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/types" }, { "path": "../lockfile-types" - }, - { - "path": "../resolver-base" - }, - { - "path": "../types" } ] } diff --git a/packages/lockfile-walker/tsconfig.lint.json b/lockfile/prune-lockfile/tsconfig.lint.json similarity index 100% rename from packages/lockfile-walker/tsconfig.lint.json rename to lockfile/prune-lockfile/tsconfig.lint.json diff --git a/packages/network.auth-header/CHANGELOG.md b/network/auth-header/CHANGELOG.md similarity index 100% rename from packages/network.auth-header/CHANGELOG.md rename to network/auth-header/CHANGELOG.md diff --git a/packages/network.auth-header/README.md b/network/auth-header/README.md similarity index 100% rename from packages/network.auth-header/README.md rename to network/auth-header/README.md diff --git a/packages/fetch/jest.config.js b/network/auth-header/jest.config.js similarity index 100% rename from packages/fetch/jest.config.js rename to network/auth-header/jest.config.js diff --git a/packages/network.auth-header/package.json b/network/auth-header/package.json similarity index 83% rename from packages/network.auth-header/package.json rename to network/auth-header/package.json index aaed1dc9d0..69688107ac 100644 --- a/packages/network.auth-header/package.json +++ b/network/auth-header/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/network.auth-header", + "repository": "https://github.com/pnpm/pnpm/blob/main/network/auth-header", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/network.auth-header#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/network/auth-header#readme", "devDependencies": { "@pnpm/network.auth-header": "workspace:*", "safe-buffer": "5.2.1" diff --git a/packages/network.auth-header/src/getAuthHeadersFromConfig.ts b/network/auth-header/src/getAuthHeadersFromConfig.ts similarity index 100% rename from packages/network.auth-header/src/getAuthHeadersFromConfig.ts rename to network/auth-header/src/getAuthHeadersFromConfig.ts diff --git a/packages/network.auth-header/src/index.ts b/network/auth-header/src/index.ts similarity index 100% rename from packages/network.auth-header/src/index.ts rename to network/auth-header/src/index.ts diff --git a/packages/network.auth-header/test/getAuthHeaderByURI.ts b/network/auth-header/test/getAuthHeaderByURI.ts similarity index 100% rename from packages/network.auth-header/test/getAuthHeaderByURI.ts rename to network/auth-header/test/getAuthHeaderByURI.ts diff --git a/packages/network.auth-header/test/getAuthHeadersFromConfig.test.ts b/network/auth-header/test/getAuthHeadersFromConfig.test.ts similarity index 100% rename from packages/network.auth-header/test/getAuthHeadersFromConfig.test.ts rename to network/auth-header/test/getAuthHeadersFromConfig.test.ts diff --git a/packages/network.auth-header/test/utils/test-exec-error.bat b/network/auth-header/test/utils/test-exec-error.bat similarity index 100% rename from packages/network.auth-header/test/utils/test-exec-error.bat rename to network/auth-header/test/utils/test-exec-error.bat diff --git a/packages/network.auth-header/test/utils/test-exec-error.js b/network/auth-header/test/utils/test-exec-error.js similarity index 100% rename from packages/network.auth-header/test/utils/test-exec-error.js rename to network/auth-header/test/utils/test-exec-error.js diff --git a/packages/network.auth-header/test/utils/test-exec.bat b/network/auth-header/test/utils/test-exec.bat similarity index 100% rename from packages/network.auth-header/test/utils/test-exec.bat rename to network/auth-header/test/utils/test-exec.bat diff --git a/packages/network.auth-header/test/utils/test-exec.js b/network/auth-header/test/utils/test-exec.js similarity index 100% rename from packages/network.auth-header/test/utils/test-exec.js rename to network/auth-header/test/utils/test-exec.js diff --git a/network/auth-header/tsconfig.json b/network/auth-header/tsconfig.json new file mode 100644 index 0000000000..3c87944f95 --- /dev/null +++ b/network/auth-header/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/error" + } + ] +} diff --git a/packages/manifest-utils/tsconfig.lint.json b/network/auth-header/tsconfig.lint.json similarity index 100% rename from packages/manifest-utils/tsconfig.lint.json rename to network/auth-header/tsconfig.lint.json diff --git a/packages/fetch/CHANGELOG.md b/network/fetch/CHANGELOG.md similarity index 100% rename from packages/fetch/CHANGELOG.md rename to network/fetch/CHANGELOG.md diff --git a/packages/fetch/README.md b/network/fetch/README.md similarity index 100% rename from packages/fetch/README.md rename to network/fetch/README.md diff --git a/packages/filter-workspace-packages/jest.config.js b/network/fetch/jest.config.js similarity index 100% rename from packages/filter-workspace-packages/jest.config.js rename to network/fetch/jest.config.js diff --git a/packages/fetch/package.json b/network/fetch/package.json similarity index 87% rename from packages/fetch/package.json rename to network/fetch/package.json index f4dee87819..a03cc2cc99 100644 --- a/packages/fetch/package.json +++ b/network/fetch/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/fetch", + "repository": "https://github.com/pnpm/pnpm/blob/main/network/fetch", "keywords": [ "pnpm7", "fetch", @@ -31,7 +31,7 @@ "peerDependencies": { "@pnpm/logger": "^5.0.0" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/fetch#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/network/fetch#readme", "dependencies": { "@pnpm/core-loggers": "workspace:*", "@pnpm/fetching-types": "workspace:*", diff --git a/packages/fetch/src/fetch.ts b/network/fetch/src/fetch.ts similarity index 100% rename from packages/fetch/src/fetch.ts rename to network/fetch/src/fetch.ts diff --git a/packages/fetch/src/fetchFromRegistry.ts b/network/fetch/src/fetchFromRegistry.ts similarity index 100% rename from packages/fetch/src/fetchFromRegistry.ts rename to network/fetch/src/fetchFromRegistry.ts diff --git a/packages/fetch/src/index.ts b/network/fetch/src/index.ts similarity index 100% rename from packages/fetch/src/index.ts rename to network/fetch/src/index.ts diff --git a/packages/fetch/test/fetchFromRegistry.test.ts b/network/fetch/test/fetchFromRegistry.test.ts similarity index 100% rename from packages/fetch/test/fetchFromRegistry.test.ts rename to network/fetch/test/fetchFromRegistry.test.ts diff --git a/packages/fetch/tsconfig.json b/network/fetch/tsconfig.json similarity index 85% rename from packages/fetch/tsconfig.json rename to network/fetch/tsconfig.json index caefc2a503..796c76fd90 100644 --- a/packages/fetch/tsconfig.json +++ b/network/fetch/tsconfig.json @@ -10,7 +10,7 @@ ], "references": [ { - "path": "../core-loggers" + "path": "../../packages/core-loggers" }, { "path": "../fetching-types" diff --git a/packages/matcher/tsconfig.lint.json b/network/fetch/tsconfig.lint.json similarity index 100% rename from packages/matcher/tsconfig.lint.json rename to network/fetch/tsconfig.lint.json diff --git a/packages/fetching-types/CHANGELOG.md b/network/fetching-types/CHANGELOG.md similarity index 100% rename from packages/fetching-types/CHANGELOG.md rename to network/fetching-types/CHANGELOG.md diff --git a/packages/fetching-types/README.md b/network/fetching-types/README.md similarity index 100% rename from packages/fetching-types/README.md rename to network/fetching-types/README.md diff --git a/packages/fetching-types/package.json b/network/fetching-types/package.json similarity index 82% rename from packages/fetching-types/package.json rename to network/fetching-types/package.json index 6d8b0faf4e..840d5ea044 100644 --- a/packages/fetching-types/package.json +++ b/network/fetching-types/package.json @@ -11,7 +11,7 @@ "lib", "!*.map" ], - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/fetching-types", + "repository": "https://github.com/pnpm/pnpm/blob/main/network/fetching-types", "keywords": [ "pnpm7", "pnpm", @@ -21,7 +21,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/fetching-types#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/network/fetching-types#readme", "scripts": { "compile": "tsc --build && pnpm run lint --fix", "lint": "eslint src/**/*.ts", diff --git a/packages/fetching-types/src/index.ts b/network/fetching-types/src/index.ts similarity index 100% rename from packages/fetching-types/src/index.ts rename to network/fetching-types/src/index.ts diff --git a/packages/resolve-workspace-range/tsconfig.json b/network/fetching-types/tsconfig.json similarity index 100% rename from packages/resolve-workspace-range/tsconfig.json rename to network/fetching-types/tsconfig.json diff --git a/packages/merge-lockfile-changes/tsconfig.lint.json b/network/fetching-types/tsconfig.lint.json similarity index 100% rename from packages/merge-lockfile-changes/tsconfig.lint.json rename to network/fetching-types/tsconfig.lint.json diff --git a/package.json b/package.json index aff333f673..95e3148638 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "changeset": "changeset", "preinstall": "npx only-allow pnpm", "prepare": "husky install", - "pretest": "pnpm run compile-only && pnpm --dir=fixtures run prepareFixtures", + "pretest": "pnpm run compile-only && pnpm --dir=__fixtures__ run prepareFixtures", "lint": "pnpm lint:meta && syncpack list-mismatches --workspace false && pnpm run lint:ts", "lint:ts": "eslint **/src/**/*.ts **/test/**/*.ts", "test-main": "pnpm pretest && pnpm lint --quiet && run-p -r verdaccio test-pkgs-main", diff --git a/packages/artifacts/linuxstatic-arm64/pnpm b/packages/artifacts/linuxstatic-arm64/pnpm deleted file mode 100755 index 164eb8b4e1..0000000000 Binary files a/packages/artifacts/linuxstatic-arm64/pnpm and /dev/null differ diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json deleted file mode 100644 index 0d35752795..0000000000 --- a/packages/client/tsconfig.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../default-resolver" - }, - { - "path": "../directory-fetcher" - }, - { - "path": "../fetch" - }, - { - "path": "../fetcher-base" - }, - { - "path": "../fetching-types" - }, - { - "path": "../git-fetcher" - }, - { - "path": "../network.auth-header" - }, - { - "path": "../resolver-base" - }, - { - "path": "../tarball-fetcher" - } - ] -} diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json deleted file mode 100644 index 024996f28a..0000000000 --- a/packages/core/tsconfig.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/assert-project" - }, - { - "path": "../../privatePackages/assert-store" - }, - { - "path": "../../privatePackages/prepare" - }, - { - "path": "../../privatePackages/test-fixtures" - }, - { - "path": "../build-modules" - }, - { - "path": "../cafs" - }, - { - "path": "../calc-dep-state" - }, - { - "path": "../client" - }, - { - "path": "../constants" - }, - { - "path": "../core-loggers" - }, - { - "path": "../crypto.base32-hash" - }, - { - "path": "../dependency-path" - }, - { - "path": "../error" - }, - { - "path": "../filter-lockfile" - }, - { - "path": "../get-context" - }, - { - "path": "../git-utils" - }, - { - "path": "../headless" - }, - { - "path": "../hoist" - }, - { - "path": "../hooks.read-package-hook" - }, - { - "path": "../lifecycle" - }, - { - "path": "../link-bins" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../lockfile-to-pnp" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../lockfile-walker" - }, - { - "path": "../manifest-utils" - }, - { - "path": "../matcher" - }, - { - "path": "../modules-cleaner" - }, - { - "path": "../modules-yaml" - }, - { - "path": "../normalize-registries" - }, - { - "path": "../package-requester" - }, - { - "path": "../package-store" - }, - { - "path": "../parse-wanted-dependency" - }, - { - "path": "../prune-lockfile" - }, - { - "path": "../read-modules-dir" - }, - { - "path": "../read-package-json" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../remove-bins" - }, - { - "path": "../resolve-dependencies" - }, - { - "path": "../resolver-base" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../store-path" - }, - { - "path": "../symlink-dependency" - }, - { - "path": "../types" - }, - { - "path": "../which-version-is-pinned" - } - ] -} diff --git a/packages/dependencies-hierarchy/example/.gitignore b/packages/dependencies-hierarchy/example/.gitignore deleted file mode 100644 index cf4bab9ddd..0000000000 --- a/packages/dependencies-hierarchy/example/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!node_modules diff --git a/packages/dependencies-hierarchy/example/node_modules/.modules.yaml b/packages/dependencies-hierarchy/example/node_modules/.modules.yaml deleted file mode 100644 index 3b5bec2d1d..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.modules.yaml +++ /dev/null @@ -1,4 +0,0 @@ -layoutVersion: 1 -packageManager: pnpm@1.4.0 -skipped: [] -store: /home/zkochan/.pnpm-store/2 diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/index.js deleted file mode 100644 index eda0b1b1aa..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/index.js +++ /dev/null @@ -1,122 +0,0 @@ -'use strict'; - -// detect either spaces or tabs but not both to properly handle tabs -// for indentation and spaces for alignment -const INDENT_RE = /^(?:( )+|\t+)/; - -function getMostUsed(indents) { - let result = 0; - let maxUsed = 0; - let maxWeight = 0; - - for (const entry of indents) { - // TODO: use destructuring when targeting Node.js 6 - const key = entry[0]; - const val = entry[1]; - - const u = val[0]; - const w = val[1]; - - if (u > maxUsed || (u === maxUsed && w > maxWeight)) { - maxUsed = u; - maxWeight = w; - result = Number(key); - } - } - - return result; -} - -module.exports = str => { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - // used to see if tabs or spaces are the most used - let tabs = 0; - let spaces = 0; - - // remember the size of previous line's indentation - let prev = 0; - - // remember how many indents/unindents as occurred for a given size - // and how much lines follow a given indentation - // - // indents = { - // 3: [1, 0], - // 4: [1, 5], - // 5: [1, 0], - // 12: [1, 0], - // } - const indents = new Map(); - - // pointer to the array of last used indent - let current; - - // whether the last action was an indent (opposed to an unindent) - let isIndent; - - for (const line of str.split(/\n/g)) { - if (!line) { - // ignore empty lines - continue; - } - - let indent; - const matches = line.match(INDENT_RE); - - if (matches) { - indent = matches[0].length; - - if (matches[1]) { - spaces++; - } else { - tabs++; - } - } else { - indent = 0; - } - - const diff = indent - prev; - prev = indent; - - if (diff) { - // an indent or unindent has been detected - - isIndent = diff > 0; - - current = indents.get(isIndent ? diff : -diff); - - if (current) { - current[0]++; - } else { - current = [1, 0]; - indents.set(diff, current); - } - } else if (current) { - // if the last action was an indent, increment the weight - current[1] += Number(isIndent); - } - } - - const amount = getMostUsed(indents); - - let type; - let indent; - if (!amount) { - type = null; - indent = ''; - } else if (spaces >= tabs) { - type = 'space'; - indent = ' '.repeat(amount); - } else { - type = 'tab'; - indent = '\t'.repeat(amount); - } - - return { - amount, - type, - indent - }; -}; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/package.json deleted file mode 100644 index 81c7edf311..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "detect-indent", - "version": "5.0.0", - "description": "Detect the indentation of code", - "license": "MIT", - "repository": "sindresorhus/detect-indent", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "indent", - "indentation", - "detect", - "infer", - "identify", - "code", - "string", - "text", - "source", - "space", - "tab" - ], - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "xo": { - "esnext": true - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/readme.md deleted file mode 100644 index 3aeb1badf7..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/readme.md +++ /dev/null @@ -1,111 +0,0 @@ -# detect-indent [![Build Status](https://travis-ci.org/sindresorhus/detect-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/detect-indent) - -> Detect the indentation of code - -Pass in a string of any kind of text and get the indentation. - - -## Use cases - -- Persisting the indentation when modifying a file. -- Have new content match the existing indentation. -- Setting the right indentation in your editor. - - -## Install - -``` -$ npm install --save detect-indent -``` - - -## Usage - -Here we modify a JSON file while persisting the indentation: - -```js -const fs = require('fs'); -const detectIndent = require('detect-indent'); - -/* -{ - "ilove": "pizza" -} -*/ -const file = fs.readFileSync('foo.json', 'utf8'); - -// tries to detect the indentation and falls back to a default if it can't -const indent = detectIndent(file).indent || ' '; - -const json = JSON.parse(file); - -json.ilove = 'unicorns'; - -fs.writeFileSync('foo.json', JSON.stringify(json, null, indent)); -/* -{ - "ilove": "unicorns" -} -*/ -``` - - -## API - -Accepts a string and returns an object with stats about the indentation: - -* `amount` {number} - Amount of indentation, for example `2` -* `type` {string|null} - Type of indentation. Possible values are `tab`, `space` or `null` if no indentation is detected -* `indent` {string} - Actual indentation - - -## Algorithm - -The current algorithm looks for the most common difference between two consecutive non-empty lines. - -In the following example, even if the 4-space indentation is used 3 times whereas the 2-space one is used 2 times, it is detected as less used because there were only 2 differences with this value instead of 4 for the 2-space indentation: - -```css -html { - box-sizing: border-box; -} - -body { - background: gray; -} - -p { - line-height: 1.3em; - margin-top: 1em; - text-indent: 2em; -} -``` - -[Source.](https://medium.com/@heatherarthur/detecting-code-indentation-eff3ed0fb56b#3918) - -Furthermore, if there are more than one most used difference, the indentation with the most lines is selected. - -In the following example, the indentation is detected as 4-spaces: - -```css -body { - background: gray; -} - -p { - line-height: 1.3em; - margin-top: 1em; - text-indent: 2em; -} -``` - - -## Related - -- [detect-indent-cli](https://github.com/sindresorhus/detect-indent-cli) - CLI for this module -- [detect-newline](https://github.com/sindresorhus/detect-newline) - Detect the dominant newline character of a string - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/LICENSE b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/LICENSE deleted file mode 100644 index 9d2c803696..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/README.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/README.md deleted file mode 100644 index 5273a50ad6..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# graceful-fs - -graceful-fs functions as a drop-in replacement for the fs module, -making various improvements. - -The improvements are meant to normalize behavior across different -platforms and environments, and to make filesystem access more -resilient to errors. - -## Improvements over [fs module](https://nodejs.org/api/fs.html) - -* Queues up `open` and `readdir` calls, and retries them once - something closes if there is an EMFILE error from too many file - descriptors. -* fixes `lchmod` for Node versions prior to 0.6.2. -* implements `fs.lutimes` if possible. Otherwise it becomes a noop. -* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or - `lchown` if the user isn't root. -* makes `lchmod` and `lchown` become noops, if not available. -* retries reading a file if `read` results in EAGAIN error. - -On Windows, it retries renaming a file for up to one second if `EACCESS` -or `EPERM` error occurs, likely because antivirus software has locked -the directory. - -## USAGE - -```javascript -// use just like fs -var fs = require('graceful-fs') - -// now go and do stuff with it... -fs.readFileSync('some-file-or-whatever') -``` - -## Global Patching - -If you want to patch the global fs module (or any other fs-like -module) you can do this: - -```javascript -// Make sure to read the caveat below. -var realFs = require('fs') -var gracefulFs = require('graceful-fs') -gracefulFs.gracefulify(realFs) -``` - -This should only ever be done at the top-level application layer, in -order to delay on EMFILE errors from any fs-using dependencies. You -should **not** do this in a library, because it can cause unexpected -delays in other parts of the program. - -## Changes - -This module is fairly stable at this point, and used by a lot of -things. That being said, because it implements a subtle behavior -change in a core part of the node API, even modest changes can be -extremely breaking, and the versioning is thus biased towards -bumping the major when in doubt. - -The main change between major versions has been switching between -providing a fully-patched `fs` module vs monkey-patching the node core -builtin, and the approach by which a non-monkey-patched `fs` was -created. - -The goal is to trade `EMFILE` errors for slower fs operations. So, if -you try to open a zillion files, rather than crashing, `open` -operations will be queued up and wait for something else to `close`. - -There are advantages to each approach. Monkey-patching the fs means -that no `EMFILE` errors can possibly occur anywhere in your -application, because everything is using the same core `fs` module, -which is patched. However, it can also obviously cause undesirable -side-effects, especially if the module is loaded multiple times. - -Implementing a separate-but-identical patched `fs` module is more -surgical (and doesn't run the risk of patching multiple times), but -also imposes the challenge of keeping in sync with the core module. - -The current approach loads the `fs` module, and then creates a -lookalike object that has all the same methods, except a few that are -patched. It is safe to use in all versions of Node from 0.8 through -7.0. - -### v4 - -* Do not monkey-patch the fs module. This module may now be used as a - drop-in dep, and users can opt into monkey-patching the fs builtin - if their app requires it. - -### v3 - -* Monkey-patch fs, because the eval approach no longer works on recent - node. -* fixed possible type-error throw if rename fails on windows -* verify that we *never* get EMFILE errors -* Ignore ENOSYS from chmod/chown -* clarify that graceful-fs must be used as a drop-in - -### v2.1.0 - -* Use eval rather than monkey-patching fs. -* readdir: Always sort the results -* win32: requeue a file if error has an OK status - -### v2.0 - -* A return to monkey patching -* wrap process.cwd - -### v1.1 - -* wrap readFile -* Wrap fs.writeFile. -* readdir protection -* Don't clobber the fs builtin -* Handle fs.read EAGAIN errors by trying again -* Expose the curOpen counter -* No-op lchown/lchmod if not implemented -* fs.rename patch only for win32 -* Patch fs.rename to handle AV software on Windows -* Close #4 Chown should not fail on einval or eperm if non-root -* Fix isaacs/fstream#1 Only wrap fs one time -* Fix #3 Start at 1024 max files, then back off on EMFILE -* lutimes that doens't blow up on Linux -* A full on-rewrite using a queue instead of just swallowing the EMFILE error -* Wrap Read/Write streams as well - -### 1.0 - -* Update engines for node 0.6 -* Be lstat-graceful on Windows -* first diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/fs.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/fs.js deleted file mode 100644 index 8ad4a38396..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/fs.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict' - -var fs = require('fs') - -module.exports = clone(fs) - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: obj.__proto__ } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/graceful-fs.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/graceful-fs.js deleted file mode 100644 index 33b30d2e98..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/graceful-fs.js +++ /dev/null @@ -1,262 +0,0 @@ -var fs = require('fs') -var polyfills = require('./polyfills.js') -var legacy = require('./legacy-streams.js') -var queue = [] - -var util = require('util') - -function noop () {} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(queue) - require('assert').equal(queue.length, 0) - }) -} - -module.exports = patch(require('./fs.js')) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) { - module.exports = patch(fs) -} - -// Always patch fs.close/closeSync, because we want to -// retry() whenever a close happens *anywhere* in the program. -// This is essential when multiple graceful-fs instances are -// in play at the same time. -module.exports.close = -fs.close = (function (fs$close) { return function (fd, cb) { - return fs$close.call(fs, fd, function (err) { - if (!err) - retry() - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) -}})(fs.close) - -module.exports.closeSync = -fs.closeSync = (function (fs$closeSync) { return function (fd) { - // Note that graceful-fs also retries when fs.closeSync() fails. - // Looks like a bug to me, although it's probably a harmless one. - var rval = fs$closeSync.apply(fs, arguments) - retry() - return rval -}})(fs.closeSync) - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - fs.FileReadStream = ReadStream; // Legacy name. - fs.FileWriteStream = WriteStream; // Legacy name. - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - var args = [path] - if (typeof options !== 'function') { - args.push(options) - } else { - cb = options - } - args.push(go$readdir$cb) - - return go$readdir(args) - - function go$readdir$cb (err, files) { - if (files && files.sort) - files.sort() - - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [args]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - } - } - - function go$readdir (args) { - return fs$readdir.apply(fs, args) - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - - var fs$WriteStream = fs.WriteStream - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - - fs.ReadStream = ReadStream - fs.WriteStream = WriteStream - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - queue.push(elem) -} - -function retry () { - var elem = queue.shift() - if (elem) { - debug('RETRY', elem[0].name, elem[1]) - elem[0].apply(null, elem[1]) - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/legacy-streams.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/legacy-streams.js deleted file mode 100644 index d617b50fc0..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/legacy-streams.js +++ /dev/null @@ -1,118 +0,0 @@ -var Stream = require('stream').Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/package.json deleted file mode 100644 index cde9d0dd86..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "graceful-fs", - "description": "A drop-in replacement for fs, making various improvements.", - "version": "4.1.11", - "repository": { - "type": "git", - "url": "https://github.com/isaacs/node-graceful-fs" - }, - "main": "graceful-fs.js", - "engines": { - "node": ">=0.4.0" - }, - "directories": { - "test": "test" - }, - "scripts": { - "test": "node test.js | tap -" - }, - "keywords": [ - "fs", - "module", - "reading", - "retry", - "retries", - "queue", - "error", - "errors", - "handling", - "EMFILE", - "EAGAIN", - "EINVAL", - "EPERM", - "EACCESS" - ], - "license": "ISC", - "devDependencies": { - "mkdirp": "^0.5.0", - "rimraf": "^2.2.8", - "tap": "^5.4.2" - }, - "files": [ - "fs.js", - "graceful-fs.js", - "legacy-streams.js", - "polyfills.js" - ] -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/polyfills.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/polyfills.js deleted file mode 100644 index 4c6aca78a3..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/polyfills.js +++ /dev/null @@ -1,330 +0,0 @@ -var fs = require('./fs.js') -var constants = require('constants') - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -var chdir = process.chdir -process.chdir = function(d) { - cwd = null - chdir.call(process, d) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - }})(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) -} - -function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } -} - -function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } -} - -function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, cb) { - return orig.call(fs, target, function (er, stats) { - if (!stats) return cb.apply(this, arguments) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - if (cb) cb.apply(this, arguments) - }) - } -} - -function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target) { - var stats = orig.call(fs, target) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - return stats; - } -} - -// ENOSYS means that the fs doesn't support the op. Just ignore -// that, because it doesn't matter. -// -// if there's no getuid, or if getuid() is something other -// than 0, and the error is EINVAL or EPERM, then just ignore -// it. -// -// This specific case is a silent failure in cp, install, tar, -// and most other unix tools that manage permissions. -// -// When running as root, or if other types of errors are -// encountered, then it's strict. -function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/README.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/README.md deleted file mode 100644 index f35b20a0ef..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/README.md +++ /dev/null @@ -1,122 +0,0 @@ -iMurmurHash.js -============== - -An incremental implementation of the MurmurHash3 (32-bit) hashing algorithm for JavaScript based on [Gary Court's implementation](https://github.com/garycourt/murmurhash-js) with [kazuyukitanimura's modifications](https://github.com/kazuyukitanimura/murmurhash-js). - -This version works significantly faster than the non-incremental version if you need to hash many small strings into a single hash, since string concatenation (to build the single string to pass the non-incremental version) is fairly costly. In one case tested, using the incremental version was about 50% faster than concatenating 5-10 strings and then hashing. - -Installation ------------- - -To use iMurmurHash in the browser, [download the latest version](https://raw.github.com/jensyt/imurmurhash-js/master/imurmurhash.min.js) and include it as a script on your site. - -```html - - -``` - ---- - -To use iMurmurHash in Node.js, install the module using NPM: - -```bash -npm install imurmurhash -``` - -Then simply include it in your scripts: - -```javascript -MurmurHash3 = require('imurmurhash'); -``` - -Quick Example -------------- - -```javascript -// Create the initial hash -var hashState = MurmurHash3('string'); - -// Incrementally add text -hashState.hash('more strings'); -hashState.hash('even more strings'); - -// All calls can be chained if desired -hashState.hash('and').hash('some').hash('more'); - -// Get a result -hashState.result(); -// returns 0xe4ccfe6b -``` - -Functions ---------- - -### MurmurHash3 ([string], [seed]) -Get a hash state object, optionally initialized with the given _string_ and _seed_. _Seed_ must be a positive integer if provided. Calling this function without the `new` keyword will return a cached state object that has been reset. This is safe to use as long as the object is only used from a single thread and no other hashes are created while operating on this one. If this constraint cannot be met, you can use `new` to create a new state object. For example: - -```javascript -// Use the cached object, calling the function again will return the same -// object (but reset, so the current state would be lost) -hashState = MurmurHash3(); -... - -// Create a new object that can be safely used however you wish. Calling the -// function again will simply return a new state object, and no state loss -// will occur, at the cost of creating more objects. -hashState = new MurmurHash3(); -``` - -Both methods can be mixed however you like if you have different use cases. - ---- - -### MurmurHash3.prototype.hash (string) -Incrementally add _string_ to the hash. This can be called as many times as you want for the hash state object, including after a call to `result()`. Returns `this` so calls can be chained. - ---- - -### MurmurHash3.prototype.result () -Get the result of the hash as a 32-bit positive integer. This performs the tail and finalizer portions of the algorithm, but does not store the result in the state object. This means that it is perfectly safe to get results and then continue adding strings via `hash`. - -```javascript -// Do the whole string at once -MurmurHash3('this is a test string').result(); -// 0x70529328 - -// Do part of the string, get a result, then the other part -var m = MurmurHash3('this is a'); -m.result(); -// 0xbfc4f834 -m.hash(' test string').result(); -// 0x70529328 (same as above) -``` - ---- - -### MurmurHash3.prototype.reset ([seed]) -Reset the state object for reuse, optionally using the given _seed_ (defaults to 0 like the constructor). Returns `this` so calls can be chained. - ---- - -License (MIT) -------------- -Copyright (c) 2013 Gary Court, Jens Taylor - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.js deleted file mode 100644 index e63146a2b7..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -(function(){ - var cache; - - // Call this function without `new` to use the cached object (good for - // single-threaded environments), or with `new` to create a new object. - // - // @param {string} key A UTF-16 or ASCII string - // @param {number} seed An optional positive integer - // @return {object} A MurmurHash3 object for incremental hashing - function MurmurHash3(key, seed) { - var m = this instanceof MurmurHash3 ? this : cache; - m.reset(seed) - if (typeof key === 'string' && key.length > 0) { - m.hash(key); - } - - if (m !== this) { - return m; - } - }; - - // Incrementally add a string to this hash - // - // @param {string} key A UTF-16 or ASCII string - // @return {object} this - MurmurHash3.prototype.hash = function(key) { - var h1, k1, i, top, len; - - len = key.length; - this.len += len; - - k1 = this.k1; - i = 0; - switch (this.rem) { - case 0: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) : 0; - case 1: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0; - case 2: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0; - case 3: - k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0; - k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0; - } - - this.rem = (len + this.rem) & 3; // & 3 is same as % 4 - len -= this.rem; - if (len > 0) { - h1 = this.h1; - while (1) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - - h1 ^= k1; - h1 = (h1 << 13) | (h1 >>> 19); - h1 = (h1 * 5 + 0xe6546b64) & 0xffffffff; - - if (i >= len) { - break; - } - - k1 = ((key.charCodeAt(i++) & 0xffff)) ^ - ((key.charCodeAt(i++) & 0xffff) << 8) ^ - ((key.charCodeAt(i++) & 0xffff) << 16); - top = key.charCodeAt(i++); - k1 ^= ((top & 0xff) << 24) ^ - ((top & 0xff00) >> 8); - } - - k1 = 0; - switch (this.rem) { - case 3: k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16; - case 2: k1 ^= (key.charCodeAt(i + 1) & 0xffff) << 8; - case 1: k1 ^= (key.charCodeAt(i) & 0xffff); - } - - this.h1 = h1; - } - - this.k1 = k1; - return this; - }; - - // Get the result of this hash - // - // @return {number} The 32-bit hash - MurmurHash3.prototype.result = function() { - var k1, h1; - - k1 = this.k1; - h1 = this.h1; - - if (k1 > 0) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - h1 ^= k1; - } - - h1 ^= this.len; - - h1 ^= h1 >>> 16; - h1 = (h1 * 0xca6b + (h1 & 0xffff) * 0x85eb0000) & 0xffffffff; - h1 ^= h1 >>> 13; - h1 = (h1 * 0xae35 + (h1 & 0xffff) * 0xc2b20000) & 0xffffffff; - h1 ^= h1 >>> 16; - - return h1 >>> 0; - }; - - // Reset the hash object for reuse - // - // @param {number} seed An optional positive integer - MurmurHash3.prototype.reset = function(seed) { - this.h1 = typeof seed === 'number' ? seed : 0; - this.rem = this.k1 = this.len = 0; - return this; - }; - - // A cached object to use. This can be safely used if you're in a single- - // threaded environment, otherwise you need to create new hashes to use. - cache = new MurmurHash3(); - - if (typeof(module) != 'undefined') { - module.exports = MurmurHash3; - } else { - this.MurmurHash3 = MurmurHash3; - } -}()); diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.min.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.min.js deleted file mode 100644 index dc0ee88d6b..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -!function(){function t(h,r){var s=this instanceof t?this:e;return s.reset(r),"string"==typeof h&&h.length>0&&s.hash(h),s!==this?s:void 0}var e;t.prototype.hash=function(t){var e,h,r,s,i;switch(i=t.length,this.len+=i,h=this.k1,r=0,this.rem){case 0:h^=i>r?65535&t.charCodeAt(r++):0;case 1:h^=i>r?(65535&t.charCodeAt(r++))<<8:0;case 2:h^=i>r?(65535&t.charCodeAt(r++))<<16:0;case 3:h^=i>r?(255&t.charCodeAt(r))<<24:0,h^=i>r?(65280&t.charCodeAt(r++))>>8:0}if(this.rem=3&i+this.rem,i-=this.rem,i>0){for(e=this.h1;;){if(h=4294967295&11601*h+3432906752*(65535&h),h=h<<15|h>>>17,h=4294967295&13715*h+461832192*(65535&h),e^=h,e=e<<13|e>>>19,e=4294967295&5*e+3864292196,r>=i)break;h=65535&t.charCodeAt(r++)^(65535&t.charCodeAt(r++))<<8^(65535&t.charCodeAt(r++))<<16,s=t.charCodeAt(r++),h^=(255&s)<<24^(65280&s)>>8}switch(h=0,this.rem){case 3:h^=(65535&t.charCodeAt(r+2))<<16;case 2:h^=(65535&t.charCodeAt(r+1))<<8;case 1:h^=65535&t.charCodeAt(r)}this.h1=e}return this.k1=h,this},t.prototype.result=function(){var t,e;return t=this.k1,e=this.h1,t>0&&(t=4294967295&11601*t+3432906752*(65535&t),t=t<<15|t>>>17,t=4294967295&13715*t+461832192*(65535&t),e^=t),e^=this.len,e^=e>>>16,e=4294967295&51819*e+2246770688*(65535&e),e^=e>>>13,e=4294967295&44597*e+3266445312*(65535&e),e^=e>>>16,e>>>0},t.prototype.reset=function(t){return this.h1="number"==typeof t?t:0,this.rem=this.k1=this.len=0,this},e=new t,"undefined"!=typeof module?module.exports=t:this.MurmurHash3=t}(); \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/package.json deleted file mode 100644 index 8a93edb55a..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "imurmurhash", - "version": "0.1.4", - "description": "An incremental implementation of MurmurHash3", - "homepage": "https://github.com/jensyt/imurmurhash-js", - "main": "imurmurhash.js", - "files": [ - "imurmurhash.js", - "imurmurhash.min.js", - "package.json", - "README.md" - ], - "repository": { - "type": "git", - "url": "https://github.com/jensyt/imurmurhash-js" - }, - "bugs": { - "url": "https://github.com/jensyt/imurmurhash-js/issues" - }, - "keywords": [ - "murmur", - "murmurhash", - "murmurhash3", - "hash", - "incremental" - ], - "author": { - "name": "Jens Taylor", - "email": "jensyt@gmail.com", - "url": "https://github.com/homebrewing" - }, - "license": "MIT", - "dependencies": { - }, - "devDependencies": { - }, - "engines": { - "node": ">=0.8.19" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/index.js deleted file mode 100644 index 0d1ba9eeb8..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; -var toString = Object.prototype.toString; - -module.exports = function (x) { - var prototype; - return toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({})); -}; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/package.json deleted file mode 100644 index d331f6e816..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "is-plain-obj", - "version": "1.1.0", - "description": "Check if a value is a plain object", - "license": "MIT", - "repository": "sindresorhus/is-plain-obj", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "node test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "obj", - "object", - "is", - "check", - "test", - "type", - "plain", - "vanilla", - "pure", - "simple" - ], - "devDependencies": { - "ava": "0.0.4" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/readme.md deleted file mode 100644 index 269e56aeff..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/readme.md +++ /dev/null @@ -1,35 +0,0 @@ -# is-plain-obj [![Build Status](https://travis-ci.org/sindresorhus/is-plain-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/is-plain-obj) - -> Check if a value is a plain object - -An object is plain if it's created by either `{}`, `new Object()` or `Object.create(null)`. - - -## Install - -``` -$ npm install --save is-plain-obj -``` - - -## Usage - -```js -var isPlainObj = require('is-plain-obj'); - -isPlainObj({foo: 'bar'}); -//=> true - -isPlainObj([1, 2, 3]); -//=> false -``` - - -## Related - -- [is-obj](https://github.com/sindresorhus/is-obj) - Check if a value is an object - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/index.js deleted file mode 100644 index ca1f5e9c6a..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/index.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const pify = require('pify'); - -const defaults = { - mode: 0o777 & (~process.umask()), - fs -}; - -// https://github.com/nodejs/node/issues/8987 -// https://github.com/libuv/libuv/pull/1088 -const checkPath = pth => { - if (process.platform === 'win32') { - const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')); - - if (pathHasInvalidWinCharacters) { - const err = new Error(`Path contains invalid characters: ${pth}`); - err.code = 'EINVAL'; - throw err; - } - } -}; - -module.exports = (input, opts) => Promise.resolve().then(() => { - checkPath(input); - opts = Object.assign({}, defaults, opts); - const fsP = pify(opts.fs); - - const make = pth => { - return fsP.mkdir(pth, opts.mode) - .then(() => pth) - .catch(err => { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } - - return make(path.dirname(pth)).then(() => make(pth)); - } - - return fsP.stat(pth) - .then(stats => stats.isDirectory() ? pth : Promise.reject()) - .catch(() => { - throw err; - }); - }); - }; - - return make(path.resolve(input)); -}); - -module.exports.sync = (input, opts) => { - checkPath(input); - opts = Object.assign({}, defaults, opts); - - const make = pth => { - try { - opts.fs.mkdirSync(pth, opts.mode); - } catch (err) { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } - - make(path.dirname(pth)); - return make(pth); - } - - try { - if (!opts.fs.statSync(pth).isDirectory()) { - throw new Error(); - } - } catch (_) { - throw err; - } - } - - return pth; - }; - - return make(path.resolve(input)); -}; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/package.json deleted file mode 100644 index 83a1def18c..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "make-dir", - "version": "1.0.0", - "description": "Make a directory and its parents if needed - Think `mkdir -p`", - "license": "MIT", - "repository": "sindresorhus/make-dir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "mkdir", - "mkdirp", - "make", - "directories", - "dir", - "dirs", - "folders", - "directory", - "folder", - "path", - "parent", - "parents", - "intermediate", - "recursively", - "recursive", - "create", - "fs", - "filesystem", - "file-system" - ], - "dependencies": { - "pify": "^2.3.0" - }, - "devDependencies": { - "ava": "*", - "coveralls": "^2.13.0", - "graceful-fs": "^4.1.11", - "nyc": "^10.2.0", - "path-type": "^2.0.0", - "tempy": "^0.1.0", - "xo": "*" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/readme.md deleted file mode 100644 index 23cf232521..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/readme.md +++ /dev/null @@ -1,113 +0,0 @@ -# make-dir [![Build Status: macOS & Linux](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/e0vtt8y600w91gcs/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/make-dir/branch/master) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/make-dir/badge.svg)](https://coveralls.io/github/sindresorhus/make-dir) - -> Make a directory and its parents if needed - Think `mkdir -p` - - -## Advantages over [`mkdirp`](https://github.com/substack/node-mkdirp) - -- Promise API *(Async/await ready!)* -- Fixes many `mkdirp` issues: [#96](https://github.com/substack/node-mkdirp/pull/96) [#70](https://github.com/substack/node-mkdirp/issues/70) [#66](https://github.com/substack/node-mkdirp/issues/66) -- 100% test coverage -- CI-tested on macOS, Linux, and Windows -- Actively maintained -- Doesn't bundle a CLI - - -## Install - -``` -$ npm install --save make-dir -``` - - -## Usage - -``` -$ pwd -/Users/sindresorhus/fun -$ tree -. -``` - -```js -const makeDir = require('make-dir'); - -makeDir('unicorn/rainbow/cake').then(path => { - console.log(path); - //=> '/Users/sindresorhus/fun/unicorn/rainbow/cake' -}); -``` - -``` -$ tree -. -└── unicorn - └── rainbow - └── cake -``` - -Multiple directories: - -```js -const makeDir = require('make-dir'); - -Promise.all([ - makeDir('unicorn/rainbow') - makeDir('foo/bar') -]).then(paths => { - console.log(paths); - /* - [ - '/Users/sindresorhus/fun/unicorn/rainbow', - '/Users/sindresorhus/fun/foo/bar' - ] - */ -}); -``` - - -## API - -### makeDir(path, [options]) - -Returns a `Promise` for the path to the created directory. - -### makeDir.sync(path, [options]) - -Returns the path to the created directory. - -#### path - -Type: `string` - -Directory to create. - -#### options - -Type: `Object` - -##### mode - -Type: `integer`
-Default: `0o777 & (~process.umask())` - -Directory [permissions](https://x-team.com/blog/file-system-permissions-umask-node-js/). - -##### fs - -Type: `Object`
-Default: `require('fs')` - -Use a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). - - -## Related - -- [make-dir-cli](https://github.com/sindresorhus/make-dir-cli) - CLI for this module -- [del](https://github.com/sindresorhus/del) - Delete files and directories -- [globby](https://github.com/sindresorhus/globby) - User-friendly glob matching - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/pify b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/pify deleted file mode 120000 index 39b64b43bb..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/pify +++ /dev/null @@ -1 +0,0 @@ -../../../pify/2.3.0/node_modules/pify \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/index.js deleted file mode 100644 index 7c720ebee8..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/index.js +++ /dev/null @@ -1,68 +0,0 @@ -'use strict'; - -var processFn = function (fn, P, opts) { - return function () { - var that = this; - var args = new Array(arguments.length); - - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - - return new P(function (resolve, reject) { - args.push(function (err, result) { - if (err) { - reject(err); - } else if (opts.multiArgs) { - var results = new Array(arguments.length - 1); - - for (var i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - - resolve(results); - } else { - resolve(result); - } - }); - - fn.apply(that, args); - }); - }; -}; - -var pify = module.exports = function (obj, P, opts) { - if (typeof P !== 'function') { - opts = P; - P = Promise; - } - - opts = opts || {}; - opts.exclude = opts.exclude || [/.+Sync$/]; - - var filter = function (key) { - var match = function (pattern) { - return typeof pattern === 'string' ? key === pattern : pattern.test(key); - }; - - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - - var ret = typeof obj === 'function' ? function () { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - - return processFn(obj, P, opts).apply(this, arguments); - } : {}; - - return Object.keys(obj).reduce(function (ret, key) { - var x = obj[key]; - - ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x; - - return ret; - }, ret); -}; - -pify.all = pify; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/package.json deleted file mode 100644 index 311d1982e0..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "pify", - "version": "2.3.0", - "description": "Promisify a callback-style function", - "license": "MIT", - "repository": "sindresorhus/pify", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && ava && npm run optimization-test", - "optimization-test": "node --allow-natives-syntax optimization-test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "promise", - "promises", - "promisify", - "denodify", - "denodeify", - "callback", - "cb", - "node", - "then", - "thenify", - "convert", - "transform", - "wrap", - "wrapper", - "bind", - "to", - "async", - "es2015" - ], - "devDependencies": { - "ava": "*", - "pinkie-promise": "^1.0.0", - "v8-natives": "0.0.2", - "xo": "*" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/readme.md deleted file mode 100644 index c79ca8bf64..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/readme.md +++ /dev/null @@ -1,119 +0,0 @@ -# pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify) - -> Promisify a callback-style function - - -## Install - -``` -$ npm install --save pify -``` - - -## Usage - -```js -const fs = require('fs'); -const pify = require('pify'); - -// promisify a single function - -pify(fs.readFile)('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); - -// or promisify all methods in a module - -pify(fs).readFile('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); -``` - - -## API - -### pify(input, [promiseModule], [options]) - -Returns a promise wrapped version of the supplied function or module. - -#### input - -Type: `function`, `object` - -Callback-style function or module whose methods you want to promisify. - -#### promiseModule - -Type: `function` - -Custom promise module to use instead of the native one. - -Check out [`pinkie-promise`](https://github.com/floatdrop/pinkie-promise) if you need a tiny promise polyfill. - -#### options - -##### multiArgs - -Type: `boolean` -Default: `false` - -By default, the promisified function will only return the second argument from the callback, which works fine for most APIs. This option can be useful for modules like `request` that return multiple arguments. Turning this on will make it return an array of all arguments from the callback, excluding the error argument, instead of just the second argument. - -```js -const request = require('request'); -const pify = require('pify'); - -pify(request, {multiArgs: true})('https://sindresorhus.com').then(result => { - const [httpResponse, body] = result; -}); -``` - -##### include - -Type: `array` of (`string`|`regex`) - -Methods in a module to promisify. Remaining methods will be left untouched. - -##### exclude - -Type: `array` of (`string`|`regex`) -Default: `[/.+Sync$/]` - -Methods in a module **not** to promisify. Methods with names ending with `'Sync'` are excluded by default. - -##### excludeMain - -Type: `boolean` -Default: `false` - -By default, if given module is a function itself, this function will be promisified. Turn this option on if you want to promisify only methods of the module. - -```js -const pify = require('pify'); - -function fn() { - return true; -} - -fn.method = (data, callback) => { - setImmediate(() => { - callback(data, null); - }); -}; - -// promisify methods but not fn() -const promiseFn = pify(fn, {excludeMain: true}); - -if (promiseFn()) { - promiseFn.method('hi').then(data => { - console.log(data); - }); -} -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/LICENSE b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/LICENSE deleted file mode 100644 index 05eeeb88c2..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/README.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/README.md deleted file mode 100644 index 59ad738bca..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/README.md +++ /dev/null @@ -1,143 +0,0 @@ -# Controlling Flow: callbacks are easy - -## What's actually hard? - -- Doing a bunch of things in a specific order. -- Knowing when stuff is done. -- Handling failures. -- Breaking up functionality into parts (avoid nested inline callbacks) - - -## Common Mistakes - -- Abandoning convention and consistency. -- Putting all callbacks inline. -- Using libraries without grokking them. -- Trying to make async code look sync. - -## Define Conventions - -- Two kinds of functions: *actors* take action, *callbacks* get results. -- Essentially the continuation pattern. Resulting code *looks* similar - to fibers, but is *much* simpler to implement. -- Node works this way in the lowlevel APIs already, and it's very flexible. - -## Callbacks - -- Simple responders -- Must always be prepared to handle errors, that's why it's the first argument. -- Often inline anonymous, but not always. -- Can trap and call other callbacks with modified data, or pass errors upwards. - -## Actors - -- Last argument is a callback. -- If any error occurs, and can't be handled, pass it to the callback and return. -- Must not throw. Return value ignored. -- return x ==> return cb(null, x) -- throw er ==> return cb(er) - -```javascript -// return true if a path is either -// a symlink or a directory. -function isLinkOrDir (path, cb) { - fs.lstat(path, function (er, s) { - if (er) return cb(er) - return cb(null, s.isDirectory() || s.isSymbolicLink()) - }) -} -``` - -# asyncMap - -## Usecases - -- I have a list of 10 files, and need to read all of them, and then continue when they're all done. -- I have a dozen URLs, and need to fetch them all, and then continue when they're all done. -- I have 4 connected users, and need to send a message to all of them, and then continue when that's done. -- I have a list of n things, and I need to dosomething with all of them, in parallel, and get the results once they're all complete. - - -## Solution - -```javascript -var asyncMap = require("slide").asyncMap -function writeFiles (files, what, cb) { - asyncMap(files, function (f, cb) { - fs.writeFile(f, what, cb) - }, cb) -} -writeFiles([my, file, list], "foo", cb) -``` - -# chain - -## Usecases - -- I have to do a bunch of things, in order. Get db credentials out of a file, - read the data from the db, write that data to another file. -- If anything fails, do not continue. -- I still have to provide an array of functions, which is a lot of boilerplate, - and a pita if your functions take args like - -```javascript -function (cb) { - blah(a, b, c, cb) -} -``` - -- Results are discarded, which is a bit lame. -- No way to branch. - -## Solution - -- reduces boilerplate by converting an array of [fn, args] to an actor - that takes no arguments (except cb) -- A bit like Function#bind, but tailored for our use-case. -- bindActor(obj, "method", a, b, c) -- bindActor(fn, a, b, c) -- bindActor(obj, fn, a, b, c) -- branching, skipping over falsey arguments - -```javascript -chain([ - doThing && [thing, a, b, c] -, isFoo && [doFoo, "foo"] -, subChain && [chain, [one, two]] -], cb) -``` - -- tracking results: results are stored in an optional array passed as argument, - last result is always in results[results.length - 1]. -- treat chain.first and chain.last as placeholders for the first/last - result up until that point. - - -## Non-trivial example - -- Read number files in a directory -- Add the results together -- Ping a web service with the result -- Write the response to a file -- Delete the number files - -```javascript -var chain = require("slide").chain -function myProgram (cb) { - var res = [], last = chain.last, first = chain.first - chain([ - [fs, "readdir", "the-directory"] - , [readFiles, "the-directory", last] - , [sum, last] - , [ping, "POST", "example.com", 80, "/foo", last] - , [fs, "writeFile", "result.txt", last] - , [rmFiles, "./the-directory", first] - ], res, cb) -} -``` - -# Conclusion: Convention Profits - -- Consistent API from top to bottom. -- Sneak in at any point to inject functionality. Testable, reusable, ... -- When ruby and python users whine, you can smile condescendingly. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/index.js deleted file mode 100644 index 0a9277f6ee..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=require("./lib/slide") diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/package.json deleted file mode 100644 index 7799184791..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "slide", - "version": "1.1.6", - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "contributors": [ - "S. Sriram (http://www.565labs.com)" - ], - "description": "A flow control lib small enough to fit on in a slide presentation. Derived live at Oak.JS", - "main": "./lib/slide.js", - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "*" - }, - "repository": { - "type": "git", - "url": "git://github.com/isaacs/slide-flow-control.git" - }, - "license": "ISC" -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/is-plain-obj b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/is-plain-obj deleted file mode 120000 index 72bf97d869..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/is-plain-obj +++ /dev/null @@ -1 +0,0 @@ -../../../is-plain-obj/1.1.0/node_modules/is-plain-obj \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/index.js deleted file mode 100644 index f75a0e0535..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/index.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; -var isPlainObj = require('is-plain-obj'); - -module.exports = function (obj, opts) { - if (!isPlainObj(obj)) { - throw new TypeError('Expected a plain object'); - } - - opts = opts || {}; - - // DEPRECATED - if (typeof opts === 'function') { - opts = {compare: opts}; - } - - var deep = opts.deep; - var seenInput = []; - var seenOutput = []; - - var sortKeys = function (x) { - var seenIndex = seenInput.indexOf(x); - - if (seenIndex !== -1) { - return seenOutput[seenIndex]; - } - - var ret = {}; - var keys = Object.keys(x).sort(opts.compare); - - seenInput.push(x); - seenOutput.push(ret); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var val = x[key]; - - ret[key] = deep && isPlainObj(val) ? sortKeys(val) : val; - } - - return ret; - }; - - return sortKeys(obj); -}; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/package.json deleted file mode 100644 index dff0653827..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "sort-keys", - "version": "1.1.2", - "description": "Sort the keys of an object", - "license": "MIT", - "repository": "sindresorhus/sort-keys", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && mocha" - }, - "files": [ - "index.js" - ], - "keywords": [ - "sort", - "object", - "keys", - "obj", - "key", - "stable", - "deterministic", - "deep", - "recursive", - "recursively" - ], - "dependencies": { - "is-plain-obj": "^1.0.0" - }, - "devDependencies": { - "mocha": "*", - "xo": "*" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/readme.md deleted file mode 100644 index a671ffb3de..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/readme.md +++ /dev/null @@ -1,60 +0,0 @@ -# sort-keys [![Build Status](https://travis-ci.org/sindresorhus/sort-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/sort-keys) - -> Sort the keys of an object - -Useful to get a deterministically ordered object, as the order of keys can vary between engines. - - -## Install - -``` -$ npm install --save sort-keys -``` - - -## Usage - -```js -const sortKeys = require('sort-keys'); - -sortKeys({c: 0, a: 0, b: 0}); -//=> {a: 0, b: 0, c: 0} - -sortKeys({b: {b: 0, a: 0}, a: 0}, {deep: true}); -//=> {a: 0, b: {a: 0, b: 0}} - -sortKeys({c: 0, a: 0, b: 0}, { - compare: (a, b) => -a.localeCompare(b) -}); -//=> {c: 0, b: 0, a: 0} -``` - - -## API - -### sortKeys(input, [options]) - -Returns a new object with sorted keys. - -#### input - -Type: `Object` - -#### options - -##### deep - -Type: `boolean` - -Recursively sort keys. - -##### compare - -Type: `Function` - -[Compare function.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/is-plain-obj b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/is-plain-obj deleted file mode 120000 index 72bf97d869..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/is-plain-obj +++ /dev/null @@ -1 +0,0 @@ -../../../is-plain-obj/1.1.0/node_modules/is-plain-obj \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/index.js deleted file mode 100644 index 53489d7888..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/index.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; -const isPlainObj = require('is-plain-obj'); - -module.exports = (obj, opts) => { - if (!isPlainObj(obj)) { - throw new TypeError('Expected a plain object'); - } - - opts = opts || {}; - - // DEPRECATED - if (typeof opts === 'function') { - throw new TypeError('Specify the compare function as an option instead'); - } - - const deep = opts.deep; - const seenInput = []; - const seenOutput = []; - - const sortKeys = x => { - const seenIndex = seenInput.indexOf(x); - - if (seenIndex !== -1) { - return seenOutput[seenIndex]; - } - - const ret = {}; - const keys = Object.keys(x).sort(opts.compare); - - seenInput.push(x); - seenOutput.push(ret); - - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const val = x[key]; - - if (deep && Array.isArray(val)) { - const retArr = []; - - for (let j = 0; j < val.length; j++) { - retArr[j] = isPlainObj(val[j]) ? sortKeys(val[j]) : val[j]; - } - - ret[key] = retArr; - continue; - } - - ret[key] = deep && isPlainObj(val) ? sortKeys(val) : val; - } - - return ret; - }; - - return sortKeys(obj); -}; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/license deleted file mode 100644 index e7af2f7710..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/package.json deleted file mode 100644 index 3da9c7659d..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "sort-keys", - "version": "2.0.0", - "description": "Sort the keys of an object", - "license": "MIT", - "repository": "sindresorhus/sort-keys", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "sort", - "object", - "keys", - "obj", - "key", - "stable", - "deterministic", - "deep", - "recursive", - "recursively" - ], - "dependencies": { - "is-plain-obj": "^1.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/readme.md deleted file mode 100644 index a671ffb3de..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/readme.md +++ /dev/null @@ -1,60 +0,0 @@ -# sort-keys [![Build Status](https://travis-ci.org/sindresorhus/sort-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/sort-keys) - -> Sort the keys of an object - -Useful to get a deterministically ordered object, as the order of keys can vary between engines. - - -## Install - -``` -$ npm install --save sort-keys -``` - - -## Usage - -```js -const sortKeys = require('sort-keys'); - -sortKeys({c: 0, a: 0, b: 0}); -//=> {a: 0, b: 0, c: 0} - -sortKeys({b: {b: 0, a: 0}, a: 0}, {deep: true}); -//=> {a: 0, b: {a: 0, b: 0}} - -sortKeys({c: 0, a: 0, b: 0}, { - compare: (a, b) => -a.localeCompare(b) -}); -//=> {c: 0, b: 0, a: 0} -``` - - -## API - -### sortKeys(input, [options]) - -Returns a new object with sorted keys. - -#### input - -Type: `Object` - -#### options - -##### deep - -Type: `boolean` - -Recursively sort keys. - -##### compare - -Type: `Function` - -[Compare function.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/graceful-fs b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/graceful-fs deleted file mode 120000 index 4db8bdb9f8..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/graceful-fs +++ /dev/null @@ -1 +0,0 @@ -../../../graceful-fs/4.1.11/node_modules/graceful-fs \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/imurmurhash b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/imurmurhash deleted file mode 120000 index 9bfdc15b1e..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/imurmurhash +++ /dev/null @@ -1 +0,0 @@ -../../../imurmurhash/0.1.4/node_modules/imurmurhash \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/slide b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/slide deleted file mode 120000 index e4aacf8846..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/slide +++ /dev/null @@ -1 +0,0 @@ -../../../slide/1.1.6/node_modules/slide \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/LICENSE b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/LICENSE deleted file mode 100644 index 95e65a7706..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/LICENSE +++ /dev/null @@ -1,6 +0,0 @@ -Copyright (c) 2015, Rebecca Turner - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/README.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/README.md deleted file mode 100644 index 63f00420ca..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/README.md +++ /dev/null @@ -1,47 +0,0 @@ -write-file-atomic ------------------ - -This is an extension for node's `fs.writeFile` that makes its operation -atomic and allows you set ownership (uid/gid of the file). - -### var writeFileAtomic = require('write-file-atomic')
writeFileAtomic(filename, data, [options], callback) - -* filename **String** -* data **String** | **Buffer** -* options **Object** - * chown **Object** - * uid **Number** - * gid **Number** - * encoding **String** | **Null** default = 'utf8' - * fsync **Boolean** default = true - * mode **Number** default = 438 (aka 0666 in Octal) -callback **Function** - -Atomically and asynchronously writes data to a file, replacing the file if it already -exists. data can be a string or a buffer. - -The file is initially named `filename + "." + murmurhex(__filename, process.pid, ++invocations)`. -If writeFile completes successfully then, if passed the **chown** option it will change -the ownership of the file. Finally it renames the file back to the filename you specified. If -it encounters errors at any of these steps it will attempt to unlink the temporary file and then -pass the error back to the caller. - -If provided, the **chown** option requires both **uid** and **gid** properties or else -you'll get an error. - -The **encoding** option is ignored if **data** is a buffer. It defaults to 'utf8'. - -If the **fsync** option is **false**, writeFile will skip the final fsync call. - -Example: - -```javascript -writeFileAtomic('message.txt', 'Hello Node', {chown:{uid:100,gid:50}}, function (err) { - if (err) throw err; - console.log('It\'s saved!'); -}); -``` - -### var writeFileAtomicSync = require('write-file-atomic').sync
writeFileAtomicSync(filename, data, [options]) - -The synchronous version of **writeFileAtomic**. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/index.js deleted file mode 100644 index c677ee9622..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/index.js +++ /dev/null @@ -1,134 +0,0 @@ -'use strict' -module.exports = writeFile -module.exports.sync = writeFileSync -module.exports._getTmpname = getTmpname // for testing - -var fs = require('graceful-fs') -var chain = require('slide').chain -var MurmurHash3 = require('imurmurhash') - -var invocations = 0 -function getTmpname (filename) { - return filename + '.' + - MurmurHash3(__filename) - .hash(String(process.pid)) - .hash(String(++invocations)) - .result() -} - -function writeFile (filename, data, options, callback) { - if (options instanceof Function) { - callback = options - options = null - } - if (!options) options = {} - fs.realpath(filename, function (_, realname) { - _writeFile(realname || filename, data, options, callback) - }) -} -function _writeFile (filename, data, options, callback) { - var tmpfile = getTmpname(filename) - - if (options.mode && options.chown) { - return thenWriteFile() - } else { - // Either mode or chown is not explicitly set - // Default behavior is to copy it from original file - return fs.stat(filename, function (err, stats) { - if (err || !stats) return thenWriteFile() - - options = Object.assign({}, options) - if (!options.mode) { - options.mode = stats.mode - } - if (!options.chown && process.getuid) { - options.chown = { uid: stats.uid, gid: stats.gid } - } - return thenWriteFile() - }) - } - - function thenWriteFile () { - chain([ - [writeFileAsync, tmpfile, data, options.mode, options.encoding || 'utf8'], - options.chown && [fs, fs.chown, tmpfile, options.chown.uid, options.chown.gid], - options.mode && [fs, fs.chmod, tmpfile, options.mode], - [fs, fs.rename, tmpfile, filename] - ], function (err) { - err ? fs.unlink(tmpfile, function () { callback(err) }) - : callback() - }) - } - - // doing this instead of `fs.writeFile` in order to get the ability to - // call `fsync`. - function writeFileAsync (file, data, mode, encoding, cb) { - fs.open(file, 'w', options.mode, function (err, fd) { - if (err) return cb(err) - if (Buffer.isBuffer(data)) { - return fs.write(fd, data, 0, data.length, 0, syncAndClose) - } else if (data != null) { - return fs.write(fd, String(data), 0, String(encoding), syncAndClose) - } else { - return syncAndClose() - } - function syncAndClose (err) { - if (err) return cb(err) - if (options.fsync !== false) { - fs.fsync(fd, function (err) { - if (err) return cb(err) - fs.close(fd, cb) - }) - } else { - fs.close(fd, cb) - } - } - }) - } -} - -function writeFileSync (filename, data, options) { - if (!options) options = {} - try { - filename = fs.realpathSync(filename) - } catch (ex) { - // it's ok, it'll happen on a not yet existing file - } - var tmpfile = getTmpname(filename) - - try { - if (!options.mode || !options.chown) { - // Either mode or chown is not explicitly set - // Default behavior is to copy it from original file - try { - var stats = fs.statSync(filename) - options = Object.assign({}, options) - if (!options.mode) { - options.mode = stats.mode - } - if (!options.chown && process.getuid) { - options.chown = { uid: stats.uid, gid: stats.gid } - } - } catch (ex) { - // ignore stat errors - } - } - - var fd = fs.openSync(tmpfile, 'w', options.mode) - if (Buffer.isBuffer(data)) { - fs.writeSync(fd, data, 0, data.length, 0) - } else if (data != null) { - fs.writeSync(fd, String(data), 0, String(options.encoding || 'utf8')) - } - if (options.fsync !== false) { - fs.fsyncSync(fd) - } - fs.closeSync(fd) - if (options.chown) fs.chownSync(tmpfile, options.chown.uid, options.chown.gid) - if (options.mode) fs.chmodSync(tmpfile, options.mode) - fs.renameSync(tmpfile, filename) - } catch (err) { - try { fs.unlinkSync(tmpfile) } catch (e) {} - throw err - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/package.json deleted file mode 100644 index b43cbe09ff..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "write-file-atomic", - "version": "2.1.0", - "description": "Write files in an atomic fashion w/configurable ownership", - "main": "index.js", - "scripts": { - "test": "standard && tap --100 test/*.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:iarna/write-file-atomic.git" - }, - "keywords": [ - "writeFile", - "atomic" - ], - "author": "Rebecca Turner (http://re-becca.org)", - "license": "ISC", - "bugs": { - "url": "https://github.com/iarna/write-file-atomic/issues" - }, - "homepage": "https://github.com/iarna/write-file-atomic", - "dependencies": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - }, - "devDependencies": { - "mkdirp": "^0.5.1", - "require-inject": "^1.4.0", - "rimraf": "^2.5.4", - "standard": "^10.0.2", - "tap": "^10.3.2" - }, - "files": [ - "index.js" - ] -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/detect-indent b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/detect-indent deleted file mode 120000 index abe8c4d3f2..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/detect-indent +++ /dev/null @@ -1 +0,0 @@ -../../../detect-indent/5.0.0/node_modules/detect-indent \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/graceful-fs b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/graceful-fs deleted file mode 120000 index 4db8bdb9f8..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/graceful-fs +++ /dev/null @@ -1 +0,0 @@ -../../../graceful-fs/4.1.11/node_modules/graceful-fs \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/make-dir b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/make-dir deleted file mode 120000 index f47c1359b9..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/make-dir +++ /dev/null @@ -1 +0,0 @@ -../../../make-dir/1.0.0/node_modules/make-dir \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/pify b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/pify deleted file mode 120000 index 39b64b43bb..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/pify +++ /dev/null @@ -1 +0,0 @@ -../../../pify/2.3.0/node_modules/pify \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/sort-keys b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/sort-keys deleted file mode 120000 index c3d04f44c7..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/sort-keys +++ /dev/null @@ -1 +0,0 @@ -../../../sort-keys/1.1.2/node_modules/sort-keys \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-file-atomic b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-file-atomic deleted file mode 120000 index 65010c6645..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-file-atomic +++ /dev/null @@ -1 +0,0 @@ -../../../write-file-atomic/2.1.0/node_modules/write-file-atomic \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/index.js deleted file mode 100644 index cbd7e706a0..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/index.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; -const path = require('path'); -const fs = require('graceful-fs'); -const writeFileAtomic = require('write-file-atomic'); -const sortKeys = require('sort-keys'); -const makeDir = require('make-dir'); -const pify = require('pify'); -const detectIndent = require('detect-indent'); - -const init = (fn, fp, data, opts) => { - if (!fp) { - throw new TypeError('Expected a filepath'); - } - - if (data === undefined) { - throw new TypeError('Expected data to stringify'); - } - - opts = Object.assign({ - indent: '\t', - sortKeys: false - }, opts); - - if (opts.sortKeys) { - data = sortKeys(data, { - deep: true, - compare: typeof opts.sortKeys === 'function' && opts.sortKeys - }); - } - - return fn(fp, data, opts); -}; - -const readFile = fp => pify(fs.readFile)(fp, 'utf8').catch(() => {}); - -const main = (fp, data, opts) => { - return (opts.detectIndent ? readFile(fp) : Promise.resolve()) - .then(str => { - const indent = str ? detectIndent(str).indent : opts.indent; - const json = JSON.stringify(data, opts.replacer, indent); - - return pify(writeFileAtomic)(fp, `${json}\n`, {mode: opts.mode}); - }); -}; - -const mainSync = (fp, data, opts) => { - let indent = opts.indent; - - if (opts.detectIndent) { - try { - const file = fs.readFileSync(fp, 'utf8'); - indent = detectIndent(file).indent; - } catch (err) { - if (err.code !== 'ENOENT') { - throw err; - } - } - } - - const json = JSON.stringify(data, opts.replacer, indent); - - return writeFileAtomic.sync(fp, `${json}\n`, {mode: opts.mode}); -}; - -module.exports = (fp, data, opts) => { - return makeDir(path.dirname(fp), {fs}) - .then(() => init(main, fp, data, opts)); -}; - -module.exports.sync = (fp, data, opts) => { - makeDir.sync(path.dirname(fp), {fs}); - init(mainSync, fp, data, opts); -}; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/license deleted file mode 100644 index e7af2f7710..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/package.json deleted file mode 100644 index 51f6a1d43c..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "write-json-file", - "version": "2.2.0", - "description": "Stringify and write JSON to a file atomically", - "license": "MIT", - "repository": "sindresorhus/write-json-file", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "write", - "json", - "stringify", - "file", - "fs", - "graceful", - "stable", - "sort", - "newline", - "indent", - "atomic", - "atomically" - ], - "dependencies": { - "detect-indent": "^5.0.0", - "graceful-fs": "^4.1.2", - "make-dir": "^1.0.0", - "pify": "^2.0.0", - "sort-keys": "^1.1.1", - "write-file-atomic": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "tempfile": "^2.0.0", - "xo": "*" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/readme.md deleted file mode 100644 index ab9162889a..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/readme.md +++ /dev/null @@ -1,83 +0,0 @@ -# write-json-file [![Build Status](https://travis-ci.org/sindresorhus/write-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/write-json-file) - -> Stringify and write JSON to a file [atomically](https://github.com/npm/write-file-atomic) - -Creates directories for you as needed. - - -## Install - -``` -$ npm install --save write-json-file -``` - - -## Usage - -```js -const writeJsonFile = require('write-json-file'); - -writeJsonFile('foo.json', {foo: true}).then(() => { - console.log('done'); -}); -``` - - -## API - -### writeJsonFile(filepath, data, [options]) - -Returns a `Promise`. - -### writeJsonFile.sync(filepath, data, [options]) - -#### options - -Type: `Object` - -##### indent - -Type: `string` `number`
-Default: `\t` - -Indentation as a string or number of spaces.
-Pass in `null` for no formatting. - -##### detectIndent - -Type: `boolean`
-Default: `false` - -Detect indentation automatically if the file exists. - -##### sortKeys - -Type: `boolean` `function`
-Default: `false` - -Sort the keys recursively.
-Optionally pass in a [`compare`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) function. - -##### replacer - -Type: `function` - -Passed into [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter). - -##### mode - -Type: `number`
-Default: `0o666` - -[Mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file. - - -## Related - -- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file -- [make-dir](https://github.com/sindresorhus/make-dir) - Make a directory and its parents if needed - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/sort-keys b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/sort-keys deleted file mode 120000 index 5068a4a28c..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/sort-keys +++ /dev/null @@ -1 +0,0 @@ -../../../sort-keys/2.0.0/node_modules/sort-keys \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-json-file b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-json-file deleted file mode 120000 index d0a27707d4..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-json-file +++ /dev/null @@ -1 +0,0 @@ -../../../write-json-file/2.2.0/node_modules/write-json-file \ No newline at end of file diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/index.js b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/index.js deleted file mode 100644 index 981cc0b547..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/index.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; -const path = require('path'); -const writeJsonFile = require('write-json-file'); -const sortKeys = require('sort-keys'); - -const opts = {detectIndent: true}; - -const dependencyKeys = new Set([ - 'dependencies', - 'devDependencies', - 'optionalDependencies', - 'peerDependencies' -]); - -function normalize(pkg) { - const ret = {}; - - for (const key of Object.keys(pkg)) { - if (!dependencyKeys.has(key)) { - ret[key] = pkg[key]; - } else if (Object.keys(pkg[key]).length !== 0) { - ret[key] = sortKeys(pkg[key]); - } - } - - return ret; -} - -module.exports = (fp, data) => { - if (typeof fp !== 'string') { - data = fp; - fp = '.'; - } - - fp = path.basename(fp) === 'package.json' ? fp : path.join(fp, 'package.json'); - - data = normalize(data); - - return writeJsonFile(fp, data, opts); -}; - -module.exports.sync = (fp, data) => { - if (typeof fp !== 'string') { - data = fp; - fp = '.'; - } - - fp = path.basename(fp) === 'package.json' ? fp : path.join(fp, 'package.json'); - - data = normalize(data); - - writeJsonFile.sync(fp, data, opts); -}; diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/license b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/license deleted file mode 100644 index e7af2f7710..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/package.json b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/package.json deleted file mode 100644 index c0ca39a2ce..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "write-pkg", - "version": "3.1.0", - "description": "Write a package.json file", - "license": "MIT", - "repository": "sindresorhus/write-pkg", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "json", - "write", - "stringify", - "file", - "fs", - "graceful", - "pkg", - "package" - ], - "dependencies": { - "sort-keys": "^2.0.0", - "write-json-file": "^2.2.0" - }, - "devDependencies": { - "ava": "*", - "read-pkg": "^2.0.0", - "tempfile": "^2.0.0", - "xo": "*" - } -} diff --git a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/readme.md b/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/readme.md deleted file mode 100644 index a10a8b6d92..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/readme.md +++ /dev/null @@ -1,59 +0,0 @@ -# write-pkg [![Build Status](https://travis-ci.org/sindresorhus/write-pkg.svg?branch=master)](https://travis-ci.org/sindresorhus/write-pkg) - -> Write a `package.json` file - -Writes atomically and creates directories for you as needed. Sorts dependencies when writing. Preserves the indentation if the file already exists. - - -## Install - -``` -$ npm install write-pkg -``` - - -## Usage - -```js -const path = require('path'); -const writePkg = require('write-pkg'); - -writePkg({foo: true}).then(() => { - console.log('done'); -}); - -writePkg(__dirname, {foo: true}).then(() => { - console.log('done'); -}); - -writePkg(path.join('unicorn', 'package.json'), {foo: true}).then(() => { - console.log('done'); -}); -``` - - -## API - -### writePkg([path], data) - -Returns a `Promise`. - -### writePkg.sync([path], data) - -#### path - -Type: `string`
-Default: `process.cwd()` - -Path to where the `package.json` file should be written or its directory. - - -## Related - -- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a `package.json` file -- [write-json-file](https://github.com/sindresorhus/write-json-file) - Stringify and write JSON to a file atomically - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/dependencies-hierarchy/example/node_modules/.shrinkwrap.yaml b/packages/dependencies-hierarchy/example/node_modules/.shrinkwrap.yaml deleted file mode 100644 index 607298fd8f..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/.shrinkwrap.yaml +++ /dev/null @@ -1,63 +0,0 @@ -dependencies: - write-pkg: 3.1.0 -packages: - /detect-indent/5.0.0: - resolution: - integrity: sha1-OHHMCmoALow+Wzz38zYmRnXwa50= - /graceful-fs/4.1.11: - resolution: - integrity: sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg= - /imurmurhash/0.1.4: - resolution: - integrity: sha1-khi5srkoojixPcT7a21XbyMUU+o= - /is-plain-obj/1.1.0: - resolution: - integrity: sha1-caUMhCnfync8kqOQpKA7OfzVHT4= - /make-dir/1.0.0: - dependencies: - pify: 2.3.0 - resolution: - integrity: sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg= - /pify/2.3.0: - resolution: - integrity: sha1-7RQaasBDqEnqWISY59yosVMw6Qw= - /slide/1.1.6: - resolution: - integrity: sha1-VusCfWW00tzmyy4tMsTUr8nh1wc= - /sort-keys/1.1.2: - dependencies: - is-plain-obj: 1.1.0 - resolution: - integrity: sha1-RBttTTRnmPG05J6JIK37oOVD+a0= - /sort-keys/2.0.0: - dependencies: - is-plain-obj: 1.1.0 - resolution: - integrity: sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg= - /write-file-atomic/2.1.0: - dependencies: - graceful-fs: 4.1.11 - imurmurhash: 0.1.4 - slide: 1.1.6 - resolution: - integrity: sha512-0TZ20a+xcIl4u0+Mj5xDH2yOWdmQiXlKf9Hm+TgDXjTMsEYb+gDrmb8e8UNAzMCitX8NBqG4Z/FUQIyzv/R1JQ== - /write-json-file/2.2.0: - dependencies: - detect-indent: 5.0.0 - graceful-fs: 4.1.11 - make-dir: 1.0.0 - pify: 2.3.0 - sort-keys: 1.1.2 - write-file-atomic: 2.1.0 - resolution: - integrity: sha1-UYYlBruzthnu+reFnx/WxtBTCHY= - /write-pkg/3.1.0: - dependencies: - sort-keys: 2.0.0 - write-json-file: 2.2.0 - resolution: - integrity: sha1-AwqZlMyZk9JbTnWp8aGSNgcpHOk= -registry: 'https://registry.npmjs.org/' -shrinkwrapVersion: 3 -specifiers: - write-pkg: ^3.1.0 diff --git a/packages/dependencies-hierarchy/example/node_modules/write-pkg b/packages/dependencies-hierarchy/example/node_modules/write-pkg deleted file mode 120000 index 522c419360..0000000000 --- a/packages/dependencies-hierarchy/example/node_modules/write-pkg +++ /dev/null @@ -1 +0,0 @@ -.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg \ No newline at end of file diff --git a/packages/dependencies-hierarchy/tsconfig.json b/packages/dependencies-hierarchy/tsconfig.json deleted file mode 100644 index 0e63d28d8b..0000000000 --- a/packages/dependencies-hierarchy/tsconfig.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../constants" - }, - { - "path": "../dependency-path" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../modules-yaml" - }, - { - "path": "../normalize-registries" - }, - { - "path": "../read-modules-dir" - }, - { - "path": "../read-package-json" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/find-workspace-packages/tsconfig.json b/packages/find-workspace-packages/tsconfig.json deleted file mode 100644 index 02127c87a2..0000000000 --- a/packages/find-workspace-packages/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../cli-utils" - }, - { - "path": "../constants" - }, - { - "path": "../find-packages" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/hoist/tsconfig.json b/packages/hoist/tsconfig.json deleted file mode 100644 index 73fa89452b..0000000000 --- a/packages/hoist/tsconfig.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../constants" - }, - { - "path": "../dependency-path" - }, - { - "path": "../link-bins" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../lockfile-walker" - }, - { - "path": "../matcher" - }, - { - "path": "../symlink-dependency" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/hooks.read-package-hook/tsconfig.json b/packages/hooks.read-package-hook/tsconfig.json deleted file mode 100644 index 2cdd506236..0000000000 --- a/packages/hooks.read-package-hook/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../matcher" - }, - { - "path": "../parse-overrides" - }, - { - "path": "../parse-wanted-dependency" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/license-scanner/tsconfig.json b/packages/license-scanner/tsconfig.json deleted file mode 100644 index 3c3d18c8ec..0000000000 --- a/packages/license-scanner/tsconfig.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../cafs" - }, - { - "path": "../constants" - }, - { - "path": "../dependency-path" - }, - { - "path": "../directory-fetcher" - }, - { - "path": "../error" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../lockfile-walker" - }, - { - "path": "../package-is-installable" - }, - { - "path": "../read-package-json" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/link-bins/test/fixtures/dir-with-no-manifest/node_modules/dir-with-no-manifest/.gitkeep b/packages/link-bins/test/fixtures/dir-with-no-manifest/node_modules/dir-with-no-manifest/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/list/example/.gitignore b/packages/list/example/.gitignore deleted file mode 100644 index cf4bab9ddd..0000000000 --- a/packages/list/example/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!node_modules diff --git a/packages/list/example/node_modules/.modules.yaml b/packages/list/example/node_modules/.modules.yaml deleted file mode 100644 index 3b5bec2d1d..0000000000 --- a/packages/list/example/node_modules/.modules.yaml +++ /dev/null @@ -1,4 +0,0 @@ -layoutVersion: 1 -packageManager: pnpm@1.4.0 -skipped: [] -store: /home/zkochan/.pnpm-store/2 diff --git a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/index.js b/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/index.js deleted file mode 100644 index eda0b1b1aa..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/index.js +++ /dev/null @@ -1,122 +0,0 @@ -'use strict'; - -// detect either spaces or tabs but not both to properly handle tabs -// for indentation and spaces for alignment -const INDENT_RE = /^(?:( )+|\t+)/; - -function getMostUsed(indents) { - let result = 0; - let maxUsed = 0; - let maxWeight = 0; - - for (const entry of indents) { - // TODO: use destructuring when targeting Node.js 6 - const key = entry[0]; - const val = entry[1]; - - const u = val[0]; - const w = val[1]; - - if (u > maxUsed || (u === maxUsed && w > maxWeight)) { - maxUsed = u; - maxWeight = w; - result = Number(key); - } - } - - return result; -} - -module.exports = str => { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - // used to see if tabs or spaces are the most used - let tabs = 0; - let spaces = 0; - - // remember the size of previous line's indentation - let prev = 0; - - // remember how many indents/unindents as occurred for a given size - // and how much lines follow a given indentation - // - // indents = { - // 3: [1, 0], - // 4: [1, 5], - // 5: [1, 0], - // 12: [1, 0], - // } - const indents = new Map(); - - // pointer to the array of last used indent - let current; - - // whether the last action was an indent (opposed to an unindent) - let isIndent; - - for (const line of str.split(/\n/g)) { - if (!line) { - // ignore empty lines - continue; - } - - let indent; - const matches = line.match(INDENT_RE); - - if (matches) { - indent = matches[0].length; - - if (matches[1]) { - spaces++; - } else { - tabs++; - } - } else { - indent = 0; - } - - const diff = indent - prev; - prev = indent; - - if (diff) { - // an indent or unindent has been detected - - isIndent = diff > 0; - - current = indents.get(isIndent ? diff : -diff); - - if (current) { - current[0]++; - } else { - current = [1, 0]; - indents.set(diff, current); - } - } else if (current) { - // if the last action was an indent, increment the weight - current[1] += Number(isIndent); - } - } - - const amount = getMostUsed(indents); - - let type; - let indent; - if (!amount) { - type = null; - indent = ''; - } else if (spaces >= tabs) { - type = 'space'; - indent = ' '.repeat(amount); - } else { - type = 'tab'; - indent = '\t'.repeat(amount); - } - - return { - amount, - type, - indent - }; -}; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/license b/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/package.json b/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/package.json deleted file mode 100644 index 81c7edf311..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "detect-indent", - "version": "5.0.0", - "description": "Detect the indentation of code", - "license": "MIT", - "repository": "sindresorhus/detect-indent", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "indent", - "indentation", - "detect", - "infer", - "identify", - "code", - "string", - "text", - "source", - "space", - "tab" - ], - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "xo": { - "esnext": true - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/readme.md deleted file mode 100644 index 3aeb1badf7..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/detect-indent/5.0.0/node_modules/detect-indent/readme.md +++ /dev/null @@ -1,111 +0,0 @@ -# detect-indent [![Build Status](https://travis-ci.org/sindresorhus/detect-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/detect-indent) - -> Detect the indentation of code - -Pass in a string of any kind of text and get the indentation. - - -## Use cases - -- Persisting the indentation when modifying a file. -- Have new content match the existing indentation. -- Setting the right indentation in your editor. - - -## Install - -``` -$ npm install --save detect-indent -``` - - -## Usage - -Here we modify a JSON file while persisting the indentation: - -```js -const fs = require('fs'); -const detectIndent = require('detect-indent'); - -/* -{ - "ilove": "pizza" -} -*/ -const file = fs.readFileSync('foo.json', 'utf8'); - -// tries to detect the indentation and falls back to a default if it can't -const indent = detectIndent(file).indent || ' '; - -const json = JSON.parse(file); - -json.ilove = 'unicorns'; - -fs.writeFileSync('foo.json', JSON.stringify(json, null, indent)); -/* -{ - "ilove": "unicorns" -} -*/ -``` - - -## API - -Accepts a string and returns an object with stats about the indentation: - -* `amount` {number} - Amount of indentation, for example `2` -* `type` {string|null} - Type of indentation. Possible values are `tab`, `space` or `null` if no indentation is detected -* `indent` {string} - Actual indentation - - -## Algorithm - -The current algorithm looks for the most common difference between two consecutive non-empty lines. - -In the following example, even if the 4-space indentation is used 3 times whereas the 2-space one is used 2 times, it is detected as less used because there were only 2 differences with this value instead of 4 for the 2-space indentation: - -```css -html { - box-sizing: border-box; -} - -body { - background: gray; -} - -p { - line-height: 1.3em; - margin-top: 1em; - text-indent: 2em; -} -``` - -[Source.](https://medium.com/@heatherarthur/detecting-code-indentation-eff3ed0fb56b#3918) - -Furthermore, if there are more than one most used difference, the indentation with the most lines is selected. - -In the following example, the indentation is detected as 4-spaces: - -```css -body { - background: gray; -} - -p { - line-height: 1.3em; - margin-top: 1em; - text-indent: 2em; -} -``` - - -## Related - -- [detect-indent-cli](https://github.com/sindresorhus/detect-indent-cli) - CLI for this module -- [detect-newline](https://github.com/sindresorhus/detect-newline) - Detect the dominant newline character of a string - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/LICENSE b/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/LICENSE deleted file mode 100644 index 9d2c803696..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/README.md b/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/README.md deleted file mode 100644 index 5273a50ad6..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# graceful-fs - -graceful-fs functions as a drop-in replacement for the fs module, -making various improvements. - -The improvements are meant to normalize behavior across different -platforms and environments, and to make filesystem access more -resilient to errors. - -## Improvements over [fs module](https://nodejs.org/api/fs.html) - -* Queues up `open` and `readdir` calls, and retries them once - something closes if there is an EMFILE error from too many file - descriptors. -* fixes `lchmod` for Node versions prior to 0.6.2. -* implements `fs.lutimes` if possible. Otherwise it becomes a noop. -* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or - `lchown` if the user isn't root. -* makes `lchmod` and `lchown` become noops, if not available. -* retries reading a file if `read` results in EAGAIN error. - -On Windows, it retries renaming a file for up to one second if `EACCESS` -or `EPERM` error occurs, likely because antivirus software has locked -the directory. - -## USAGE - -```javascript -// use just like fs -var fs = require('graceful-fs') - -// now go and do stuff with it... -fs.readFileSync('some-file-or-whatever') -``` - -## Global Patching - -If you want to patch the global fs module (or any other fs-like -module) you can do this: - -```javascript -// Make sure to read the caveat below. -var realFs = require('fs') -var gracefulFs = require('graceful-fs') -gracefulFs.gracefulify(realFs) -``` - -This should only ever be done at the top-level application layer, in -order to delay on EMFILE errors from any fs-using dependencies. You -should **not** do this in a library, because it can cause unexpected -delays in other parts of the program. - -## Changes - -This module is fairly stable at this point, and used by a lot of -things. That being said, because it implements a subtle behavior -change in a core part of the node API, even modest changes can be -extremely breaking, and the versioning is thus biased towards -bumping the major when in doubt. - -The main change between major versions has been switching between -providing a fully-patched `fs` module vs monkey-patching the node core -builtin, and the approach by which a non-monkey-patched `fs` was -created. - -The goal is to trade `EMFILE` errors for slower fs operations. So, if -you try to open a zillion files, rather than crashing, `open` -operations will be queued up and wait for something else to `close`. - -There are advantages to each approach. Monkey-patching the fs means -that no `EMFILE` errors can possibly occur anywhere in your -application, because everything is using the same core `fs` module, -which is patched. However, it can also obviously cause undesirable -side-effects, especially if the module is loaded multiple times. - -Implementing a separate-but-identical patched `fs` module is more -surgical (and doesn't run the risk of patching multiple times), but -also imposes the challenge of keeping in sync with the core module. - -The current approach loads the `fs` module, and then creates a -lookalike object that has all the same methods, except a few that are -patched. It is safe to use in all versions of Node from 0.8 through -7.0. - -### v4 - -* Do not monkey-patch the fs module. This module may now be used as a - drop-in dep, and users can opt into monkey-patching the fs builtin - if their app requires it. - -### v3 - -* Monkey-patch fs, because the eval approach no longer works on recent - node. -* fixed possible type-error throw if rename fails on windows -* verify that we *never* get EMFILE errors -* Ignore ENOSYS from chmod/chown -* clarify that graceful-fs must be used as a drop-in - -### v2.1.0 - -* Use eval rather than monkey-patching fs. -* readdir: Always sort the results -* win32: requeue a file if error has an OK status - -### v2.0 - -* A return to monkey patching -* wrap process.cwd - -### v1.1 - -* wrap readFile -* Wrap fs.writeFile. -* readdir protection -* Don't clobber the fs builtin -* Handle fs.read EAGAIN errors by trying again -* Expose the curOpen counter -* No-op lchown/lchmod if not implemented -* fs.rename patch only for win32 -* Patch fs.rename to handle AV software on Windows -* Close #4 Chown should not fail on einval or eperm if non-root -* Fix isaacs/fstream#1 Only wrap fs one time -* Fix #3 Start at 1024 max files, then back off on EMFILE -* lutimes that doens't blow up on Linux -* A full on-rewrite using a queue instead of just swallowing the EMFILE error -* Wrap Read/Write streams as well - -### 1.0 - -* Update engines for node 0.6 -* Be lstat-graceful on Windows -* first diff --git a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/fs.js b/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/fs.js deleted file mode 100644 index 8ad4a38396..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/fs.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict' - -var fs = require('fs') - -module.exports = clone(fs) - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: obj.__proto__ } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/graceful-fs.js b/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/graceful-fs.js deleted file mode 100644 index 33b30d2e98..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/graceful-fs.js +++ /dev/null @@ -1,262 +0,0 @@ -var fs = require('fs') -var polyfills = require('./polyfills.js') -var legacy = require('./legacy-streams.js') -var queue = [] - -var util = require('util') - -function noop () {} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(queue) - require('assert').equal(queue.length, 0) - }) -} - -module.exports = patch(require('./fs.js')) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) { - module.exports = patch(fs) -} - -// Always patch fs.close/closeSync, because we want to -// retry() whenever a close happens *anywhere* in the program. -// This is essential when multiple graceful-fs instances are -// in play at the same time. -module.exports.close = -fs.close = (function (fs$close) { return function (fd, cb) { - return fs$close.call(fs, fd, function (err) { - if (!err) - retry() - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) -}})(fs.close) - -module.exports.closeSync = -fs.closeSync = (function (fs$closeSync) { return function (fd) { - // Note that graceful-fs also retries when fs.closeSync() fails. - // Looks like a bug to me, although it's probably a harmless one. - var rval = fs$closeSync.apply(fs, arguments) - retry() - return rval -}})(fs.closeSync) - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - fs.FileReadStream = ReadStream; // Legacy name. - fs.FileWriteStream = WriteStream; // Legacy name. - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - var args = [path] - if (typeof options !== 'function') { - args.push(options) - } else { - cb = options - } - args.push(go$readdir$cb) - - return go$readdir(args) - - function go$readdir$cb (err, files) { - if (files && files.sort) - files.sort() - - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [args]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - } - } - - function go$readdir (args) { - return fs$readdir.apply(fs, args) - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - - var fs$WriteStream = fs.WriteStream - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - - fs.ReadStream = ReadStream - fs.WriteStream = WriteStream - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - queue.push(elem) -} - -function retry () { - var elem = queue.shift() - if (elem) { - debug('RETRY', elem[0].name, elem[1]) - elem[0].apply(null, elem[1]) - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/legacy-streams.js b/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/legacy-streams.js deleted file mode 100644 index d617b50fc0..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/legacy-streams.js +++ /dev/null @@ -1,118 +0,0 @@ -var Stream = require('stream').Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/package.json b/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/package.json deleted file mode 100644 index cde9d0dd86..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "graceful-fs", - "description": "A drop-in replacement for fs, making various improvements.", - "version": "4.1.11", - "repository": { - "type": "git", - "url": "https://github.com/isaacs/node-graceful-fs" - }, - "main": "graceful-fs.js", - "engines": { - "node": ">=0.4.0" - }, - "directories": { - "test": "test" - }, - "scripts": { - "test": "node test.js | tap -" - }, - "keywords": [ - "fs", - "module", - "reading", - "retry", - "retries", - "queue", - "error", - "errors", - "handling", - "EMFILE", - "EAGAIN", - "EINVAL", - "EPERM", - "EACCESS" - ], - "license": "ISC", - "devDependencies": { - "mkdirp": "^0.5.0", - "rimraf": "^2.2.8", - "tap": "^5.4.2" - }, - "files": [ - "fs.js", - "graceful-fs.js", - "legacy-streams.js", - "polyfills.js" - ] -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/polyfills.js b/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/polyfills.js deleted file mode 100644 index 4c6aca78a3..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11/node_modules/graceful-fs/polyfills.js +++ /dev/null @@ -1,330 +0,0 @@ -var fs = require('./fs.js') -var constants = require('constants') - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -var chdir = process.chdir -process.chdir = function(d) { - cwd = null - chdir.call(process, d) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - }})(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) -} - -function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } -} - -function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } -} - -function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, cb) { - return orig.call(fs, target, function (er, stats) { - if (!stats) return cb.apply(this, arguments) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - if (cb) cb.apply(this, arguments) - }) - } -} - -function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target) { - var stats = orig.call(fs, target) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - return stats; - } -} - -// ENOSYS means that the fs doesn't support the op. Just ignore -// that, because it doesn't matter. -// -// if there's no getuid, or if getuid() is something other -// than 0, and the error is EINVAL or EPERM, then just ignore -// it. -// -// This specific case is a silent failure in cp, install, tar, -// and most other unix tools that manage permissions. -// -// When running as root, or if other types of errors are -// encountered, then it's strict. -function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/README.md b/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/README.md deleted file mode 100644 index f35b20a0ef..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/README.md +++ /dev/null @@ -1,122 +0,0 @@ -iMurmurHash.js -============== - -An incremental implementation of the MurmurHash3 (32-bit) hashing algorithm for JavaScript based on [Gary Court's implementation](https://github.com/garycourt/murmurhash-js) with [kazuyukitanimura's modifications](https://github.com/kazuyukitanimura/murmurhash-js). - -This version works significantly faster than the non-incremental version if you need to hash many small strings into a single hash, since string concatenation (to build the single string to pass the non-incremental version) is fairly costly. In one case tested, using the incremental version was about 50% faster than concatenating 5-10 strings and then hashing. - -Installation ------------- - -To use iMurmurHash in the browser, [download the latest version](https://raw.github.com/jensyt/imurmurhash-js/master/imurmurhash.min.js) and include it as a script on your site. - -```html - - -``` - ---- - -To use iMurmurHash in Node.js, install the module using NPM: - -```bash -npm install imurmurhash -``` - -Then simply include it in your scripts: - -```javascript -MurmurHash3 = require('imurmurhash'); -``` - -Quick Example -------------- - -```javascript -// Create the initial hash -var hashState = MurmurHash3('string'); - -// Incrementally add text -hashState.hash('more strings'); -hashState.hash('even more strings'); - -// All calls can be chained if desired -hashState.hash('and').hash('some').hash('more'); - -// Get a result -hashState.result(); -// returns 0xe4ccfe6b -``` - -Functions ---------- - -### MurmurHash3 ([string], [seed]) -Get a hash state object, optionally initialized with the given _string_ and _seed_. _Seed_ must be a positive integer if provided. Calling this function without the `new` keyword will return a cached state object that has been reset. This is safe to use as long as the object is only used from a single thread and no other hashes are created while operating on this one. If this constraint cannot be met, you can use `new` to create a new state object. For example: - -```javascript -// Use the cached object, calling the function again will return the same -// object (but reset, so the current state would be lost) -hashState = MurmurHash3(); -... - -// Create a new object that can be safely used however you wish. Calling the -// function again will simply return a new state object, and no state loss -// will occur, at the cost of creating more objects. -hashState = new MurmurHash3(); -``` - -Both methods can be mixed however you like if you have different use cases. - ---- - -### MurmurHash3.prototype.hash (string) -Incrementally add _string_ to the hash. This can be called as many times as you want for the hash state object, including after a call to `result()`. Returns `this` so calls can be chained. - ---- - -### MurmurHash3.prototype.result () -Get the result of the hash as a 32-bit positive integer. This performs the tail and finalizer portions of the algorithm, but does not store the result in the state object. This means that it is perfectly safe to get results and then continue adding strings via `hash`. - -```javascript -// Do the whole string at once -MurmurHash3('this is a test string').result(); -// 0x70529328 - -// Do part of the string, get a result, then the other part -var m = MurmurHash3('this is a'); -m.result(); -// 0xbfc4f834 -m.hash(' test string').result(); -// 0x70529328 (same as above) -``` - ---- - -### MurmurHash3.prototype.reset ([seed]) -Reset the state object for reuse, optionally using the given _seed_ (defaults to 0 like the constructor). Returns `this` so calls can be chained. - ---- - -License (MIT) -------------- -Copyright (c) 2013 Gary Court, Jens Taylor - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.js b/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.js deleted file mode 100644 index e63146a2b7..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -(function(){ - var cache; - - // Call this function without `new` to use the cached object (good for - // single-threaded environments), or with `new` to create a new object. - // - // @param {string} key A UTF-16 or ASCII string - // @param {number} seed An optional positive integer - // @return {object} A MurmurHash3 object for incremental hashing - function MurmurHash3(key, seed) { - var m = this instanceof MurmurHash3 ? this : cache; - m.reset(seed) - if (typeof key === 'string' && key.length > 0) { - m.hash(key); - } - - if (m !== this) { - return m; - } - }; - - // Incrementally add a string to this hash - // - // @param {string} key A UTF-16 or ASCII string - // @return {object} this - MurmurHash3.prototype.hash = function(key) { - var h1, k1, i, top, len; - - len = key.length; - this.len += len; - - k1 = this.k1; - i = 0; - switch (this.rem) { - case 0: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) : 0; - case 1: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0; - case 2: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0; - case 3: - k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0; - k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0; - } - - this.rem = (len + this.rem) & 3; // & 3 is same as % 4 - len -= this.rem; - if (len > 0) { - h1 = this.h1; - while (1) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - - h1 ^= k1; - h1 = (h1 << 13) | (h1 >>> 19); - h1 = (h1 * 5 + 0xe6546b64) & 0xffffffff; - - if (i >= len) { - break; - } - - k1 = ((key.charCodeAt(i++) & 0xffff)) ^ - ((key.charCodeAt(i++) & 0xffff) << 8) ^ - ((key.charCodeAt(i++) & 0xffff) << 16); - top = key.charCodeAt(i++); - k1 ^= ((top & 0xff) << 24) ^ - ((top & 0xff00) >> 8); - } - - k1 = 0; - switch (this.rem) { - case 3: k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16; - case 2: k1 ^= (key.charCodeAt(i + 1) & 0xffff) << 8; - case 1: k1 ^= (key.charCodeAt(i) & 0xffff); - } - - this.h1 = h1; - } - - this.k1 = k1; - return this; - }; - - // Get the result of this hash - // - // @return {number} The 32-bit hash - MurmurHash3.prototype.result = function() { - var k1, h1; - - k1 = this.k1; - h1 = this.h1; - - if (k1 > 0) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - h1 ^= k1; - } - - h1 ^= this.len; - - h1 ^= h1 >>> 16; - h1 = (h1 * 0xca6b + (h1 & 0xffff) * 0x85eb0000) & 0xffffffff; - h1 ^= h1 >>> 13; - h1 = (h1 * 0xae35 + (h1 & 0xffff) * 0xc2b20000) & 0xffffffff; - h1 ^= h1 >>> 16; - - return h1 >>> 0; - }; - - // Reset the hash object for reuse - // - // @param {number} seed An optional positive integer - MurmurHash3.prototype.reset = function(seed) { - this.h1 = typeof seed === 'number' ? seed : 0; - this.rem = this.k1 = this.len = 0; - return this; - }; - - // A cached object to use. This can be safely used if you're in a single- - // threaded environment, otherwise you need to create new hashes to use. - cache = new MurmurHash3(); - - if (typeof(module) != 'undefined') { - module.exports = MurmurHash3; - } else { - this.MurmurHash3 = MurmurHash3; - } -}()); diff --git a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.min.js b/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.min.js deleted file mode 100644 index dc0ee88d6b..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/imurmurhash.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -!function(){function t(h,r){var s=this instanceof t?this:e;return s.reset(r),"string"==typeof h&&h.length>0&&s.hash(h),s!==this?s:void 0}var e;t.prototype.hash=function(t){var e,h,r,s,i;switch(i=t.length,this.len+=i,h=this.k1,r=0,this.rem){case 0:h^=i>r?65535&t.charCodeAt(r++):0;case 1:h^=i>r?(65535&t.charCodeAt(r++))<<8:0;case 2:h^=i>r?(65535&t.charCodeAt(r++))<<16:0;case 3:h^=i>r?(255&t.charCodeAt(r))<<24:0,h^=i>r?(65280&t.charCodeAt(r++))>>8:0}if(this.rem=3&i+this.rem,i-=this.rem,i>0){for(e=this.h1;;){if(h=4294967295&11601*h+3432906752*(65535&h),h=h<<15|h>>>17,h=4294967295&13715*h+461832192*(65535&h),e^=h,e=e<<13|e>>>19,e=4294967295&5*e+3864292196,r>=i)break;h=65535&t.charCodeAt(r++)^(65535&t.charCodeAt(r++))<<8^(65535&t.charCodeAt(r++))<<16,s=t.charCodeAt(r++),h^=(255&s)<<24^(65280&s)>>8}switch(h=0,this.rem){case 3:h^=(65535&t.charCodeAt(r+2))<<16;case 2:h^=(65535&t.charCodeAt(r+1))<<8;case 1:h^=65535&t.charCodeAt(r)}this.h1=e}return this.k1=h,this},t.prototype.result=function(){var t,e;return t=this.k1,e=this.h1,t>0&&(t=4294967295&11601*t+3432906752*(65535&t),t=t<<15|t>>>17,t=4294967295&13715*t+461832192*(65535&t),e^=t),e^=this.len,e^=e>>>16,e=4294967295&51819*e+2246770688*(65535&e),e^=e>>>13,e=4294967295&44597*e+3266445312*(65535&e),e^=e>>>16,e>>>0},t.prototype.reset=function(t){return this.h1="number"==typeof t?t:0,this.rem=this.k1=this.len=0,this},e=new t,"undefined"!=typeof module?module.exports=t:this.MurmurHash3=t}(); \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/package.json b/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/package.json deleted file mode 100644 index 8a93edb55a..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/imurmurhash/0.1.4/node_modules/imurmurhash/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "imurmurhash", - "version": "0.1.4", - "description": "An incremental implementation of MurmurHash3", - "homepage": "https://github.com/jensyt/imurmurhash-js", - "main": "imurmurhash.js", - "files": [ - "imurmurhash.js", - "imurmurhash.min.js", - "package.json", - "README.md" - ], - "repository": { - "type": "git", - "url": "https://github.com/jensyt/imurmurhash-js" - }, - "bugs": { - "url": "https://github.com/jensyt/imurmurhash-js/issues" - }, - "keywords": [ - "murmur", - "murmurhash", - "murmurhash3", - "hash", - "incremental" - ], - "author": { - "name": "Jens Taylor", - "email": "jensyt@gmail.com", - "url": "https://github.com/homebrewing" - }, - "license": "MIT", - "dependencies": { - }, - "devDependencies": { - }, - "engines": { - "node": ">=0.8.19" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/index.js b/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/index.js deleted file mode 100644 index 0d1ba9eeb8..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; -var toString = Object.prototype.toString; - -module.exports = function (x) { - var prototype; - return toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({})); -}; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/license b/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/package.json b/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/package.json deleted file mode 100644 index d331f6e816..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "is-plain-obj", - "version": "1.1.0", - "description": "Check if a value is a plain object", - "license": "MIT", - "repository": "sindresorhus/is-plain-obj", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "node test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "obj", - "object", - "is", - "check", - "test", - "type", - "plain", - "vanilla", - "pure", - "simple" - ], - "devDependencies": { - "ava": "0.0.4" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/readme.md deleted file mode 100644 index 269e56aeff..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/is-plain-obj/1.1.0/node_modules/is-plain-obj/readme.md +++ /dev/null @@ -1,35 +0,0 @@ -# is-plain-obj [![Build Status](https://travis-ci.org/sindresorhus/is-plain-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/is-plain-obj) - -> Check if a value is a plain object - -An object is plain if it's created by either `{}`, `new Object()` or `Object.create(null)`. - - -## Install - -``` -$ npm install --save is-plain-obj -``` - - -## Usage - -```js -var isPlainObj = require('is-plain-obj'); - -isPlainObj({foo: 'bar'}); -//=> true - -isPlainObj([1, 2, 3]); -//=> false -``` - - -## Related - -- [is-obj](https://github.com/sindresorhus/is-obj) - Check if a value is an object - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/index.js b/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/index.js deleted file mode 100644 index ca1f5e9c6a..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/index.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const pify = require('pify'); - -const defaults = { - mode: 0o777 & (~process.umask()), - fs -}; - -// https://github.com/nodejs/node/issues/8987 -// https://github.com/libuv/libuv/pull/1088 -const checkPath = pth => { - if (process.platform === 'win32') { - const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')); - - if (pathHasInvalidWinCharacters) { - const err = new Error(`Path contains invalid characters: ${pth}`); - err.code = 'EINVAL'; - throw err; - } - } -}; - -module.exports = (input, opts) => Promise.resolve().then(() => { - checkPath(input); - opts = Object.assign({}, defaults, opts); - const fsP = pify(opts.fs); - - const make = pth => { - return fsP.mkdir(pth, opts.mode) - .then(() => pth) - .catch(err => { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } - - return make(path.dirname(pth)).then(() => make(pth)); - } - - return fsP.stat(pth) - .then(stats => stats.isDirectory() ? pth : Promise.reject()) - .catch(() => { - throw err; - }); - }); - }; - - return make(path.resolve(input)); -}); - -module.exports.sync = (input, opts) => { - checkPath(input); - opts = Object.assign({}, defaults, opts); - - const make = pth => { - try { - opts.fs.mkdirSync(pth, opts.mode); - } catch (err) { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } - - make(path.dirname(pth)); - return make(pth); - } - - try { - if (!opts.fs.statSync(pth).isDirectory()) { - throw new Error(); - } - } catch (_) { - throw err; - } - } - - return pth; - }; - - return make(path.resolve(input)); -}; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/license b/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/package.json b/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/package.json deleted file mode 100644 index 83a1def18c..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "make-dir", - "version": "1.0.0", - "description": "Make a directory and its parents if needed - Think `mkdir -p`", - "license": "MIT", - "repository": "sindresorhus/make-dir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "mkdir", - "mkdirp", - "make", - "directories", - "dir", - "dirs", - "folders", - "directory", - "folder", - "path", - "parent", - "parents", - "intermediate", - "recursively", - "recursive", - "create", - "fs", - "filesystem", - "file-system" - ], - "dependencies": { - "pify": "^2.3.0" - }, - "devDependencies": { - "ava": "*", - "coveralls": "^2.13.0", - "graceful-fs": "^4.1.11", - "nyc": "^10.2.0", - "path-type": "^2.0.0", - "tempy": "^0.1.0", - "xo": "*" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/readme.md deleted file mode 100644 index 23cf232521..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/make-dir/readme.md +++ /dev/null @@ -1,113 +0,0 @@ -# make-dir [![Build Status: macOS & Linux](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/e0vtt8y600w91gcs/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/make-dir/branch/master) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/make-dir/badge.svg)](https://coveralls.io/github/sindresorhus/make-dir) - -> Make a directory and its parents if needed - Think `mkdir -p` - - -## Advantages over [`mkdirp`](https://github.com/substack/node-mkdirp) - -- Promise API *(Async/await ready!)* -- Fixes many `mkdirp` issues: [#96](https://github.com/substack/node-mkdirp/pull/96) [#70](https://github.com/substack/node-mkdirp/issues/70) [#66](https://github.com/substack/node-mkdirp/issues/66) -- 100% test coverage -- CI-tested on macOS, Linux, and Windows -- Actively maintained -- Doesn't bundle a CLI - - -## Install - -``` -$ npm install --save make-dir -``` - - -## Usage - -``` -$ pwd -/Users/sindresorhus/fun -$ tree -. -``` - -```js -const makeDir = require('make-dir'); - -makeDir('unicorn/rainbow/cake').then(path => { - console.log(path); - //=> '/Users/sindresorhus/fun/unicorn/rainbow/cake' -}); -``` - -``` -$ tree -. -└── unicorn - └── rainbow - └── cake -``` - -Multiple directories: - -```js -const makeDir = require('make-dir'); - -Promise.all([ - makeDir('unicorn/rainbow') - makeDir('foo/bar') -]).then(paths => { - console.log(paths); - /* - [ - '/Users/sindresorhus/fun/unicorn/rainbow', - '/Users/sindresorhus/fun/foo/bar' - ] - */ -}); -``` - - -## API - -### makeDir(path, [options]) - -Returns a `Promise` for the path to the created directory. - -### makeDir.sync(path, [options]) - -Returns the path to the created directory. - -#### path - -Type: `string` - -Directory to create. - -#### options - -Type: `Object` - -##### mode - -Type: `integer`
-Default: `0o777 & (~process.umask())` - -Directory [permissions](https://x-team.com/blog/file-system-permissions-umask-node-js/). - -##### fs - -Type: `Object`
-Default: `require('fs')` - -Use a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). - - -## Related - -- [make-dir-cli](https://github.com/sindresorhus/make-dir-cli) - CLI for this module -- [del](https://github.com/sindresorhus/del) - Delete files and directories -- [globby](https://github.com/sindresorhus/globby) - User-friendly glob matching - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/pify b/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/pify deleted file mode 120000 index 39b64b43bb..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/make-dir/1.0.0/node_modules/pify +++ /dev/null @@ -1 +0,0 @@ -../../../pify/2.3.0/node_modules/pify \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/index.js b/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/index.js deleted file mode 100644 index 7c720ebee8..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/index.js +++ /dev/null @@ -1,68 +0,0 @@ -'use strict'; - -var processFn = function (fn, P, opts) { - return function () { - var that = this; - var args = new Array(arguments.length); - - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - - return new P(function (resolve, reject) { - args.push(function (err, result) { - if (err) { - reject(err); - } else if (opts.multiArgs) { - var results = new Array(arguments.length - 1); - - for (var i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - - resolve(results); - } else { - resolve(result); - } - }); - - fn.apply(that, args); - }); - }; -}; - -var pify = module.exports = function (obj, P, opts) { - if (typeof P !== 'function') { - opts = P; - P = Promise; - } - - opts = opts || {}; - opts.exclude = opts.exclude || [/.+Sync$/]; - - var filter = function (key) { - var match = function (pattern) { - return typeof pattern === 'string' ? key === pattern : pattern.test(key); - }; - - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - - var ret = typeof obj === 'function' ? function () { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - - return processFn(obj, P, opts).apply(this, arguments); - } : {}; - - return Object.keys(obj).reduce(function (ret, key) { - var x = obj[key]; - - ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x; - - return ret; - }, ret); -}; - -pify.all = pify; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/license b/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/package.json b/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/package.json deleted file mode 100644 index 311d1982e0..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "pify", - "version": "2.3.0", - "description": "Promisify a callback-style function", - "license": "MIT", - "repository": "sindresorhus/pify", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && ava && npm run optimization-test", - "optimization-test": "node --allow-natives-syntax optimization-test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "promise", - "promises", - "promisify", - "denodify", - "denodeify", - "callback", - "cb", - "node", - "then", - "thenify", - "convert", - "transform", - "wrap", - "wrapper", - "bind", - "to", - "async", - "es2015" - ], - "devDependencies": { - "ava": "*", - "pinkie-promise": "^1.0.0", - "v8-natives": "0.0.2", - "xo": "*" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/readme.md deleted file mode 100644 index c79ca8bf64..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/pify/2.3.0/node_modules/pify/readme.md +++ /dev/null @@ -1,119 +0,0 @@ -# pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify) - -> Promisify a callback-style function - - -## Install - -``` -$ npm install --save pify -``` - - -## Usage - -```js -const fs = require('fs'); -const pify = require('pify'); - -// promisify a single function - -pify(fs.readFile)('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); - -// or promisify all methods in a module - -pify(fs).readFile('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); -``` - - -## API - -### pify(input, [promiseModule], [options]) - -Returns a promise wrapped version of the supplied function or module. - -#### input - -Type: `function`, `object` - -Callback-style function or module whose methods you want to promisify. - -#### promiseModule - -Type: `function` - -Custom promise module to use instead of the native one. - -Check out [`pinkie-promise`](https://github.com/floatdrop/pinkie-promise) if you need a tiny promise polyfill. - -#### options - -##### multiArgs - -Type: `boolean` -Default: `false` - -By default, the promisified function will only return the second argument from the callback, which works fine for most APIs. This option can be useful for modules like `request` that return multiple arguments. Turning this on will make it return an array of all arguments from the callback, excluding the error argument, instead of just the second argument. - -```js -const request = require('request'); -const pify = require('pify'); - -pify(request, {multiArgs: true})('https://sindresorhus.com').then(result => { - const [httpResponse, body] = result; -}); -``` - -##### include - -Type: `array` of (`string`|`regex`) - -Methods in a module to promisify. Remaining methods will be left untouched. - -##### exclude - -Type: `array` of (`string`|`regex`) -Default: `[/.+Sync$/]` - -Methods in a module **not** to promisify. Methods with names ending with `'Sync'` are excluded by default. - -##### excludeMain - -Type: `boolean` -Default: `false` - -By default, if given module is a function itself, this function will be promisified. Turn this option on if you want to promisify only methods of the module. - -```js -const pify = require('pify'); - -function fn() { - return true; -} - -fn.method = (data, callback) => { - setImmediate(() => { - callback(data, null); - }); -}; - -// promisify methods but not fn() -const promiseFn = pify(fn, {excludeMain: true}); - -if (promiseFn()) { - promiseFn.method('hi').then(data => { - console.log(data); - }); -} -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/LICENSE b/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/LICENSE deleted file mode 100644 index 05eeeb88c2..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/README.md b/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/README.md deleted file mode 100644 index 59ad738bca..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/README.md +++ /dev/null @@ -1,143 +0,0 @@ -# Controlling Flow: callbacks are easy - -## What's actually hard? - -- Doing a bunch of things in a specific order. -- Knowing when stuff is done. -- Handling failures. -- Breaking up functionality into parts (avoid nested inline callbacks) - - -## Common Mistakes - -- Abandoning convention and consistency. -- Putting all callbacks inline. -- Using libraries without grokking them. -- Trying to make async code look sync. - -## Define Conventions - -- Two kinds of functions: *actors* take action, *callbacks* get results. -- Essentially the continuation pattern. Resulting code *looks* similar - to fibers, but is *much* simpler to implement. -- Node works this way in the lowlevel APIs already, and it's very flexible. - -## Callbacks - -- Simple responders -- Must always be prepared to handle errors, that's why it's the first argument. -- Often inline anonymous, but not always. -- Can trap and call other callbacks with modified data, or pass errors upwards. - -## Actors - -- Last argument is a callback. -- If any error occurs, and can't be handled, pass it to the callback and return. -- Must not throw. Return value ignored. -- return x ==> return cb(null, x) -- throw er ==> return cb(er) - -```javascript -// return true if a path is either -// a symlink or a directory. -function isLinkOrDir (path, cb) { - fs.lstat(path, function (er, s) { - if (er) return cb(er) - return cb(null, s.isDirectory() || s.isSymbolicLink()) - }) -} -``` - -# asyncMap - -## Usecases - -- I have a list of 10 files, and need to read all of them, and then continue when they're all done. -- I have a dozen URLs, and need to fetch them all, and then continue when they're all done. -- I have 4 connected users, and need to send a message to all of them, and then continue when that's done. -- I have a list of n things, and I need to dosomething with all of them, in parallel, and get the results once they're all complete. - - -## Solution - -```javascript -var asyncMap = require("slide").asyncMap -function writeFiles (files, what, cb) { - asyncMap(files, function (f, cb) { - fs.writeFile(f, what, cb) - }, cb) -} -writeFiles([my, file, list], "foo", cb) -``` - -# chain - -## Usecases - -- I have to do a bunch of things, in order. Get db credentials out of a file, - read the data from the db, write that data to another file. -- If anything fails, do not continue. -- I still have to provide an array of functions, which is a lot of boilerplate, - and a pita if your functions take args like - -```javascript -function (cb) { - blah(a, b, c, cb) -} -``` - -- Results are discarded, which is a bit lame. -- No way to branch. - -## Solution - -- reduces boilerplate by converting an array of [fn, args] to an actor - that takes no arguments (except cb) -- A bit like Function#bind, but tailored for our use-case. -- bindActor(obj, "method", a, b, c) -- bindActor(fn, a, b, c) -- bindActor(obj, fn, a, b, c) -- branching, skipping over falsey arguments - -```javascript -chain([ - doThing && [thing, a, b, c] -, isFoo && [doFoo, "foo"] -, subChain && [chain, [one, two]] -], cb) -``` - -- tracking results: results are stored in an optional array passed as argument, - last result is always in results[results.length - 1]. -- treat chain.first and chain.last as placeholders for the first/last - result up until that point. - - -## Non-trivial example - -- Read number files in a directory -- Add the results together -- Ping a web service with the result -- Write the response to a file -- Delete the number files - -```javascript -var chain = require("slide").chain -function myProgram (cb) { - var res = [], last = chain.last, first = chain.first - chain([ - [fs, "readdir", "the-directory"] - , [readFiles, "the-directory", last] - , [sum, last] - , [ping, "POST", "example.com", 80, "/foo", last] - , [fs, "writeFile", "result.txt", last] - , [rmFiles, "./the-directory", first] - ], res, cb) -} -``` - -# Conclusion: Convention Profits - -- Consistent API from top to bottom. -- Sneak in at any point to inject functionality. Testable, reusable, ... -- When ruby and python users whine, you can smile condescendingly. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/index.js b/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/index.js deleted file mode 100644 index 0a9277f6ee..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=require("./lib/slide") diff --git a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/package.json b/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/package.json deleted file mode 100644 index 7799184791..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/slide/1.1.6/node_modules/slide/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "slide", - "version": "1.1.6", - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "contributors": [ - "S. Sriram (http://www.565labs.com)" - ], - "description": "A flow control lib small enough to fit on in a slide presentation. Derived live at Oak.JS", - "main": "./lib/slide.js", - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "*" - }, - "repository": { - "type": "git", - "url": "git://github.com/isaacs/slide-flow-control.git" - }, - "license": "ISC" -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/is-plain-obj b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/is-plain-obj deleted file mode 120000 index 72bf97d869..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/is-plain-obj +++ /dev/null @@ -1 +0,0 @@ -../../../is-plain-obj/1.1.0/node_modules/is-plain-obj \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/index.js b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/index.js deleted file mode 100644 index f75a0e0535..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/index.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; -var isPlainObj = require('is-plain-obj'); - -module.exports = function (obj, opts) { - if (!isPlainObj(obj)) { - throw new TypeError('Expected a plain object'); - } - - opts = opts || {}; - - // DEPRECATED - if (typeof opts === 'function') { - opts = {compare: opts}; - } - - var deep = opts.deep; - var seenInput = []; - var seenOutput = []; - - var sortKeys = function (x) { - var seenIndex = seenInput.indexOf(x); - - if (seenIndex !== -1) { - return seenOutput[seenIndex]; - } - - var ret = {}; - var keys = Object.keys(x).sort(opts.compare); - - seenInput.push(x); - seenOutput.push(ret); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var val = x[key]; - - ret[key] = deep && isPlainObj(val) ? sortKeys(val) : val; - } - - return ret; - }; - - return sortKeys(obj); -}; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/license b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/package.json b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/package.json deleted file mode 100644 index dff0653827..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "sort-keys", - "version": "1.1.2", - "description": "Sort the keys of an object", - "license": "MIT", - "repository": "sindresorhus/sort-keys", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && mocha" - }, - "files": [ - "index.js" - ], - "keywords": [ - "sort", - "object", - "keys", - "obj", - "key", - "stable", - "deterministic", - "deep", - "recursive", - "recursively" - ], - "dependencies": { - "is-plain-obj": "^1.0.0" - }, - "devDependencies": { - "mocha": "*", - "xo": "*" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/readme.md deleted file mode 100644 index a671ffb3de..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/1.1.2/node_modules/sort-keys/readme.md +++ /dev/null @@ -1,60 +0,0 @@ -# sort-keys [![Build Status](https://travis-ci.org/sindresorhus/sort-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/sort-keys) - -> Sort the keys of an object - -Useful to get a deterministically ordered object, as the order of keys can vary between engines. - - -## Install - -``` -$ npm install --save sort-keys -``` - - -## Usage - -```js -const sortKeys = require('sort-keys'); - -sortKeys({c: 0, a: 0, b: 0}); -//=> {a: 0, b: 0, c: 0} - -sortKeys({b: {b: 0, a: 0}, a: 0}, {deep: true}); -//=> {a: 0, b: {a: 0, b: 0}} - -sortKeys({c: 0, a: 0, b: 0}, { - compare: (a, b) => -a.localeCompare(b) -}); -//=> {c: 0, b: 0, a: 0} -``` - - -## API - -### sortKeys(input, [options]) - -Returns a new object with sorted keys. - -#### input - -Type: `Object` - -#### options - -##### deep - -Type: `boolean` - -Recursively sort keys. - -##### compare - -Type: `Function` - -[Compare function.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/is-plain-obj b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/is-plain-obj deleted file mode 120000 index 72bf97d869..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/is-plain-obj +++ /dev/null @@ -1 +0,0 @@ -../../../is-plain-obj/1.1.0/node_modules/is-plain-obj \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/index.js b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/index.js deleted file mode 100644 index 53489d7888..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/index.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; -const isPlainObj = require('is-plain-obj'); - -module.exports = (obj, opts) => { - if (!isPlainObj(obj)) { - throw new TypeError('Expected a plain object'); - } - - opts = opts || {}; - - // DEPRECATED - if (typeof opts === 'function') { - throw new TypeError('Specify the compare function as an option instead'); - } - - const deep = opts.deep; - const seenInput = []; - const seenOutput = []; - - const sortKeys = x => { - const seenIndex = seenInput.indexOf(x); - - if (seenIndex !== -1) { - return seenOutput[seenIndex]; - } - - const ret = {}; - const keys = Object.keys(x).sort(opts.compare); - - seenInput.push(x); - seenOutput.push(ret); - - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const val = x[key]; - - if (deep && Array.isArray(val)) { - const retArr = []; - - for (let j = 0; j < val.length; j++) { - retArr[j] = isPlainObj(val[j]) ? sortKeys(val[j]) : val[j]; - } - - ret[key] = retArr; - continue; - } - - ret[key] = deep && isPlainObj(val) ? sortKeys(val) : val; - } - - return ret; - }; - - return sortKeys(obj); -}; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/license b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/license deleted file mode 100644 index e7af2f7710..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/package.json b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/package.json deleted file mode 100644 index 3da9c7659d..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "sort-keys", - "version": "2.0.0", - "description": "Sort the keys of an object", - "license": "MIT", - "repository": "sindresorhus/sort-keys", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "sort", - "object", - "keys", - "obj", - "key", - "stable", - "deterministic", - "deep", - "recursive", - "recursively" - ], - "dependencies": { - "is-plain-obj": "^1.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/readme.md deleted file mode 100644 index a671ffb3de..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/sort-keys/2.0.0/node_modules/sort-keys/readme.md +++ /dev/null @@ -1,60 +0,0 @@ -# sort-keys [![Build Status](https://travis-ci.org/sindresorhus/sort-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/sort-keys) - -> Sort the keys of an object - -Useful to get a deterministically ordered object, as the order of keys can vary between engines. - - -## Install - -``` -$ npm install --save sort-keys -``` - - -## Usage - -```js -const sortKeys = require('sort-keys'); - -sortKeys({c: 0, a: 0, b: 0}); -//=> {a: 0, b: 0, c: 0} - -sortKeys({b: {b: 0, a: 0}, a: 0}, {deep: true}); -//=> {a: 0, b: {a: 0, b: 0}} - -sortKeys({c: 0, a: 0, b: 0}, { - compare: (a, b) => -a.localeCompare(b) -}); -//=> {c: 0, b: 0, a: 0} -``` - - -## API - -### sortKeys(input, [options]) - -Returns a new object with sorted keys. - -#### input - -Type: `Object` - -#### options - -##### deep - -Type: `boolean` - -Recursively sort keys. - -##### compare - -Type: `Function` - -[Compare function.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/graceful-fs b/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/graceful-fs deleted file mode 120000 index 4db8bdb9f8..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/graceful-fs +++ /dev/null @@ -1 +0,0 @@ -../../../graceful-fs/4.1.11/node_modules/graceful-fs \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/imurmurhash b/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/imurmurhash deleted file mode 120000 index 9bfdc15b1e..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/imurmurhash +++ /dev/null @@ -1 +0,0 @@ -../../../imurmurhash/0.1.4/node_modules/imurmurhash \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/slide b/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/slide deleted file mode 120000 index e4aacf8846..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/slide +++ /dev/null @@ -1 +0,0 @@ -../../../slide/1.1.6/node_modules/slide \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/LICENSE b/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/LICENSE deleted file mode 100644 index 95e65a7706..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/LICENSE +++ /dev/null @@ -1,6 +0,0 @@ -Copyright (c) 2015, Rebecca Turner - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/README.md b/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/README.md deleted file mode 100644 index 63f00420ca..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/README.md +++ /dev/null @@ -1,47 +0,0 @@ -write-file-atomic ------------------ - -This is an extension for node's `fs.writeFile` that makes its operation -atomic and allows you set ownership (uid/gid of the file). - -### var writeFileAtomic = require('write-file-atomic')
writeFileAtomic(filename, data, [options], callback) - -* filename **String** -* data **String** | **Buffer** -* options **Object** - * chown **Object** - * uid **Number** - * gid **Number** - * encoding **String** | **Null** default = 'utf8' - * fsync **Boolean** default = true - * mode **Number** default = 438 (aka 0666 in Octal) -callback **Function** - -Atomically and asynchronously writes data to a file, replacing the file if it already -exists. data can be a string or a buffer. - -The file is initially named `filename + "." + murmurhex(__filename, process.pid, ++invocations)`. -If writeFile completes successfully then, if passed the **chown** option it will change -the ownership of the file. Finally it renames the file back to the filename you specified. If -it encounters errors at any of these steps it will attempt to unlink the temporary file and then -pass the error back to the caller. - -If provided, the **chown** option requires both **uid** and **gid** properties or else -you'll get an error. - -The **encoding** option is ignored if **data** is a buffer. It defaults to 'utf8'. - -If the **fsync** option is **false**, writeFile will skip the final fsync call. - -Example: - -```javascript -writeFileAtomic('message.txt', 'Hello Node', {chown:{uid:100,gid:50}}, function (err) { - if (err) throw err; - console.log('It\'s saved!'); -}); -``` - -### var writeFileAtomicSync = require('write-file-atomic').sync
writeFileAtomicSync(filename, data, [options]) - -The synchronous version of **writeFileAtomic**. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/index.js b/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/index.js deleted file mode 100644 index c677ee9622..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/index.js +++ /dev/null @@ -1,134 +0,0 @@ -'use strict' -module.exports = writeFile -module.exports.sync = writeFileSync -module.exports._getTmpname = getTmpname // for testing - -var fs = require('graceful-fs') -var chain = require('slide').chain -var MurmurHash3 = require('imurmurhash') - -var invocations = 0 -function getTmpname (filename) { - return filename + '.' + - MurmurHash3(__filename) - .hash(String(process.pid)) - .hash(String(++invocations)) - .result() -} - -function writeFile (filename, data, options, callback) { - if (options instanceof Function) { - callback = options - options = null - } - if (!options) options = {} - fs.realpath(filename, function (_, realname) { - _writeFile(realname || filename, data, options, callback) - }) -} -function _writeFile (filename, data, options, callback) { - var tmpfile = getTmpname(filename) - - if (options.mode && options.chown) { - return thenWriteFile() - } else { - // Either mode or chown is not explicitly set - // Default behavior is to copy it from original file - return fs.stat(filename, function (err, stats) { - if (err || !stats) return thenWriteFile() - - options = Object.assign({}, options) - if (!options.mode) { - options.mode = stats.mode - } - if (!options.chown && process.getuid) { - options.chown = { uid: stats.uid, gid: stats.gid } - } - return thenWriteFile() - }) - } - - function thenWriteFile () { - chain([ - [writeFileAsync, tmpfile, data, options.mode, options.encoding || 'utf8'], - options.chown && [fs, fs.chown, tmpfile, options.chown.uid, options.chown.gid], - options.mode && [fs, fs.chmod, tmpfile, options.mode], - [fs, fs.rename, tmpfile, filename] - ], function (err) { - err ? fs.unlink(tmpfile, function () { callback(err) }) - : callback() - }) - } - - // doing this instead of `fs.writeFile` in order to get the ability to - // call `fsync`. - function writeFileAsync (file, data, mode, encoding, cb) { - fs.open(file, 'w', options.mode, function (err, fd) { - if (err) return cb(err) - if (Buffer.isBuffer(data)) { - return fs.write(fd, data, 0, data.length, 0, syncAndClose) - } else if (data != null) { - return fs.write(fd, String(data), 0, String(encoding), syncAndClose) - } else { - return syncAndClose() - } - function syncAndClose (err) { - if (err) return cb(err) - if (options.fsync !== false) { - fs.fsync(fd, function (err) { - if (err) return cb(err) - fs.close(fd, cb) - }) - } else { - fs.close(fd, cb) - } - } - }) - } -} - -function writeFileSync (filename, data, options) { - if (!options) options = {} - try { - filename = fs.realpathSync(filename) - } catch (ex) { - // it's ok, it'll happen on a not yet existing file - } - var tmpfile = getTmpname(filename) - - try { - if (!options.mode || !options.chown) { - // Either mode or chown is not explicitly set - // Default behavior is to copy it from original file - try { - var stats = fs.statSync(filename) - options = Object.assign({}, options) - if (!options.mode) { - options.mode = stats.mode - } - if (!options.chown && process.getuid) { - options.chown = { uid: stats.uid, gid: stats.gid } - } - } catch (ex) { - // ignore stat errors - } - } - - var fd = fs.openSync(tmpfile, 'w', options.mode) - if (Buffer.isBuffer(data)) { - fs.writeSync(fd, data, 0, data.length, 0) - } else if (data != null) { - fs.writeSync(fd, String(data), 0, String(options.encoding || 'utf8')) - } - if (options.fsync !== false) { - fs.fsyncSync(fd) - } - fs.closeSync(fd) - if (options.chown) fs.chownSync(tmpfile, options.chown.uid, options.chown.gid) - if (options.mode) fs.chmodSync(tmpfile, options.mode) - fs.renameSync(tmpfile, filename) - } catch (err) { - try { fs.unlinkSync(tmpfile) } catch (e) {} - throw err - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/package.json b/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/package.json deleted file mode 100644 index b43cbe09ff..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-file-atomic/2.1.0/node_modules/write-file-atomic/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "write-file-atomic", - "version": "2.1.0", - "description": "Write files in an atomic fashion w/configurable ownership", - "main": "index.js", - "scripts": { - "test": "standard && tap --100 test/*.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:iarna/write-file-atomic.git" - }, - "keywords": [ - "writeFile", - "atomic" - ], - "author": "Rebecca Turner (http://re-becca.org)", - "license": "ISC", - "bugs": { - "url": "https://github.com/iarna/write-file-atomic/issues" - }, - "homepage": "https://github.com/iarna/write-file-atomic", - "dependencies": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - }, - "devDependencies": { - "mkdirp": "^0.5.1", - "require-inject": "^1.4.0", - "rimraf": "^2.5.4", - "standard": "^10.0.2", - "tap": "^10.3.2" - }, - "files": [ - "index.js" - ] -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/detect-indent b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/detect-indent deleted file mode 120000 index abe8c4d3f2..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/detect-indent +++ /dev/null @@ -1 +0,0 @@ -../../../detect-indent/5.0.0/node_modules/detect-indent \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/graceful-fs b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/graceful-fs deleted file mode 120000 index 4db8bdb9f8..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/graceful-fs +++ /dev/null @@ -1 +0,0 @@ -../../../graceful-fs/4.1.11/node_modules/graceful-fs \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/make-dir b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/make-dir deleted file mode 120000 index f47c1359b9..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/make-dir +++ /dev/null @@ -1 +0,0 @@ -../../../make-dir/1.0.0/node_modules/make-dir \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/pify b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/pify deleted file mode 120000 index 39b64b43bb..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/pify +++ /dev/null @@ -1 +0,0 @@ -../../../pify/2.3.0/node_modules/pify \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/sort-keys b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/sort-keys deleted file mode 120000 index c3d04f44c7..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/sort-keys +++ /dev/null @@ -1 +0,0 @@ -../../../sort-keys/1.1.2/node_modules/sort-keys \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-file-atomic b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-file-atomic deleted file mode 120000 index 65010c6645..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-file-atomic +++ /dev/null @@ -1 +0,0 @@ -../../../write-file-atomic/2.1.0/node_modules/write-file-atomic \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/index.js b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/index.js deleted file mode 100644 index cbd7e706a0..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/index.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; -const path = require('path'); -const fs = require('graceful-fs'); -const writeFileAtomic = require('write-file-atomic'); -const sortKeys = require('sort-keys'); -const makeDir = require('make-dir'); -const pify = require('pify'); -const detectIndent = require('detect-indent'); - -const init = (fn, fp, data, opts) => { - if (!fp) { - throw new TypeError('Expected a filepath'); - } - - if (data === undefined) { - throw new TypeError('Expected data to stringify'); - } - - opts = Object.assign({ - indent: '\t', - sortKeys: false - }, opts); - - if (opts.sortKeys) { - data = sortKeys(data, { - deep: true, - compare: typeof opts.sortKeys === 'function' && opts.sortKeys - }); - } - - return fn(fp, data, opts); -}; - -const readFile = fp => pify(fs.readFile)(fp, 'utf8').catch(() => {}); - -const main = (fp, data, opts) => { - return (opts.detectIndent ? readFile(fp) : Promise.resolve()) - .then(str => { - const indent = str ? detectIndent(str).indent : opts.indent; - const json = JSON.stringify(data, opts.replacer, indent); - - return pify(writeFileAtomic)(fp, `${json}\n`, {mode: opts.mode}); - }); -}; - -const mainSync = (fp, data, opts) => { - let indent = opts.indent; - - if (opts.detectIndent) { - try { - const file = fs.readFileSync(fp, 'utf8'); - indent = detectIndent(file).indent; - } catch (err) { - if (err.code !== 'ENOENT') { - throw err; - } - } - } - - const json = JSON.stringify(data, opts.replacer, indent); - - return writeFileAtomic.sync(fp, `${json}\n`, {mode: opts.mode}); -}; - -module.exports = (fp, data, opts) => { - return makeDir(path.dirname(fp), {fs}) - .then(() => init(main, fp, data, opts)); -}; - -module.exports.sync = (fp, data, opts) => { - makeDir.sync(path.dirname(fp), {fs}); - init(mainSync, fp, data, opts); -}; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/license b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/license deleted file mode 100644 index e7af2f7710..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/package.json b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/package.json deleted file mode 100644 index 51f6a1d43c..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "write-json-file", - "version": "2.2.0", - "description": "Stringify and write JSON to a file atomically", - "license": "MIT", - "repository": "sindresorhus/write-json-file", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "write", - "json", - "stringify", - "file", - "fs", - "graceful", - "stable", - "sort", - "newline", - "indent", - "atomic", - "atomically" - ], - "dependencies": { - "detect-indent": "^5.0.0", - "graceful-fs": "^4.1.2", - "make-dir": "^1.0.0", - "pify": "^2.0.0", - "sort-keys": "^1.1.1", - "write-file-atomic": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "tempfile": "^2.0.0", - "xo": "*" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/readme.md deleted file mode 100644 index ab9162889a..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0/node_modules/write-json-file/readme.md +++ /dev/null @@ -1,83 +0,0 @@ -# write-json-file [![Build Status](https://travis-ci.org/sindresorhus/write-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/write-json-file) - -> Stringify and write JSON to a file [atomically](https://github.com/npm/write-file-atomic) - -Creates directories for you as needed. - - -## Install - -``` -$ npm install --save write-json-file -``` - - -## Usage - -```js -const writeJsonFile = require('write-json-file'); - -writeJsonFile('foo.json', {foo: true}).then(() => { - console.log('done'); -}); -``` - - -## API - -### writeJsonFile(filepath, data, [options]) - -Returns a `Promise`. - -### writeJsonFile.sync(filepath, data, [options]) - -#### options - -Type: `Object` - -##### indent - -Type: `string` `number`
-Default: `\t` - -Indentation as a string or number of spaces.
-Pass in `null` for no formatting. - -##### detectIndent - -Type: `boolean`
-Default: `false` - -Detect indentation automatically if the file exists. - -##### sortKeys - -Type: `boolean` `function`
-Default: `false` - -Sort the keys recursively.
-Optionally pass in a [`compare`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) function. - -##### replacer - -Type: `function` - -Passed into [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter). - -##### mode - -Type: `number`
-Default: `0o666` - -[Mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file. - - -## Related - -- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file -- [make-dir](https://github.com/sindresorhus/make-dir) - Make a directory and its parents if needed - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/sort-keys b/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/sort-keys deleted file mode 120000 index 5068a4a28c..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/sort-keys +++ /dev/null @@ -1 +0,0 @@ -../../../sort-keys/2.0.0/node_modules/sort-keys \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-json-file b/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-json-file deleted file mode 120000 index d0a27707d4..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-json-file +++ /dev/null @@ -1 +0,0 @@ -../../../write-json-file/2.2.0/node_modules/write-json-file \ No newline at end of file diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/index.js b/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/index.js deleted file mode 100644 index 981cc0b547..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/index.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; -const path = require('path'); -const writeJsonFile = require('write-json-file'); -const sortKeys = require('sort-keys'); - -const opts = {detectIndent: true}; - -const dependencyKeys = new Set([ - 'dependencies', - 'devDependencies', - 'optionalDependencies', - 'peerDependencies' -]); - -function normalize(pkg) { - const ret = {}; - - for (const key of Object.keys(pkg)) { - if (!dependencyKeys.has(key)) { - ret[key] = pkg[key]; - } else if (Object.keys(pkg[key]).length !== 0) { - ret[key] = sortKeys(pkg[key]); - } - } - - return ret; -} - -module.exports = (fp, data) => { - if (typeof fp !== 'string') { - data = fp; - fp = '.'; - } - - fp = path.basename(fp) === 'package.json' ? fp : path.join(fp, 'package.json'); - - data = normalize(data); - - return writeJsonFile(fp, data, opts); -}; - -module.exports.sync = (fp, data) => { - if (typeof fp !== 'string') { - data = fp; - fp = '.'; - } - - fp = path.basename(fp) === 'package.json' ? fp : path.join(fp, 'package.json'); - - data = normalize(data); - - writeJsonFile.sync(fp, data, opts); -}; diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/license b/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/license deleted file mode 100644 index e7af2f7710..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/package.json b/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/package.json deleted file mode 100644 index c0ca39a2ce..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "write-pkg", - "version": "3.1.0", - "description": "Write a package.json file", - "license": "MIT", - "repository": "sindresorhus/write-pkg", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "json", - "write", - "stringify", - "file", - "fs", - "graceful", - "pkg", - "package" - ], - "dependencies": { - "sort-keys": "^2.0.0", - "write-json-file": "^2.2.0" - }, - "devDependencies": { - "ava": "*", - "read-pkg": "^2.0.0", - "tempfile": "^2.0.0", - "xo": "*" - } -} diff --git a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/readme.md b/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/readme.md deleted file mode 100644 index a10a8b6d92..0000000000 --- a/packages/list/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg/readme.md +++ /dev/null @@ -1,59 +0,0 @@ -# write-pkg [![Build Status](https://travis-ci.org/sindresorhus/write-pkg.svg?branch=master)](https://travis-ci.org/sindresorhus/write-pkg) - -> Write a `package.json` file - -Writes atomically and creates directories for you as needed. Sorts dependencies when writing. Preserves the indentation if the file already exists. - - -## Install - -``` -$ npm install write-pkg -``` - - -## Usage - -```js -const path = require('path'); -const writePkg = require('write-pkg'); - -writePkg({foo: true}).then(() => { - console.log('done'); -}); - -writePkg(__dirname, {foo: true}).then(() => { - console.log('done'); -}); - -writePkg(path.join('unicorn', 'package.json'), {foo: true}).then(() => { - console.log('done'); -}); -``` - - -## API - -### writePkg([path], data) - -Returns a `Promise`. - -### writePkg.sync([path], data) - -#### path - -Type: `string`
-Default: `process.cwd()` - -Path to where the `package.json` file should be written or its directory. - - -## Related - -- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a `package.json` file -- [write-json-file](https://github.com/sindresorhus/write-json-file) - Stringify and write JSON to a file atomically - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/packages/list/example/node_modules/.shrinkwrap.yaml b/packages/list/example/node_modules/.shrinkwrap.yaml deleted file mode 100644 index 607298fd8f..0000000000 --- a/packages/list/example/node_modules/.shrinkwrap.yaml +++ /dev/null @@ -1,63 +0,0 @@ -dependencies: - write-pkg: 3.1.0 -packages: - /detect-indent/5.0.0: - resolution: - integrity: sha1-OHHMCmoALow+Wzz38zYmRnXwa50= - /graceful-fs/4.1.11: - resolution: - integrity: sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg= - /imurmurhash/0.1.4: - resolution: - integrity: sha1-khi5srkoojixPcT7a21XbyMUU+o= - /is-plain-obj/1.1.0: - resolution: - integrity: sha1-caUMhCnfync8kqOQpKA7OfzVHT4= - /make-dir/1.0.0: - dependencies: - pify: 2.3.0 - resolution: - integrity: sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg= - /pify/2.3.0: - resolution: - integrity: sha1-7RQaasBDqEnqWISY59yosVMw6Qw= - /slide/1.1.6: - resolution: - integrity: sha1-VusCfWW00tzmyy4tMsTUr8nh1wc= - /sort-keys/1.1.2: - dependencies: - is-plain-obj: 1.1.0 - resolution: - integrity: sha1-RBttTTRnmPG05J6JIK37oOVD+a0= - /sort-keys/2.0.0: - dependencies: - is-plain-obj: 1.1.0 - resolution: - integrity: sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg= - /write-file-atomic/2.1.0: - dependencies: - graceful-fs: 4.1.11 - imurmurhash: 0.1.4 - slide: 1.1.6 - resolution: - integrity: sha512-0TZ20a+xcIl4u0+Mj5xDH2yOWdmQiXlKf9Hm+TgDXjTMsEYb+gDrmb8e8UNAzMCitX8NBqG4Z/FUQIyzv/R1JQ== - /write-json-file/2.2.0: - dependencies: - detect-indent: 5.0.0 - graceful-fs: 4.1.11 - make-dir: 1.0.0 - pify: 2.3.0 - sort-keys: 1.1.2 - write-file-atomic: 2.1.0 - resolution: - integrity: sha1-UYYlBruzthnu+reFnx/WxtBTCHY= - /write-pkg/3.1.0: - dependencies: - sort-keys: 2.0.0 - write-json-file: 2.2.0 - resolution: - integrity: sha1-AwqZlMyZk9JbTnWp8aGSNgcpHOk= -registry: 'https://registry.npmjs.org/' -shrinkwrapVersion: 3 -specifiers: - write-pkg: ^3.1.0 diff --git a/packages/list/example/node_modules/write-pkg b/packages/list/example/node_modules/write-pkg deleted file mode 120000 index 522c419360..0000000000 --- a/packages/list/example/node_modules/write-pkg +++ /dev/null @@ -1 +0,0 @@ -.registry.npmjs.org/write-pkg/3.1.0/node_modules/write-pkg \ No newline at end of file diff --git a/packages/lockfile-file/test/fixtures/.gitignore b/packages/lockfile-file/test/fixtures/.gitignore deleted file mode 100644 index cf4bab9ddd..0000000000 --- a/packages/lockfile-file/test/fixtures/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!node_modules diff --git a/packages/make-dedicated-lockfile/tsconfig.json b/packages/make-dedicated-lockfile/tsconfig.json index f196e7d157..2ef2f87992 100644 --- a/packages/make-dedicated-lockfile/tsconfig.json +++ b/packages/make-dedicated-lockfile/tsconfig.json @@ -9,27 +9,27 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/prune-lockfile" + }, + { + "path": "../../pkg-manifest/exportable-manifest" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../../privatePackages/test-fixtures" }, + { + "path": "../../workspace/find-workspace-dir" + }, { "path": "../error" }, - { - "path": "../exportable-manifest" - }, - { - "path": "../find-workspace-dir" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../prune-lockfile" - }, - { - "path": "../read-project-manifest" - }, { "path": "../types" } diff --git a/packages/modules-cleaner/tsconfig.json b/packages/modules-cleaner/tsconfig.json deleted file mode 100644 index 520657ba6e..0000000000 --- a/packages/modules-cleaner/tsconfig.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../core-loggers" - }, - { - "path": "../dependency-path" - }, - { - "path": "../filter-lockfile" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../read-modules-dir" - }, - { - "path": "../remove-bins" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/modules-yaml/tsconfig.json b/packages/modules-yaml/tsconfig.json deleted file mode 100644 index 7fa294a1eb..0000000000 --- a/packages/modules-yaml/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../types" - } - ] -} diff --git a/packages/mount-modules/tsconfig.json b/packages/mount-modules/tsconfig.json index 60b46267c9..67679140b6 100644 --- a/packages/mount-modules/tsconfig.json +++ b/packages/mount-modules/tsconfig.json @@ -10,23 +10,23 @@ ], "references": [ { - "path": "../cafs" + "path": "../../config/config" }, { - "path": "../config" + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../store/cafs" + }, + { + "path": "../../store/store-path" }, { "path": "../dependency-path" }, - { - "path": "../lockfile-file" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../store-path" - }, { "path": "../types" } diff --git a/packages/network.auth-header/tsconfig.json b/packages/network.auth-header/tsconfig.json deleted file mode 100644 index b2232f7e30..0000000000 --- a/packages/network.auth-header/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../error" - } - ] -} diff --git a/packages/normalize-registries/tsconfig.json b/packages/normalize-registries/tsconfig.json deleted file mode 100644 index 7fa294a1eb..0000000000 --- a/packages/normalize-registries/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../types" - } - ] -} diff --git a/packages/outdated/tsconfig.json b/packages/outdated/tsconfig.json deleted file mode 100644 index 0f7866ea68..0000000000 --- a/packages/outdated/tsconfig.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../client" - }, - { - "path": "../constants" - }, - { - "path": "../dependency-path" - }, - { - "path": "../error" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../manifest-utils" - }, - { - "path": "../matcher" - }, - { - "path": "../modules-yaml" - }, - { - "path": "../npm-resolver" - }, - { - "path": "../pick-registry-for-package" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/package-bins/tsconfig.json b/packages/package-bins/tsconfig.json deleted file mode 100644 index 7fa294a1eb..0000000000 --- a/packages/package-bins/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../types" - } - ] -} diff --git a/packages/package-is-installable/tsconfig.json b/packages/package-is-installable/tsconfig.json deleted file mode 100644 index 4294fb7883..0000000000 --- a/packages/package-is-installable/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../core-loggers" - }, - { - "path": "../error" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/package-requester/tsconfig.json b/packages/package-requester/tsconfig.json deleted file mode 100644 index 86d09aafc6..0000000000 --- a/packages/package-requester/tsconfig.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/test-fixtures" - }, - { - "path": "../cafs" - }, - { - "path": "../cafs-types" - }, - { - "path": "../client" - }, - { - "path": "../core-loggers" - }, - { - "path": "../create-cafs-store" - }, - { - "path": "../dependency-path" - }, - { - "path": "../error" - }, - { - "path": "../fetcher-base" - }, - { - "path": "../graceful-fs" - }, - { - "path": "../package-is-installable" - }, - { - "path": "../pick-fetcher" - }, - { - "path": "../read-package-json" - }, - { - "path": "../resolver-base" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/pick-registry-for-package/tsconfig.json b/packages/pick-registry-for-package/tsconfig.json deleted file mode 100644 index 7fa294a1eb..0000000000 --- a/packages/pick-registry-for-package/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../types" - } - ] -} diff --git a/packages/plugin-commands-doctor/tsconfig.json b/packages/plugin-commands-doctor/tsconfig.json index c3c1fbe146..b4622792ac 100644 --- a/packages/plugin-commands-doctor/tsconfig.json +++ b/packages/plugin-commands-doctor/tsconfig.json @@ -10,10 +10,10 @@ ], "references": [ { - "path": "../cli-utils" + "path": "../../cli/cli-utils" }, { - "path": "../config" + "path": "../../config/config" } ] } diff --git a/packages/plugin-commands-init/tsconfig.json b/packages/plugin-commands-init/tsconfig.json index 552448b486..f1f5c313f2 100644 --- a/packages/plugin-commands-init/tsconfig.json +++ b/packages/plugin-commands-init/tsconfig.json @@ -9,23 +9,23 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../config/config" + }, + { + "path": "../../pkg-manifest/write-project-manifest" + }, { "path": "../../privatePackages/prepare" }, { "path": "../../privatePackages/test-fixtures" }, - { - "path": "../cli-utils" - }, - { - "path": "../config" - }, { "path": "../error" - }, - { - "path": "../write-project-manifest" } ] } diff --git a/packages/plugin-commands-installation/tsconfig.json b/packages/plugin-commands-installation/tsconfig.json deleted file mode 100644 index 5ac9f86bca..0000000000 --- a/packages/plugin-commands-installation/tsconfig.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/assert-project" - }, - { - "path": "../../privatePackages/prepare" - }, - { - "path": "../../privatePackages/test-fixtures" - }, - { - "path": "../cli-utils" - }, - { - "path": "../command" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../constants" - }, - { - "path": "../core" - }, - { - "path": "../error" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../find-workspace-dir" - }, - { - "path": "../find-workspace-packages" - }, - { - "path": "../graceful-fs" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../manifest-utils" - }, - { - "path": "../matcher" - }, - { - "path": "../modules-yaml" - }, - { - "path": "../outdated" - }, - { - "path": "../package-store" - }, - { - "path": "../parse-wanted-dependency" - }, - { - "path": "../plugin-commands-rebuild" - }, - { - "path": "../pnpmfile" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../resolver-base" - }, - { - "path": "../sort-packages" - }, - { - "path": "../store-connection-manager" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/plugin-commands-licenses/tsconfig.json b/packages/plugin-commands-licenses/tsconfig.json deleted file mode 100644 index df44f24266..0000000000 --- a/packages/plugin-commands-licenses/tsconfig.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../cli-utils" - }, - { - "path": "../command" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../constants" - }, - { - "path": "../error" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../license-scanner" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../plugin-commands-installation" - }, - { - "path": "../read-package-json" - }, - { - "path": "../store-path" - } - ] -} diff --git a/packages/plugin-commands-outdated/tsconfig.json b/packages/plugin-commands-outdated/tsconfig.json deleted file mode 100644 index bda841dab7..0000000000 --- a/packages/plugin-commands-outdated/tsconfig.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/prepare" - }, - { - "path": "../../privatePackages/test-fixtures" - }, - { - "path": "../cli-utils" - }, - { - "path": "../command" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../constants" - }, - { - "path": "../default-resolver" - }, - { - "path": "../error" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../matcher" - }, - { - "path": "../modules-yaml" - }, - { - "path": "../outdated" - }, - { - "path": "../plugin-commands-installation" - }, - { - "path": "../store-path" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/plugin-commands-patching/package.json b/packages/plugin-commands-patching/package.json index be6429aa74..51b42817d2 100644 --- a/packages/plugin-commands-patching/package.json +++ b/packages/plugin-commands-patching/package.json @@ -16,7 +16,7 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7777 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7772 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/packages/plugin-commands-patching/tsconfig.json b/packages/plugin-commands-patching/tsconfig.json index c145d91031..45d8da35cd 100644 --- a/packages/plugin-commands-patching/tsconfig.json +++ b/packages/plugin-commands-patching/tsconfig.json @@ -9,35 +9,35 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../config/config" + }, + { + "path": "../../config/pick-registry-for-package" + }, + { + "path": "../../pkg-manager/plugin-commands-installation" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../../privatePackages/prepare" }, { - "path": "../cli-utils" - }, - { - "path": "../config" + "path": "../../store/store-connection-manager" }, { "path": "../error" }, { "path": "../parse-wanted-dependency" - }, - { - "path": "../pick-registry-for-package" - }, - { - "path": "../plugin-commands-installation" - }, - { - "path": "../read-package-json" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../store-connection-manager" } ] } diff --git a/packages/plugin-commands-publishing/tsconfig.json b/packages/plugin-commands-publishing/tsconfig.json deleted file mode 100644 index 78ee309ade..0000000000 --- a/packages/plugin-commands-publishing/tsconfig.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/prepare" - }, - { - "path": "../cli-utils" - }, - { - "path": "../client" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../error" - }, - { - "path": "../exportable-manifest" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../git-utils" - }, - { - "path": "../lifecycle" - }, - { - "path": "../package-bins" - }, - { - "path": "../pick-registry-for-package" - }, - { - "path": "../resolver-base" - }, - { - "path": "../run-npm" - }, - { - "path": "../sort-packages" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/plugin-commands-rebuild/tsconfig.json b/packages/plugin-commands-rebuild/tsconfig.json deleted file mode 100644 index 1417446e47..0000000000 --- a/packages/plugin-commands-rebuild/tsconfig.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/prepare" - }, - { - "path": "../../privatePackages/test-fixtures" - }, - { - "path": "../cli-utils" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../constants" - }, - { - "path": "../core-loggers" - }, - { - "path": "../dependency-path" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../find-workspace-packages" - }, - { - "path": "../get-context" - }, - { - "path": "../lifecycle" - }, - { - "path": "../link-bins" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../lockfile-walker" - }, - { - "path": "../modules-yaml" - }, - { - "path": "../normalize-registries" - }, - { - "path": "../sort-packages" - }, - { - "path": "../store-connection-manager" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/plugin-commands-script-runners/tsconfig.json b/packages/plugin-commands-script-runners/tsconfig.json deleted file mode 100644 index f3c03de169..0000000000 --- a/packages/plugin-commands-script-runners/tsconfig.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/prepare" - }, - { - "path": "../cli-utils" - }, - { - "path": "../command" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../error" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../lifecycle" - }, - { - "path": "../package-bins" - }, - { - "path": "../plugin-commands-installation" - }, - { - "path": "../read-package-json" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../sort-packages" - }, - { - "path": "../store-path" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/plugin-commands-setup/tsconfig.json b/packages/plugin-commands-setup/tsconfig.json index f136214d28..ca4f3db0ad 100644 --- a/packages/plugin-commands-setup/tsconfig.json +++ b/packages/plugin-commands-setup/tsconfig.json @@ -11,10 +11,10 @@ ], "references": [ { - "path": "../../privatePackages/prepare" + "path": "../../cli/cli-utils" }, { - "path": "../cli-utils" + "path": "../../privatePackages/prepare" }, { "path": "../error" diff --git a/packages/pnpm/tsconfig.json b/packages/pnpm/tsconfig.json deleted file mode 100644 index 839b222b97..0000000000 --- a/packages/pnpm/tsconfig.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "composite": false, - "declaration": false, - "outDir": "lib", - "sourceMap": false, - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../../privatePackages/assert-project" - }, - { - "path": "../../privatePackages/prepare" - }, - { - "path": "../cli-meta" - }, - { - "path": "../cli-utils" - }, - { - "path": "../client" - }, - { - "path": "../command" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../constants" - }, - { - "path": "../core-loggers" - }, - { - "path": "../default-reporter" - }, - { - "path": "../dependency-path" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../find-workspace-dir" - }, - { - "path": "../find-workspace-packages" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../modules-yaml" - }, - { - "path": "../parse-cli-args" - }, - { - "path": "../pick-registry-for-package" - }, - { - "path": "../pkgs-graph" - }, - { - "path": "../plugin-commands-audit" - }, - { - "path": "../plugin-commands-deploy" - }, - { - "path": "../plugin-commands-doctor" - }, - { - "path": "../plugin-commands-env" - }, - { - "path": "../plugin-commands-init" - }, - { - "path": "../plugin-commands-installation" - }, - { - "path": "../plugin-commands-licenses" - }, - { - "path": "../plugin-commands-listing" - }, - { - "path": "../plugin-commands-outdated" - }, - { - "path": "../plugin-commands-patching" - }, - { - "path": "../plugin-commands-publishing" - }, - { - "path": "../plugin-commands-rebuild" - }, - { - "path": "../plugin-commands-script-runners" - }, - { - "path": "../plugin-commands-server" - }, - { - "path": "../plugin-commands-setup" - }, - { - "path": "../plugin-commands-store" - }, - { - "path": "../read-package-json" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../run-npm" - }, - { - "path": "../types" - }, - { - "path": "../write-project-manifest" - } - ] -} diff --git a/packages/pnpmfile/tsconfig.json b/packages/pnpmfile/tsconfig.json deleted file mode 100644 index 2dabb3c537..0000000000 --- a/packages/pnpmfile/tsconfig.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../core" - }, - { - "path": "../core-loggers" - }, - { - "path": "../error" - }, - { - "path": "../fetcher-base" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/prepare-package/tsconfig.json b/packages/prepare-package/tsconfig.json deleted file mode 100644 index 440921b941..0000000000 --- a/packages/prepare-package/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../error" - }, - { - "path": "../read-package-json" - } - ] -} diff --git a/packages/read-package-json/tsconfig.json b/packages/read-package-json/tsconfig.json deleted file mode 100644 index 696a95396d..0000000000 --- a/packages/read-package-json/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../error" - }, - { - "path": "../types" - } - ] -} diff --git a/packages/resolve-dependencies/tsconfig.json b/packages/resolve-dependencies/tsconfig.json deleted file mode 100644 index e9a9f1dbaf..0000000000 --- a/packages/resolve-dependencies/tsconfig.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../constants" - }, - { - "path": "../core-loggers" - }, - { - "path": "../dependency-path" - }, - { - "path": "../error" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../manifest-utils" - }, - { - "path": "../npm-resolver" - }, - { - "path": "../pick-registry-for-package" - }, - { - "path": "../prune-lockfile" - }, - { - "path": "../read-package-json" - }, - { - "path": "../resolver-base" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../types" - }, - { - "path": "../which-version-is-pinned" - } - ] -} diff --git a/packages/resolver-base/tsconfig.json b/packages/resolver-base/tsconfig.json deleted file mode 100644 index 7fa294a1eb..0000000000 --- a/packages/resolver-base/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../types" - } - ] -} diff --git a/packages/sort-packages/tsconfig.json b/packages/sort-packages/tsconfig.json deleted file mode 100644 index 7fa294a1eb..0000000000 --- a/packages/sort-packages/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../types" - } - ] -} diff --git a/packages/symlink-dependency/jest.config.js b/packages/symlink-dependency/jest.config.js deleted file mode 100644 index f697d83169..0000000000 --- a/packages/symlink-dependency/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../jest.config.js') diff --git a/packages/write-project-manifest/tsconfig.json b/packages/write-project-manifest/tsconfig.json deleted file mode 100644 index 7fa294a1eb..0000000000 --- a/packages/write-project-manifest/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@pnpm/tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts", - "../../typings/**/*.d.ts" - ], - "references": [ - { - "path": "../types" - } - ] -} diff --git a/packages/client/CHANGELOG.md b/pkg-manager/client/CHANGELOG.md similarity index 100% rename from packages/client/CHANGELOG.md rename to pkg-manager/client/CHANGELOG.md diff --git a/packages/client/README.md b/pkg-manager/client/README.md similarity index 100% rename from packages/client/README.md rename to pkg-manager/client/README.md diff --git a/packages/fs.indexed-pkg-importer/jest.config.js b/pkg-manager/client/jest.config.js similarity index 100% rename from packages/fs.indexed-pkg-importer/jest.config.js rename to pkg-manager/client/jest.config.js diff --git a/packages/client/package.json b/pkg-manager/client/package.json similarity index 88% rename from packages/client/package.json rename to pkg-manager/client/package.json index a160256fe8..08c964c34f 100644 --- a/packages/client/package.json +++ b/pkg-manager/client/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/client", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/client", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/client#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/client#readme", "dependencies": { "@pnpm/default-resolver": "workspace:*", "@pnpm/directory-fetcher": "workspace:*", diff --git a/packages/client/src/index.ts b/pkg-manager/client/src/index.ts similarity index 100% rename from packages/client/src/index.ts rename to pkg-manager/client/src/index.ts diff --git a/packages/client/test/index.ts b/pkg-manager/client/test/index.ts similarity index 100% rename from packages/client/test/index.ts rename to pkg-manager/client/test/index.ts diff --git a/pkg-manager/client/tsconfig.json b/pkg-manager/client/tsconfig.json new file mode 100644 index 0000000000..4317ece776 --- /dev/null +++ b/pkg-manager/client/tsconfig.json @@ -0,0 +1,40 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../fetching/directory-fetcher" + }, + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../fetching/git-fetcher" + }, + { + "path": "../../fetching/tarball-fetcher" + }, + { + "path": "../../network/auth-header" + }, + { + "path": "../../network/fetch" + }, + { + "path": "../../network/fetching-types" + }, + { + "path": "../../resolving/default-resolver" + }, + { + "path": "../../resolving/resolver-base" + } + ] +} diff --git a/packages/modules-cleaner/tsconfig.lint.json b/pkg-manager/client/tsconfig.lint.json similarity index 100% rename from packages/modules-cleaner/tsconfig.lint.json rename to pkg-manager/client/tsconfig.lint.json diff --git a/packages/core/CHANGELOG.md b/pkg-manager/core/CHANGELOG.md similarity index 100% rename from packages/core/CHANGELOG.md rename to pkg-manager/core/CHANGELOG.md diff --git a/packages/core/README.md b/pkg-manager/core/README.md similarity index 100% rename from packages/core/README.md rename to pkg-manager/core/README.md diff --git a/packages/git-resolver/jest.config.js b/pkg-manager/core/jest.config.js similarity index 100% rename from packages/git-resolver/jest.config.js rename to pkg-manager/core/jest.config.js diff --git a/packages/core/package.json b/pkg-manager/core/package.json similarity index 96% rename from packages/core/package.json rename to pkg-manager/core/package.json index 3f7cda38db..d3e8340d32 100644 --- a/packages/core/package.json +++ b/pkg-manager/core/package.json @@ -104,7 +104,7 @@ "directories": { "test": "test" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/core#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/core#readme", "keywords": [ "pnpm7", "dependency manager", @@ -132,7 +132,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/core", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/core", "scripts": { "start": "tsc --watch", "?commit": "echo 'Run Git commit wizard'", diff --git a/packages/core/src/api.ts b/pkg-manager/core/src/api.ts similarity index 100% rename from packages/core/src/api.ts rename to pkg-manager/core/src/api.ts diff --git a/packages/core/src/fs/gracefulify.ts b/pkg-manager/core/src/fs/gracefulify.ts similarity index 100% rename from packages/core/src/fs/gracefulify.ts rename to pkg-manager/core/src/fs/gracefulify.ts diff --git a/packages/core/src/getPeerDependencyIssues.ts b/pkg-manager/core/src/getPeerDependencyIssues.ts similarity index 100% rename from packages/core/src/getPeerDependencyIssues.ts rename to pkg-manager/core/src/getPeerDependencyIssues.ts diff --git a/packages/core/src/index.ts b/pkg-manager/core/src/index.ts similarity index 100% rename from packages/core/src/index.ts rename to pkg-manager/core/src/index.ts diff --git a/packages/core/src/install/allProjectsAreUpToDate.ts b/pkg-manager/core/src/install/allProjectsAreUpToDate.ts similarity index 100% rename from packages/core/src/install/allProjectsAreUpToDate.ts rename to pkg-manager/core/src/install/allProjectsAreUpToDate.ts diff --git a/packages/core/src/install/extendInstallOptions.ts b/pkg-manager/core/src/install/extendInstallOptions.ts similarity index 100% rename from packages/core/src/install/extendInstallOptions.ts rename to pkg-manager/core/src/install/extendInstallOptions.ts diff --git a/packages/core/src/install/getPreferredVersions.test.ts b/pkg-manager/core/src/install/getPreferredVersions.test.ts similarity index 100% rename from packages/core/src/install/getPreferredVersions.test.ts rename to pkg-manager/core/src/install/getPreferredVersions.test.ts diff --git a/packages/core/src/install/getPreferredVersions.ts b/pkg-manager/core/src/install/getPreferredVersions.ts similarity index 100% rename from packages/core/src/install/getPreferredVersions.ts rename to pkg-manager/core/src/install/getPreferredVersions.ts diff --git a/packages/core/src/install/hooks.ts b/pkg-manager/core/src/install/hooks.ts similarity index 100% rename from packages/core/src/install/hooks.ts rename to pkg-manager/core/src/install/hooks.ts diff --git a/packages/core/src/install/index.ts b/pkg-manager/core/src/install/index.ts similarity index 100% rename from packages/core/src/install/index.ts rename to pkg-manager/core/src/install/index.ts diff --git a/packages/core/src/install/link.ts b/pkg-manager/core/src/install/link.ts similarity index 100% rename from packages/core/src/install/link.ts rename to pkg-manager/core/src/install/link.ts diff --git a/packages/core/src/install/reportPeerDependencyIssues.ts b/pkg-manager/core/src/install/reportPeerDependencyIssues.ts similarity index 100% rename from packages/core/src/install/reportPeerDependencyIssues.ts rename to pkg-manager/core/src/install/reportPeerDependencyIssues.ts diff --git a/packages/core/src/link/index.ts b/pkg-manager/core/src/link/index.ts similarity index 100% rename from packages/core/src/link/index.ts rename to pkg-manager/core/src/link/index.ts diff --git a/packages/core/src/link/options.ts b/pkg-manager/core/src/link/options.ts similarity index 100% rename from packages/core/src/link/options.ts rename to pkg-manager/core/src/link/options.ts diff --git a/packages/core/src/parseWantedDependencies.ts b/pkg-manager/core/src/parseWantedDependencies.ts similarity index 100% rename from packages/core/src/parseWantedDependencies.ts rename to pkg-manager/core/src/parseWantedDependencies.ts diff --git a/packages/core/src/pnpmPkgJson.ts b/pkg-manager/core/src/pnpmPkgJson.ts similarity index 100% rename from packages/core/src/pnpmPkgJson.ts rename to pkg-manager/core/src/pnpmPkgJson.ts diff --git a/packages/core/src/types.ts b/pkg-manager/core/src/types.ts similarity index 100% rename from packages/core/src/types.ts rename to pkg-manager/core/src/types.ts diff --git a/packages/core/src/uninstall/removeDeps.ts b/pkg-manager/core/src/uninstall/removeDeps.ts similarity index 100% rename from packages/core/src/uninstall/removeDeps.ts rename to pkg-manager/core/src/uninstall/removeDeps.ts diff --git a/packages/core/test/allProjectsAreUpToDate.test.ts b/pkg-manager/core/test/allProjectsAreUpToDate.test.ts similarity index 100% rename from packages/core/test/allProjectsAreUpToDate.test.ts rename to pkg-manager/core/test/allProjectsAreUpToDate.test.ts diff --git a/packages/core/test/api.ts b/pkg-manager/core/test/api.ts similarity index 100% rename from packages/core/test/api.ts rename to pkg-manager/core/test/api.ts diff --git a/packages/core/test/breakingChanges.ts b/pkg-manager/core/test/breakingChanges.ts similarity index 100% rename from packages/core/test/breakingChanges.ts rename to pkg-manager/core/test/breakingChanges.ts diff --git a/packages/core/test/brokenLockfileIntegrity.ts b/pkg-manager/core/test/brokenLockfileIntegrity.ts similarity index 100% rename from packages/core/test/brokenLockfileIntegrity.ts rename to pkg-manager/core/test/brokenLockfileIntegrity.ts diff --git a/packages/core/test/cache.ts b/pkg-manager/core/test/cache.ts similarity index 100% rename from packages/core/test/cache.ts rename to pkg-manager/core/test/cache.ts diff --git a/packages/core/test/fixtures/missing-pkg-name.tgz b/pkg-manager/core/test/fixtures/missing-pkg-name.tgz similarity index 100% rename from packages/core/test/fixtures/missing-pkg-name.tgz rename to pkg-manager/core/test/fixtures/missing-pkg-name.tgz diff --git a/packages/core/test/fixtures/missing-pkg-name/package.json b/pkg-manager/core/test/fixtures/missing-pkg-name/package.json similarity index 100% rename from packages/core/test/fixtures/missing-pkg-name/package.json rename to pkg-manager/core/test/fixtures/missing-pkg-name/package.json diff --git a/packages/core/test/fixtures/patch-pkg/is-positive@1.0.0.patch b/pkg-manager/core/test/fixtures/patch-pkg/is-positive@1.0.0.patch similarity index 100% rename from packages/core/test/fixtures/patch-pkg/is-positive@1.0.0.patch rename to pkg-manager/core/test/fixtures/patch-pkg/is-positive@1.0.0.patch diff --git a/packages/core/test/fixtures/symlink-workspace/app1/packages/public/bar/package.json b/pkg-manager/core/test/fixtures/symlink-workspace/app1/packages/public/bar/package.json similarity index 100% rename from packages/core/test/fixtures/symlink-workspace/app1/packages/public/bar/package.json rename to pkg-manager/core/test/fixtures/symlink-workspace/app1/packages/public/bar/package.json diff --git a/packages/core/test/fixtures/symlink-workspace/app1/packages/public/foo/package.json b/pkg-manager/core/test/fixtures/symlink-workspace/app1/packages/public/foo/package.json similarity index 100% rename from packages/core/test/fixtures/symlink-workspace/app1/packages/public/foo/package.json rename to pkg-manager/core/test/fixtures/symlink-workspace/app1/packages/public/foo/package.json diff --git a/packages/core/test/fixtures/symlink-workspace/app1/packages/public/foo/pnpm-lock.yaml b/pkg-manager/core/test/fixtures/symlink-workspace/app1/packages/public/foo/pnpm-lock.yaml similarity index 100% rename from packages/core/test/fixtures/symlink-workspace/app1/packages/public/foo/pnpm-lock.yaml rename to pkg-manager/core/test/fixtures/symlink-workspace/app1/packages/public/foo/pnpm-lock.yaml diff --git a/packages/core/test/fixtures/symlink-workspace/app2/packages/.keep b/pkg-manager/core/test/fixtures/symlink-workspace/app2/packages/.keep similarity index 100% rename from packages/core/test/fixtures/symlink-workspace/app2/packages/.keep rename to pkg-manager/core/test/fixtures/symlink-workspace/app2/packages/.keep diff --git a/packages/core/test/fixtures/tar-pkg-with-dep-1/package.json b/pkg-manager/core/test/fixtures/tar-pkg-with-dep-1/package.json similarity index 100% rename from packages/core/test/fixtures/tar-pkg-with-dep-1/package.json rename to pkg-manager/core/test/fixtures/tar-pkg-with-dep-1/package.json diff --git a/packages/core/test/fixtures/tar-pkg-with-dep-1/tar-pkg-with-dep-1.0.0.tgz b/pkg-manager/core/test/fixtures/tar-pkg-with-dep-1/tar-pkg-with-dep-1.0.0.tgz similarity index 100% rename from packages/core/test/fixtures/tar-pkg-with-dep-1/tar-pkg-with-dep-1.0.0.tgz rename to pkg-manager/core/test/fixtures/tar-pkg-with-dep-1/tar-pkg-with-dep-1.0.0.tgz diff --git a/packages/core/test/fixtures/tar-pkg-with-dep-2/package.json b/pkg-manager/core/test/fixtures/tar-pkg-with-dep-2/package.json similarity index 100% rename from packages/core/test/fixtures/tar-pkg-with-dep-2/package.json rename to pkg-manager/core/test/fixtures/tar-pkg-with-dep-2/package.json diff --git a/packages/core/test/fixtures/tar-pkg-with-dep-2/tar-pkg-with-dep-1.0.0.tgz b/pkg-manager/core/test/fixtures/tar-pkg-with-dep-2/tar-pkg-with-dep-1.0.0.tgz similarity index 100% rename from packages/core/test/fixtures/tar-pkg-with-dep-2/tar-pkg-with-dep-1.0.0.tgz rename to pkg-manager/core/test/fixtures/tar-pkg-with-dep-2/tar-pkg-with-dep-1.0.0.tgz diff --git a/packages/core/test/fixtures/tar-pkg-with-peers/index.js b/pkg-manager/core/test/fixtures/tar-pkg-with-peers/index.js similarity index 100% rename from packages/core/test/fixtures/tar-pkg-with-peers/index.js rename to pkg-manager/core/test/fixtures/tar-pkg-with-peers/index.js diff --git a/packages/core/test/fixtures/tar-pkg-with-peers/package.json b/pkg-manager/core/test/fixtures/tar-pkg-with-peers/package.json similarity index 100% rename from packages/core/test/fixtures/tar-pkg-with-peers/package.json rename to pkg-manager/core/test/fixtures/tar-pkg-with-peers/package.json diff --git a/packages/core/test/fixtures/tar-pkg-with-peers/tar-pkg-with-peers-1.0.0.tgz b/pkg-manager/core/test/fixtures/tar-pkg-with-peers/tar-pkg-with-peers-1.0.0.tgz similarity index 100% rename from packages/core/test/fixtures/tar-pkg-with-peers/tar-pkg-with-peers-1.0.0.tgz rename to pkg-manager/core/test/fixtures/tar-pkg-with-peers/tar-pkg-with-peers-1.0.0.tgz diff --git a/packages/core/test/getPeerDependencyIssues.test.ts b/pkg-manager/core/test/getPeerDependencyIssues.test.ts similarity index 100% rename from packages/core/test/getPeerDependencyIssues.test.ts rename to pkg-manager/core/test/getPeerDependencyIssues.test.ts diff --git a/packages/core/test/hoistedNodeLinker/install.ts b/pkg-manager/core/test/hoistedNodeLinker/install.ts similarity index 100% rename from packages/core/test/hoistedNodeLinker/install.ts rename to pkg-manager/core/test/hoistedNodeLinker/install.ts diff --git a/packages/core/test/hoistedNodeLinker/uninstall.ts b/pkg-manager/core/test/hoistedNodeLinker/uninstall.ts similarity index 100% rename from packages/core/test/hoistedNodeLinker/uninstall.ts rename to pkg-manager/core/test/hoistedNodeLinker/uninstall.ts diff --git a/packages/core/test/install/aliases.ts b/pkg-manager/core/test/install/aliases.ts similarity index 100% rename from packages/core/test/install/aliases.ts rename to pkg-manager/core/test/install/aliases.ts diff --git a/packages/core/test/install/auth.ts b/pkg-manager/core/test/install/auth.ts similarity index 100% rename from packages/core/test/install/auth.ts rename to pkg-manager/core/test/install/auth.ts diff --git a/packages/core/test/install/autoInstallPeers.ts b/pkg-manager/core/test/install/autoInstallPeers.ts similarity index 100% rename from packages/core/test/install/autoInstallPeers.ts rename to pkg-manager/core/test/install/autoInstallPeers.ts diff --git a/packages/core/test/install/dedupe.ts b/pkg-manager/core/test/install/dedupe.ts similarity index 100% rename from packages/core/test/install/dedupe.ts rename to pkg-manager/core/test/install/dedupe.ts diff --git a/packages/core/test/install/deepRecursive.ts b/pkg-manager/core/test/install/deepRecursive.ts similarity index 100% rename from packages/core/test/install/deepRecursive.ts rename to pkg-manager/core/test/install/deepRecursive.ts diff --git a/packages/core/test/install/defaultPeerDependencies.ts b/pkg-manager/core/test/install/defaultPeerDependencies.ts similarity index 100% rename from packages/core/test/install/defaultPeerDependencies.ts rename to pkg-manager/core/test/install/defaultPeerDependencies.ts diff --git a/packages/core/test/install/fixLockfile.ts b/pkg-manager/core/test/install/fixLockfile.ts similarity index 100% rename from packages/core/test/install/fixLockfile.ts rename to pkg-manager/core/test/install/fixLockfile.ts diff --git a/packages/core/test/install/fromRepo.ts b/pkg-manager/core/test/install/fromRepo.ts similarity index 100% rename from packages/core/test/install/fromRepo.ts rename to pkg-manager/core/test/install/fromRepo.ts diff --git a/packages/core/test/install/fromTarball.ts b/pkg-manager/core/test/install/fromTarball.ts similarity index 100% rename from packages/core/test/install/fromTarball.ts rename to pkg-manager/core/test/install/fromTarball.ts diff --git a/packages/core/test/install/frozenLockfile.ts b/pkg-manager/core/test/install/frozenLockfile.ts similarity index 100% rename from packages/core/test/install/frozenLockfile.ts rename to pkg-manager/core/test/install/frozenLockfile.ts diff --git a/packages/core/test/install/gitBranchLockfile.test.ts b/pkg-manager/core/test/install/gitBranchLockfile.test.ts similarity index 100% rename from packages/core/test/install/gitBranchLockfile.test.ts rename to pkg-manager/core/test/install/gitBranchLockfile.test.ts diff --git a/packages/core/test/install/hoist.ts b/pkg-manager/core/test/install/hoist.ts similarity index 100% rename from packages/core/test/install/hoist.ts rename to pkg-manager/core/test/install/hoist.ts diff --git a/packages/core/test/install/hooks.ts b/pkg-manager/core/test/install/hooks.ts similarity index 100% rename from packages/core/test/install/hooks.ts rename to pkg-manager/core/test/install/hooks.ts diff --git a/packages/core/test/install/injectLocalPackages.ts b/pkg-manager/core/test/install/injectLocalPackages.ts similarity index 100% rename from packages/core/test/install/injectLocalPackages.ts rename to pkg-manager/core/test/install/injectLocalPackages.ts diff --git a/packages/core/test/install/installationChecks.ts b/pkg-manager/core/test/install/installationChecks.ts similarity index 100% rename from packages/core/test/install/installationChecks.ts rename to pkg-manager/core/test/install/installationChecks.ts diff --git a/packages/core/test/install/lifecycleScripts.ts b/pkg-manager/core/test/install/lifecycleScripts.ts similarity index 100% rename from packages/core/test/install/lifecycleScripts.ts rename to pkg-manager/core/test/install/lifecycleScripts.ts diff --git a/packages/core/test/install/local.ts b/pkg-manager/core/test/install/local.ts similarity index 100% rename from packages/core/test/install/local.ts rename to pkg-manager/core/test/install/local.ts diff --git a/packages/core/test/install/lockfileDir.ts b/pkg-manager/core/test/install/lockfileDir.ts similarity index 100% rename from packages/core/test/install/lockfileDir.ts rename to pkg-manager/core/test/install/lockfileDir.ts diff --git a/packages/core/test/install/lockfileOnly.ts b/pkg-manager/core/test/install/lockfileOnly.ts similarity index 100% rename from packages/core/test/install/lockfileOnly.ts rename to pkg-manager/core/test/install/lockfileOnly.ts diff --git a/packages/core/test/install/misc.ts b/pkg-manager/core/test/install/misc.ts similarity index 100% rename from packages/core/test/install/misc.ts rename to pkg-manager/core/test/install/misc.ts diff --git a/packages/core/test/install/modulesCache.ts b/pkg-manager/core/test/install/modulesCache.ts similarity index 100% rename from packages/core/test/install/modulesCache.ts rename to pkg-manager/core/test/install/modulesCache.ts diff --git a/packages/core/test/install/modulesDir.ts b/pkg-manager/core/test/install/modulesDir.ts similarity index 100% rename from packages/core/test/install/modulesDir.ts rename to pkg-manager/core/test/install/modulesDir.ts diff --git a/packages/core/test/install/multipleImporters.ts b/pkg-manager/core/test/install/multipleImporters.ts similarity index 100% rename from packages/core/test/install/multipleImporters.ts rename to pkg-manager/core/test/install/multipleImporters.ts diff --git a/packages/core/test/install/only.ts b/pkg-manager/core/test/install/only.ts similarity index 100% rename from packages/core/test/install/only.ts rename to pkg-manager/core/test/install/only.ts diff --git a/packages/core/test/install/optionalDependencies.ts b/pkg-manager/core/test/install/optionalDependencies.ts similarity index 100% rename from packages/core/test/install/optionalDependencies.ts rename to pkg-manager/core/test/install/optionalDependencies.ts diff --git a/packages/core/test/install/overrides.ts b/pkg-manager/core/test/install/overrides.ts similarity index 100% rename from packages/core/test/install/overrides.ts rename to pkg-manager/core/test/install/overrides.ts diff --git a/packages/core/test/install/packageExtensions.ts b/pkg-manager/core/test/install/packageExtensions.ts similarity index 100% rename from packages/core/test/install/packageExtensions.ts rename to pkg-manager/core/test/install/packageExtensions.ts diff --git a/packages/core/test/install/patch.ts b/pkg-manager/core/test/install/patch.ts similarity index 100% rename from packages/core/test/install/patch.ts rename to pkg-manager/core/test/install/patch.ts diff --git a/packages/core/test/install/peerDependencies.ts b/pkg-manager/core/test/install/peerDependencies.ts similarity index 100% rename from packages/core/test/install/peerDependencies.ts rename to pkg-manager/core/test/install/peerDependencies.ts diff --git a/packages/core/test/install/reporting.ts b/pkg-manager/core/test/install/reporting.ts similarity index 100% rename from packages/core/test/install/reporting.ts rename to pkg-manager/core/test/install/reporting.ts diff --git a/packages/core/test/install/sideEffects.ts b/pkg-manager/core/test/install/sideEffects.ts similarity index 100% rename from packages/core/test/install/sideEffects.ts rename to pkg-manager/core/test/install/sideEffects.ts diff --git a/packages/core/test/install/store.ts b/pkg-manager/core/test/install/store.ts similarity index 100% rename from packages/core/test/install/store.ts rename to pkg-manager/core/test/install/store.ts diff --git a/packages/core/test/install/timeBasedResolutionMode.ts b/pkg-manager/core/test/install/timeBasedResolutionMode.ts similarity index 100% rename from packages/core/test/install/timeBasedResolutionMode.ts rename to pkg-manager/core/test/install/timeBasedResolutionMode.ts diff --git a/packages/core/test/install/update.ts b/pkg-manager/core/test/install/update.ts similarity index 100% rename from packages/core/test/install/update.ts rename to pkg-manager/core/test/install/update.ts diff --git a/packages/core/test/install/updatingPkgJson.ts b/pkg-manager/core/test/install/updatingPkgJson.ts similarity index 100% rename from packages/core/test/install/updatingPkgJson.ts rename to pkg-manager/core/test/install/updatingPkgJson.ts diff --git a/packages/core/test/link.ts b/pkg-manager/core/test/link.ts similarity index 100% rename from packages/core/test/link.ts rename to pkg-manager/core/test/link.ts diff --git a/packages/core/test/lockfile.ts b/pkg-manager/core/test/lockfile.ts similarity index 100% rename from packages/core/test/lockfile.ts rename to pkg-manager/core/test/lockfile.ts diff --git a/packages/core/test/offline.ts b/pkg-manager/core/test/offline.ts similarity index 100% rename from packages/core/test/offline.ts rename to pkg-manager/core/test/offline.ts diff --git a/packages/core/test/packageImportMethods.ts b/pkg-manager/core/test/packageImportMethods.ts similarity index 100% rename from packages/core/test/packageImportMethods.ts rename to pkg-manager/core/test/packageImportMethods.ts diff --git a/packages/core/test/prune.ts b/pkg-manager/core/test/prune.ts similarity index 100% rename from packages/core/test/prune.ts rename to pkg-manager/core/test/prune.ts diff --git a/packages/core/test/uninstall.ts b/pkg-manager/core/test/uninstall.ts similarity index 100% rename from packages/core/test/uninstall.ts rename to pkg-manager/core/test/uninstall.ts diff --git a/packages/core/test/unlink.ts b/pkg-manager/core/test/unlink.ts similarity index 100% rename from packages/core/test/unlink.ts rename to pkg-manager/core/test/unlink.ts diff --git a/packages/core/test/utils/index.ts b/pkg-manager/core/test/utils/index.ts similarity index 100% rename from packages/core/test/utils/index.ts rename to pkg-manager/core/test/utils/index.ts diff --git a/packages/core/test/utils/simple-package.json b/pkg-manager/core/test/utils/simple-package.json similarity index 100% rename from packages/core/test/utils/simple-package.json rename to pkg-manager/core/test/utils/simple-package.json diff --git a/packages/core/test/utils/testDefaults.ts b/pkg-manager/core/test/utils/testDefaults.ts similarity index 100% rename from packages/core/test/utils/testDefaults.ts rename to pkg-manager/core/test/utils/testDefaults.ts diff --git a/pkg-manager/core/tsconfig.json b/pkg-manager/core/tsconfig.json new file mode 100644 index 0000000000..2c685724b7 --- /dev/null +++ b/pkg-manager/core/tsconfig.json @@ -0,0 +1,148 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../config/matcher" + }, + { + "path": "../../config/normalize-registries" + }, + { + "path": "../../exec/build-modules" + }, + { + "path": "../../exec/lifecycle" + }, + { + "path": "../../fs/read-modules-dir" + }, + { + "path": "../../fs/symlink-dependency" + }, + { + "path": "../../hooks/read-package-hook" + }, + { + "path": "../../lockfile/filter-lockfile" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-to-pnp" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../lockfile/lockfile-walker" + }, + { + "path": "../../lockfile/prune-lockfile" + }, + { + "path": "../../packages/calc-dep-state" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/crypto.base32-hash" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/git-utils" + }, + { + "path": "../../packages/parse-wanted-dependency" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../packages/which-version-is-pinned" + }, + { + "path": "../../pkg-manifest/manifest-utils" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, + { + "path": "../../privatePackages/assert-project" + }, + { + "path": "../../privatePackages/assert-store" + }, + { + "path": "../../privatePackages/prepare" + }, + { + "path": "../../privatePackages/test-fixtures" + }, + { + "path": "../../resolving/resolver-base" + }, + { + "path": "../../store/cafs" + }, + { + "path": "../../store/package-store" + }, + { + "path": "../../store/store-controller-types" + }, + { + "path": "../../store/store-path" + }, + { + "path": "../client" + }, + { + "path": "../get-context" + }, + { + "path": "../headless" + }, + { + "path": "../hoist" + }, + { + "path": "../link-bins" + }, + { + "path": "../modules-cleaner" + }, + { + "path": "../modules-yaml" + }, + { + "path": "../package-requester" + }, + { + "path": "../remove-bins" + }, + { + "path": "../resolve-dependencies" + } + ] +} diff --git a/packages/modules-yaml/tsconfig.lint.json b/pkg-manager/core/tsconfig.lint.json similarity index 100% rename from packages/modules-yaml/tsconfig.lint.json rename to pkg-manager/core/tsconfig.lint.json diff --git a/packages/get-context/CHANGELOG.md b/pkg-manager/get-context/CHANGELOG.md similarity index 100% rename from packages/get-context/CHANGELOG.md rename to pkg-manager/get-context/CHANGELOG.md diff --git a/packages/get-context/README.md b/pkg-manager/get-context/README.md similarity index 100% rename from packages/get-context/README.md rename to pkg-manager/get-context/README.md diff --git a/packages/get-context/package.json b/pkg-manager/get-context/package.json similarity index 88% rename from packages/get-context/package.json rename to pkg-manager/get-context/package.json index 79a1f3eff8..f8ba900aa6 100644 --- a/packages/get-context/package.json +++ b/pkg-manager/get-context/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/get-context", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/get-context", "keywords": [ "pnpm7", "pnpm", @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/get-context#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/get-context#readme", "devDependencies": { "@pnpm/get-context": "workspace:*", "@types/is-ci": "^3.0.0", diff --git a/packages/get-context/src/checkCompatibility/BreakingChangeError.ts b/pkg-manager/get-context/src/checkCompatibility/BreakingChangeError.ts similarity index 100% rename from packages/get-context/src/checkCompatibility/BreakingChangeError.ts rename to pkg-manager/get-context/src/checkCompatibility/BreakingChangeError.ts diff --git a/packages/get-context/src/checkCompatibility/ErrorRelatedSources.ts b/pkg-manager/get-context/src/checkCompatibility/ErrorRelatedSources.ts similarity index 100% rename from packages/get-context/src/checkCompatibility/ErrorRelatedSources.ts rename to pkg-manager/get-context/src/checkCompatibility/ErrorRelatedSources.ts diff --git a/packages/get-context/src/checkCompatibility/ModulesBreakingChangeError.ts b/pkg-manager/get-context/src/checkCompatibility/ModulesBreakingChangeError.ts similarity index 100% rename from packages/get-context/src/checkCompatibility/ModulesBreakingChangeError.ts rename to pkg-manager/get-context/src/checkCompatibility/ModulesBreakingChangeError.ts diff --git a/packages/get-context/src/checkCompatibility/UnexpectedStoreError.ts b/pkg-manager/get-context/src/checkCompatibility/UnexpectedStoreError.ts similarity index 100% rename from packages/get-context/src/checkCompatibility/UnexpectedStoreError.ts rename to pkg-manager/get-context/src/checkCompatibility/UnexpectedStoreError.ts diff --git a/packages/get-context/src/checkCompatibility/UnexpectedVirtualStoreDirError.ts b/pkg-manager/get-context/src/checkCompatibility/UnexpectedVirtualStoreDirError.ts similarity index 100% rename from packages/get-context/src/checkCompatibility/UnexpectedVirtualStoreDirError.ts rename to pkg-manager/get-context/src/checkCompatibility/UnexpectedVirtualStoreDirError.ts diff --git a/packages/get-context/src/checkCompatibility/index.ts b/pkg-manager/get-context/src/checkCompatibility/index.ts similarity index 100% rename from packages/get-context/src/checkCompatibility/index.ts rename to pkg-manager/get-context/src/checkCompatibility/index.ts diff --git a/packages/get-context/src/index.ts b/pkg-manager/get-context/src/index.ts similarity index 100% rename from packages/get-context/src/index.ts rename to pkg-manager/get-context/src/index.ts diff --git a/packages/get-context/src/readLockfiles.ts b/pkg-manager/get-context/src/readLockfiles.ts similarity index 100% rename from packages/get-context/src/readLockfiles.ts rename to pkg-manager/get-context/src/readLockfiles.ts diff --git a/packages/get-context/tsconfig.json b/pkg-manager/get-context/tsconfig.json similarity index 63% rename from packages/get-context/tsconfig.json rename to pkg-manager/get-context/tsconfig.json index 21dfbbea4a..5fe60d64c3 100644 --- a/packages/get-context/tsconfig.json +++ b/pkg-manager/get-context/tsconfig.json @@ -10,25 +10,25 @@ ], "references": [ { - "path": "../constants" + "path": "../../lockfile/lockfile-file" }, { - "path": "../core-loggers" + "path": "../../packages/constants" }, { - "path": "../error" + "path": "../../packages/core-loggers" }, { - "path": "../lockfile-file" + "path": "../../packages/error" + }, + { + "path": "../../packages/types" }, { "path": "../modules-yaml" }, { "path": "../read-projects-context" - }, - { - "path": "../types" } ] } diff --git a/packages/network.auth-header/tsconfig.lint.json b/pkg-manager/get-context/tsconfig.lint.json similarity index 100% rename from packages/network.auth-header/tsconfig.lint.json rename to pkg-manager/get-context/tsconfig.lint.json diff --git a/packages/headless/CHANGELOG.md b/pkg-manager/headless/CHANGELOG.md similarity index 100% rename from packages/headless/CHANGELOG.md rename to pkg-manager/headless/CHANGELOG.md diff --git a/packages/headless/README.md b/pkg-manager/headless/README.md similarity index 100% rename from packages/headless/README.md rename to pkg-manager/headless/README.md diff --git a/packages/headless/jest.config.js b/pkg-manager/headless/jest.config.js similarity index 100% rename from packages/headless/jest.config.js rename to pkg-manager/headless/jest.config.js diff --git a/packages/headless/package.json b/pkg-manager/headless/package.json similarity index 93% rename from packages/headless/package.json rename to pkg-manager/headless/package.json index f98fe04f21..bae57b9141 100644 --- a/packages/headless/package.json +++ b/pkg-manager/headless/package.json @@ -39,7 +39,7 @@ "directories": { "test": "test" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/headless#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/headless#readme", "keywords": [ "pnpm7", "pnpm", @@ -50,7 +50,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/headless", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/headless", "scripts": { "start": "tsc --watch", "commit": "commit", @@ -59,7 +59,7 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7770 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7773 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "runPrepareFixtures": "node ../pnpm/bin/pnpm.cjs i -r -C test/fixtures --no-shared-workspace-lockfile --no-link-workspace-packages --lockfile-only --registry http://localhost:4873/ --ignore-scripts --force --no-strict-peer-dependencies", diff --git a/packages/headless/src/index.ts b/pkg-manager/headless/src/index.ts similarity index 100% rename from packages/headless/src/index.ts rename to pkg-manager/headless/src/index.ts diff --git a/packages/headless/src/linkHoistedModules.ts b/pkg-manager/headless/src/linkHoistedModules.ts similarity index 100% rename from packages/headless/src/linkHoistedModules.ts rename to pkg-manager/headless/src/linkHoistedModules.ts diff --git a/packages/headless/src/lockfileToDepGraph.ts b/pkg-manager/headless/src/lockfileToDepGraph.ts similarity index 100% rename from packages/headless/src/lockfileToDepGraph.ts rename to pkg-manager/headless/src/lockfileToDepGraph.ts diff --git a/packages/headless/src/lockfileToHoistedDepGraph.ts b/pkg-manager/headless/src/lockfileToHoistedDepGraph.ts similarity index 100% rename from packages/headless/src/lockfileToHoistedDepGraph.ts rename to pkg-manager/headless/src/lockfileToHoistedDepGraph.ts diff --git a/packages/headless/test/fixtures/.npmrc b/pkg-manager/headless/test/fixtures/.npmrc similarity index 100% rename from packages/headless/test/fixtures/.npmrc rename to pkg-manager/headless/test/fixtures/.npmrc diff --git a/packages/lifecycle/test/fixtures/.gitignore b/pkg-manager/headless/test/fixtures/deps-have-lifecycle-scripts/.gitignore similarity index 100% rename from packages/lifecycle/test/fixtures/.gitignore rename to pkg-manager/headless/test/fixtures/deps-have-lifecycle-scripts/.gitignore diff --git a/packages/headless/test/fixtures/deps-have-lifecycle-scripts/package.json b/pkg-manager/headless/test/fixtures/deps-have-lifecycle-scripts/package.json similarity index 100% rename from packages/headless/test/fixtures/deps-have-lifecycle-scripts/package.json rename to pkg-manager/headless/test/fixtures/deps-have-lifecycle-scripts/package.json diff --git a/packages/headless/test/fixtures/deps-have-lifecycle-scripts/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/deps-have-lifecycle-scripts/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/deps-have-lifecycle-scripts/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/deps-have-lifecycle-scripts/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/has-glob-and-rimraf/package.json b/pkg-manager/headless/test/fixtures/has-glob-and-rimraf/package.json similarity index 100% rename from packages/headless/test/fixtures/has-glob-and-rimraf/package.json rename to pkg-manager/headless/test/fixtures/has-glob-and-rimraf/package.json diff --git a/packages/headless/test/fixtures/has-glob-and-rimraf/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/has-glob-and-rimraf/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/has-glob-and-rimraf/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/has-glob-and-rimraf/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/has-glob/package.json b/pkg-manager/headless/test/fixtures/has-glob/package.json similarity index 100% rename from packages/headless/test/fixtures/has-glob/package.json rename to pkg-manager/headless/test/fixtures/has-glob/package.json diff --git a/packages/headless/test/fixtures/has-glob/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/has-glob/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/has-glob/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/has-glob/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/has-incompatible-optional-subdep/package.json b/pkg-manager/headless/test/fixtures/has-incompatible-optional-subdep/package.json similarity index 100% rename from packages/headless/test/fixtures/has-incompatible-optional-subdep/package.json rename to pkg-manager/headless/test/fixtures/has-incompatible-optional-subdep/package.json diff --git a/packages/headless/test/fixtures/has-incompatible-optional-subdep/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/has-incompatible-optional-subdep/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/has-incompatible-optional-subdep/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/has-incompatible-optional-subdep/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/has-local-dep/pkg/package.json b/pkg-manager/headless/test/fixtures/has-local-dep/pkg/package.json similarity index 100% rename from packages/headless/test/fixtures/has-local-dep/pkg/package.json rename to pkg-manager/headless/test/fixtures/has-local-dep/pkg/package.json diff --git a/packages/headless/test/fixtures/has-local-dep/pkg/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/has-local-dep/pkg/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/has-local-dep/pkg/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/has-local-dep/pkg/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/has-local-dep/tar-pkg-1.0.0.tgz b/pkg-manager/headless/test/fixtures/has-local-dep/tar-pkg-1.0.0.tgz similarity index 100% rename from packages/headless/test/fixtures/has-local-dep/tar-pkg-1.0.0.tgz rename to pkg-manager/headless/test/fixtures/has-local-dep/tar-pkg-1.0.0.tgz diff --git a/packages/headless/test/fixtures/has-local-dir-dep/example/package.json b/pkg-manager/headless/test/fixtures/has-local-dir-dep/example/package.json similarity index 100% rename from packages/headless/test/fixtures/has-local-dir-dep/example/package.json rename to pkg-manager/headless/test/fixtures/has-local-dir-dep/example/package.json diff --git a/packages/headless/test/fixtures/has-local-dir-dep/package.json b/pkg-manager/headless/test/fixtures/has-local-dir-dep/package.json similarity index 100% rename from packages/headless/test/fixtures/has-local-dir-dep/package.json rename to pkg-manager/headless/test/fixtures/has-local-dir-dep/package.json diff --git a/packages/headless/test/fixtures/has-local-dir-dep/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/has-local-dir-dep/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/has-local-dir-dep/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/has-local-dir-dep/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/has-nonexistent-optional-dep/package.json b/pkg-manager/headless/test/fixtures/has-nonexistent-optional-dep/package.json similarity index 100% rename from packages/headless/test/fixtures/has-nonexistent-optional-dep/package.json rename to pkg-manager/headless/test/fixtures/has-nonexistent-optional-dep/package.json diff --git a/packages/headless/test/fixtures/has-nonexistent-optional-dep/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/has-nonexistent-optional-dep/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/has-nonexistent-optional-dep/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/has-nonexistent-optional-dep/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/has-several-versions-of-same-pkg/package.json b/pkg-manager/headless/test/fixtures/has-several-versions-of-same-pkg/package.json similarity index 100% rename from packages/headless/test/fixtures/has-several-versions-of-same-pkg/package.json rename to pkg-manager/headless/test/fixtures/has-several-versions-of-same-pkg/package.json diff --git a/packages/headless/test/fixtures/has-several-versions-of-same-pkg/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/has-several-versions-of-same-pkg/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/has-several-versions-of-same-pkg/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/has-several-versions-of-same-pkg/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/ignore-package-manifest/.npmrc b/pkg-manager/headless/test/fixtures/ignore-package-manifest/.npmrc similarity index 100% rename from packages/headless/test/fixtures/ignore-package-manifest/.npmrc rename to pkg-manager/headless/test/fixtures/ignore-package-manifest/.npmrc diff --git a/packages/headless/test/fixtures/ignore-package-manifest/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/ignore-package-manifest/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/ignore-package-manifest/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/ignore-package-manifest/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/pnpm-workspace.yaml b/pkg-manager/headless/test/fixtures/pnpm-workspace.yaml similarity index 100% rename from packages/headless/test/fixtures/pnpm-workspace.yaml rename to pkg-manager/headless/test/fixtures/pnpm-workspace.yaml diff --git a/packages/headless/test/fixtures/prod-dep-is-dev-subdep/package.json b/pkg-manager/headless/test/fixtures/prod-dep-is-dev-subdep/package.json similarity index 100% rename from packages/headless/test/fixtures/prod-dep-is-dev-subdep/package.json rename to pkg-manager/headless/test/fixtures/prod-dep-is-dev-subdep/package.json diff --git a/packages/headless/test/fixtures/prod-dep-is-dev-subdep/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/prod-dep-is-dev-subdep/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/prod-dep-is-dev-subdep/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/prod-dep-is-dev-subdep/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/reinstall-peer-deps/.npmrc b/pkg-manager/headless/test/fixtures/reinstall-peer-deps/.npmrc similarity index 100% rename from packages/headless/test/fixtures/reinstall-peer-deps/.npmrc rename to pkg-manager/headless/test/fixtures/reinstall-peer-deps/.npmrc diff --git a/packages/headless/test/fixtures/reinstall-peer-deps/package.json b/pkg-manager/headless/test/fixtures/reinstall-peer-deps/package.json similarity index 100% rename from packages/headless/test/fixtures/reinstall-peer-deps/package.json rename to pkg-manager/headless/test/fixtures/reinstall-peer-deps/package.json diff --git a/packages/headless/test/fixtures/reinstall-peer-deps/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/reinstall-peer-deps/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/reinstall-peer-deps/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/reinstall-peer-deps/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/resolved-peer-deps-in-subdeps/package.json b/pkg-manager/headless/test/fixtures/resolved-peer-deps-in-subdeps/package.json similarity index 100% rename from packages/headless/test/fixtures/resolved-peer-deps-in-subdeps/package.json rename to pkg-manager/headless/test/fixtures/resolved-peer-deps-in-subdeps/package.json diff --git a/packages/headless/test/fixtures/resolved-peer-deps-in-subdeps/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/resolved-peer-deps-in-subdeps/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/resolved-peer-deps-in-subdeps/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/resolved-peer-deps-in-subdeps/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/side-effects-of-subdep/package.json b/pkg-manager/headless/test/fixtures/side-effects-of-subdep/package.json similarity index 100% rename from packages/headless/test/fixtures/side-effects-of-subdep/package.json rename to pkg-manager/headless/test/fixtures/side-effects-of-subdep/package.json diff --git a/packages/headless/test/fixtures/side-effects-of-subdep/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/side-effects-of-subdep/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/side-effects-of-subdep/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/side-effects-of-subdep/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/side-effects/package.json b/pkg-manager/headless/test/fixtures/side-effects/package.json similarity index 100% rename from packages/headless/test/fixtures/side-effects/package.json rename to pkg-manager/headless/test/fixtures/side-effects/package.json diff --git a/packages/headless/test/fixtures/side-effects/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/side-effects/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/side-effects/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/side-effects/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/simple-shamefully-flatten/package.json b/pkg-manager/headless/test/fixtures/simple-shamefully-flatten/package.json similarity index 100% rename from packages/headless/test/fixtures/simple-shamefully-flatten/package.json rename to pkg-manager/headless/test/fixtures/simple-shamefully-flatten/package.json diff --git a/packages/headless/test/fixtures/simple-shamefully-flatten/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/simple-shamefully-flatten/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/simple-shamefully-flatten/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/simple-shamefully-flatten/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/simple-with-more-deps/package.json b/pkg-manager/headless/test/fixtures/simple-with-more-deps/package.json similarity index 100% rename from packages/headless/test/fixtures/simple-with-more-deps/package.json rename to pkg-manager/headless/test/fixtures/simple-with-more-deps/package.json diff --git a/packages/headless/test/fixtures/simple-with-more-deps/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/simple-with-more-deps/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/simple-with-more-deps/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/simple-with-more-deps/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/simple-with-optional-dep/package.json b/pkg-manager/headless/test/fixtures/simple-with-optional-dep/package.json similarity index 100% rename from packages/headless/test/fixtures/simple-with-optional-dep/package.json rename to pkg-manager/headless/test/fixtures/simple-with-optional-dep/package.json diff --git a/packages/headless/test/fixtures/simple-with-optional-dep/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/simple-with-optional-dep/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/simple-with-optional-dep/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/simple-with-optional-dep/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/simple/package.json b/pkg-manager/headless/test/fixtures/simple/package.json similarity index 100% rename from packages/headless/test/fixtures/simple/package.json rename to pkg-manager/headless/test/fixtures/simple/package.json diff --git a/packages/headless/test/fixtures/simple/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/simple/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/simple/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/simple/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/with-1-dep/package.json b/pkg-manager/headless/test/fixtures/with-1-dep/package.json similarity index 100% rename from packages/headless/test/fixtures/with-1-dep/package.json rename to pkg-manager/headless/test/fixtures/with-1-dep/package.json diff --git a/packages/headless/test/fixtures/with-1-dep/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/with-1-dep/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/with-1-dep/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/with-1-dep/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/workspace/.npmrc b/pkg-manager/headless/test/fixtures/workspace/.npmrc similarity index 100% rename from packages/headless/test/fixtures/workspace/.npmrc rename to pkg-manager/headless/test/fixtures/workspace/.npmrc diff --git a/packages/headless/test/fixtures/workspace/bar/package.json b/pkg-manager/headless/test/fixtures/workspace/bar/package.json similarity index 100% rename from packages/headless/test/fixtures/workspace/bar/package.json rename to pkg-manager/headless/test/fixtures/workspace/bar/package.json diff --git a/packages/headless/test/fixtures/workspace/foo/package.json b/pkg-manager/headless/test/fixtures/workspace/foo/package.json similarity index 100% rename from packages/headless/test/fixtures/workspace/foo/package.json rename to pkg-manager/headless/test/fixtures/workspace/foo/package.json diff --git a/packages/headless/test/fixtures/workspace/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/workspace/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/workspace/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/workspace/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/workspace/pnpm-workspace.yaml b/pkg-manager/headless/test/fixtures/workspace/pnpm-workspace.yaml similarity index 100% rename from packages/headless/test/fixtures/workspace/pnpm-workspace.yaml rename to pkg-manager/headless/test/fixtures/workspace/pnpm-workspace.yaml diff --git a/packages/headless/test/fixtures/workspace2/bar/package.json b/pkg-manager/headless/test/fixtures/workspace2/bar/package.json similarity index 100% rename from packages/headless/test/fixtures/workspace2/bar/package.json rename to pkg-manager/headless/test/fixtures/workspace2/bar/package.json diff --git a/packages/headless/test/fixtures/workspace2/foo/package.json b/pkg-manager/headless/test/fixtures/workspace2/foo/package.json similarity index 100% rename from packages/headless/test/fixtures/workspace2/foo/package.json rename to pkg-manager/headless/test/fixtures/workspace2/foo/package.json diff --git a/packages/headless/test/fixtures/workspace2/pnpm-lock.yaml b/pkg-manager/headless/test/fixtures/workspace2/pnpm-lock.yaml similarity index 100% rename from packages/headless/test/fixtures/workspace2/pnpm-lock.yaml rename to pkg-manager/headless/test/fixtures/workspace2/pnpm-lock.yaml diff --git a/packages/headless/test/fixtures/workspace2/pnpm-workspace.yaml b/pkg-manager/headless/test/fixtures/workspace2/pnpm-workspace.yaml similarity index 100% rename from packages/headless/test/fixtures/workspace2/pnpm-workspace.yaml rename to pkg-manager/headless/test/fixtures/workspace2/pnpm-workspace.yaml diff --git a/packages/headless/test/index.ts b/pkg-manager/headless/test/index.ts similarity index 100% rename from packages/headless/test/index.ts rename to pkg-manager/headless/test/index.ts diff --git a/packages/headless/test/utils/testDefaults.ts b/pkg-manager/headless/test/utils/testDefaults.ts similarity index 100% rename from packages/headless/test/utils/testDefaults.ts rename to pkg-manager/headless/test/utils/testDefaults.ts diff --git a/packages/headless/tsconfig.json b/pkg-manager/headless/tsconfig.json similarity index 53% rename from packages/headless/tsconfig.json rename to pkg-manager/headless/tsconfig.json index d5837cd5fe..90625f2387 100644 --- a/packages/headless/tsconfig.json +++ b/pkg-manager/headless/tsconfig.json @@ -9,6 +9,54 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../config/package-is-installable" + }, + { + "path": "../../exec/build-modules" + }, + { + "path": "../../exec/lifecycle" + }, + { + "path": "../../fs/symlink-dependency" + }, + { + "path": "../../lockfile/filter-lockfile" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-to-pnp" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../packages/calc-dep-state" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../../privatePackages/assert-project" }, @@ -19,88 +67,40 @@ "path": "../../privatePackages/test-fixtures" }, { - "path": "../build-modules" + "path": "../../store/cafs" }, { - "path": "../cafs" + "path": "../../store/package-store" }, { - "path": "../calc-dep-state" + "path": "../../store/store-controller-types" + }, + { + "path": "../../store/store-path" }, { "path": "../client" }, - { - "path": "../constants" - }, - { - "path": "../core-loggers" - }, - { - "path": "../dependency-path" - }, - { - "path": "../error" - }, - { - "path": "../filter-lockfile" - }, { "path": "../hoist" }, - { - "path": "../lifecycle" - }, { "path": "../link-bins" }, - { - "path": "../lockfile-file" - }, - { - "path": "../lockfile-to-pnp" - }, - { - "path": "../lockfile-utils" - }, { "path": "../modules-cleaner" }, { "path": "../modules-yaml" }, - { - "path": "../package-is-installable" - }, { "path": "../package-requester" }, - { - "path": "../package-store" - }, - { - "path": "../read-package-json" - }, - { - "path": "../read-project-manifest" - }, { "path": "../read-projects-context" }, { "path": "../real-hoist" - }, - { - "path": "../store-controller-types" - }, - { - "path": "../store-path" - }, - { - "path": "../symlink-dependency" - }, - { - "path": "../types" } ] } diff --git a/packages/node.fetcher/tsconfig.lint.json b/pkg-manager/headless/tsconfig.lint.json similarity index 100% rename from packages/node.fetcher/tsconfig.lint.json rename to pkg-manager/headless/tsconfig.lint.json diff --git a/packages/hoist/CHANGELOG.md b/pkg-manager/hoist/CHANGELOG.md similarity index 100% rename from packages/hoist/CHANGELOG.md rename to pkg-manager/hoist/CHANGELOG.md diff --git a/packages/hoist/README.md b/pkg-manager/hoist/README.md similarity index 100% rename from packages/hoist/README.md rename to pkg-manager/hoist/README.md diff --git a/packages/hoist/package.json b/pkg-manager/hoist/package.json similarity index 89% rename from packages/hoist/package.json rename to pkg-manager/hoist/package.json index 0823d82db7..d6bcd71c46 100644 --- a/packages/hoist/package.json +++ b/pkg-manager/hoist/package.json @@ -21,7 +21,7 @@ "directories": { "test": "test" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/hoist#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/hoist#readme", "keywords": [ "pnpm7", "pnpm" @@ -30,7 +30,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/hoist", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/hoist", "scripts": { "start": "tsc --watch", "test": "pnpm run compile", diff --git a/packages/hoist/src/index.ts b/pkg-manager/hoist/src/index.ts similarity index 100% rename from packages/hoist/src/index.ts rename to pkg-manager/hoist/src/index.ts diff --git a/pkg-manager/hoist/tsconfig.json b/pkg-manager/hoist/tsconfig.json new file mode 100644 index 0000000000..a19a55bd03 --- /dev/null +++ b/pkg-manager/hoist/tsconfig.json @@ -0,0 +1,40 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../config/matcher" + }, + { + "path": "../../fs/symlink-dependency" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../lockfile/lockfile-walker" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/types" + }, + { + "path": "../link-bins" + } + ] +} diff --git a/packages/node.resolver/tsconfig.lint.json b/pkg-manager/hoist/tsconfig.lint.json similarity index 100% rename from packages/node.resolver/tsconfig.lint.json rename to pkg-manager/hoist/tsconfig.lint.json diff --git a/packages/link-bins/CHANGELOG.md b/pkg-manager/link-bins/CHANGELOG.md similarity index 100% rename from packages/link-bins/CHANGELOG.md rename to pkg-manager/link-bins/CHANGELOG.md diff --git a/packages/link-bins/README.md b/pkg-manager/link-bins/README.md similarity index 100% rename from packages/link-bins/README.md rename to pkg-manager/link-bins/README.md diff --git a/packages/link-bins/jest.config.js b/pkg-manager/link-bins/jest.config.js similarity index 100% rename from packages/link-bins/jest.config.js rename to pkg-manager/link-bins/jest.config.js diff --git a/packages/link-bins/package.json b/pkg-manager/link-bins/package.json similarity index 91% rename from packages/link-bins/package.json rename to pkg-manager/link-bins/package.json index 7086cacb8b..518e57db27 100644 --- a/packages/link-bins/package.json +++ b/pkg-manager/link-bins/package.json @@ -19,7 +19,7 @@ "fix": "tslint -c tslint.json --project . --fix", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/link-bins", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/link-bins", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/link-bins#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/link-bins#readme", "dependencies": { "@pnpm/error": "workspace:*", "@pnpm/manifest-utils": "workspace:*", diff --git a/packages/link-bins/src/index.ts b/pkg-manager/link-bins/src/index.ts similarity index 100% rename from packages/link-bins/src/index.ts rename to pkg-manager/link-bins/src/index.ts diff --git a/packages/link-bins/test/.gitignore b/pkg-manager/link-bins/test/.gitignore similarity index 100% rename from packages/link-bins/test/.gitignore rename to pkg-manager/link-bins/test/.gitignore diff --git a/packages/link-bins/test/fixtures/bin-dir/pkg/bin/subdir/index.js b/pkg-manager/link-bins/test/fixtures/bin-dir/pkg/bin/subdir/index.js similarity index 100% rename from packages/link-bins/test/fixtures/bin-dir/pkg/bin/subdir/index.js rename to pkg-manager/link-bins/test/fixtures/bin-dir/pkg/bin/subdir/index.js diff --git a/packages/link-bins/test/fixtures/bin-dir/pkg/package.json b/pkg-manager/link-bins/test/fixtures/bin-dir/pkg/package.json similarity index 100% rename from packages/link-bins/test/fixtures/bin-dir/pkg/package.json rename to pkg-manager/link-bins/test/fixtures/bin-dir/pkg/package.json diff --git a/pkg-manager/link-bins/test/fixtures/bin-name-conflicts/.gitignore b/pkg-manager/link-bins/test/fixtures/bin-name-conflicts/.gitignore new file mode 100644 index 0000000000..5867a0493e --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/bin-name-conflicts/.gitignore @@ -0,0 +1,2 @@ +!**/node_modules/**/* +!/node_modules/ diff --git a/packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/index.js b/pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/index.js similarity index 100% rename from packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/index.js rename to pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/index.js diff --git a/packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/package.json b/pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/package.json similarity index 100% rename from packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/package.json rename to pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/bar/package.json diff --git a/packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/index.js b/pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/index.js similarity index 100% rename from packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/index.js rename to pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/index.js diff --git a/packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/package.json b/pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/package.json similarity index 100% rename from packages/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/package.json rename to pkg-manager/link-bins/test/fixtures/bin-name-conflicts/node_modules/foo/package.json diff --git a/pkg-manager/link-bins/test/fixtures/bin-not-exist/.gitignore b/pkg-manager/link-bins/test/fixtures/bin-not-exist/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/bin-not-exist/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/bin-not-exist/node_modules/foo/package.json b/pkg-manager/link-bins/test/fixtures/bin-not-exist/node_modules/foo/package.json similarity index 100% rename from packages/link-bins/test/fixtures/bin-not-exist/node_modules/foo/package.json rename to pkg-manager/link-bins/test/fixtures/bin-not-exist/node_modules/foo/package.json diff --git a/pkg-manager/link-bins/test/fixtures/bin-window-shebang/.gitignore b/pkg-manager/link-bins/test/fixtures/bin-window-shebang/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/bin-window-shebang/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/crlf.js b/pkg-manager/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/crlf.js similarity index 100% rename from packages/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/crlf.js rename to pkg-manager/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/crlf.js diff --git a/packages/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/lf.js b/pkg-manager/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/lf.js similarity index 100% rename from packages/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/lf.js rename to pkg-manager/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/bin/lf.js diff --git a/packages/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/package.json b/pkg-manager/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/package.json similarity index 100% rename from packages/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/package.json rename to pkg-manager/link-bins/test/fixtures/bin-window-shebang/node_modules/crlf/package.json diff --git a/pkg-manager/link-bins/test/fixtures/dir-with-no-manifest/.gitignore b/pkg-manager/link-bins/test/fixtures/dir-with-no-manifest/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/dir-with-no-manifest/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/pkg-manager/link-bins/test/fixtures/dir-with-no-manifest/node_modules/dir-with-no-manifest/.gitkeep b/pkg-manager/link-bins/test/fixtures/dir-with-no-manifest/node_modules/dir-with-no-manifest/.gitkeep new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/dir-with-no-manifest/node_modules/dir-with-no-manifest/.gitkeep @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/pkg-manager/link-bins/test/fixtures/exotic-manifest/.gitignore b/pkg-manager/link-bins/test/fixtures/exotic-manifest/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/exotic-manifest/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/exotic-manifest/node_modules/simple/index.js b/pkg-manager/link-bins/test/fixtures/exotic-manifest/node_modules/simple/index.js similarity index 100% rename from packages/link-bins/test/fixtures/exotic-manifest/node_modules/simple/index.js rename to pkg-manager/link-bins/test/fixtures/exotic-manifest/node_modules/simple/index.js diff --git a/packages/link-bins/test/fixtures/exotic-manifest/node_modules/simple/package.yaml b/pkg-manager/link-bins/test/fixtures/exotic-manifest/node_modules/simple/package.yaml similarity index 100% rename from packages/link-bins/test/fixtures/exotic-manifest/node_modules/simple/package.yaml rename to pkg-manager/link-bins/test/fixtures/exotic-manifest/node_modules/simple/package.yaml diff --git a/pkg-manager/link-bins/test/fixtures/foobar/.gitignore b/pkg-manager/link-bins/test/fixtures/foobar/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/foobar/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/foobar/node_modules/bar/index.js b/pkg-manager/link-bins/test/fixtures/foobar/node_modules/bar/index.js similarity index 100% rename from packages/link-bins/test/fixtures/foobar/node_modules/bar/index.js rename to pkg-manager/link-bins/test/fixtures/foobar/node_modules/bar/index.js diff --git a/packages/link-bins/test/fixtures/foobar/node_modules/bar/package.json b/pkg-manager/link-bins/test/fixtures/foobar/node_modules/bar/package.json similarity index 100% rename from packages/link-bins/test/fixtures/foobar/node_modules/bar/package.json rename to pkg-manager/link-bins/test/fixtures/foobar/node_modules/bar/package.json diff --git a/packages/link-bins/test/fixtures/foobar/node_modules/foo/index.js b/pkg-manager/link-bins/test/fixtures/foobar/node_modules/foo/index.js similarity index 100% rename from packages/link-bins/test/fixtures/foobar/node_modules/foo/index.js rename to pkg-manager/link-bins/test/fixtures/foobar/node_modules/foo/index.js diff --git a/packages/link-bins/test/fixtures/foobar/node_modules/foo/package.json b/pkg-manager/link-bins/test/fixtures/foobar/node_modules/foo/package.json similarity index 100% rename from packages/link-bins/test/fixtures/foobar/node_modules/foo/package.json rename to pkg-manager/link-bins/test/fixtures/foobar/node_modules/foo/package.json diff --git a/pkg-manager/link-bins/test/fixtures/no-bin/.gitignore b/pkg-manager/link-bins/test/fixtures/no-bin/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/no-bin/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/no-bin/node_modules/simple/index.js b/pkg-manager/link-bins/test/fixtures/no-bin/node_modules/simple/index.js similarity index 100% rename from packages/link-bins/test/fixtures/no-bin/node_modules/simple/index.js rename to pkg-manager/link-bins/test/fixtures/no-bin/node_modules/simple/index.js diff --git a/packages/link-bins/test/fixtures/no-bin/node_modules/simple/package.json b/pkg-manager/link-bins/test/fixtures/no-bin/node_modules/simple/package.json similarity index 100% rename from packages/link-bins/test/fixtures/no-bin/node_modules/simple/package.json rename to pkg-manager/link-bins/test/fixtures/no-bin/node_modules/simple/package.json diff --git a/packages/link-bins/test/fixtures/no-bin/packages/simple/index.js b/pkg-manager/link-bins/test/fixtures/no-bin/packages/simple/index.js similarity index 100% rename from packages/link-bins/test/fixtures/no-bin/packages/simple/index.js rename to pkg-manager/link-bins/test/fixtures/no-bin/packages/simple/index.js diff --git a/packages/link-bins/test/fixtures/no-bin/packages/simple/package.json b/pkg-manager/link-bins/test/fixtures/no-bin/packages/simple/package.json similarity index 100% rename from packages/link-bins/test/fixtures/no-bin/packages/simple/package.json rename to pkg-manager/link-bins/test/fixtures/no-bin/packages/simple/package.json diff --git a/packages/link-bins/test/fixtures/no-bin/pnpm-workspace.yaml b/pkg-manager/link-bins/test/fixtures/no-bin/pnpm-workspace.yaml similarity index 100% rename from packages/link-bins/test/fixtures/no-bin/pnpm-workspace.yaml rename to pkg-manager/link-bins/test/fixtures/no-bin/pnpm-workspace.yaml diff --git a/pkg-manager/link-bins/test/fixtures/no-name/.gitignore b/pkg-manager/link-bins/test/fixtures/no-name/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/no-name/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/no-name/node_modules/simple/index.js b/pkg-manager/link-bins/test/fixtures/no-name/node_modules/simple/index.js similarity index 100% rename from packages/link-bins/test/fixtures/no-name/node_modules/simple/index.js rename to pkg-manager/link-bins/test/fixtures/no-name/node_modules/simple/index.js diff --git a/packages/link-bins/test/fixtures/no-name/node_modules/simple/package.json b/pkg-manager/link-bins/test/fixtures/no-name/node_modules/simple/package.json similarity index 100% rename from packages/link-bins/test/fixtures/no-name/node_modules/simple/package.json rename to pkg-manager/link-bins/test/fixtures/no-name/node_modules/simple/package.json diff --git a/pkg-manager/link-bins/test/fixtures/pnpm-cli/.gitignore b/pkg-manager/link-bins/test/fixtures/pnpm-cli/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/pnpm-cli/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/index.js b/pkg-manager/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/index.js similarity index 100% rename from packages/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/index.js rename to pkg-manager/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/index.js diff --git a/packages/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/package.json b/pkg-manager/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/package.json similarity index 100% rename from packages/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/package.json rename to pkg-manager/link-bins/test/fixtures/pnpm-cli/node_modules/pnpm/package.json diff --git a/pkg-manager/link-bins/test/fixtures/simple-fixture/.gitignore b/pkg-manager/link-bins/test/fixtures/simple-fixture/.gitignore new file mode 100644 index 0000000000..ebb27953b7 --- /dev/null +++ b/pkg-manager/link-bins/test/fixtures/simple-fixture/.gitignore @@ -0,0 +1,3 @@ +!**/node_modules/**/* +!/node_modules/ + diff --git a/packages/link-bins/test/fixtures/simple-fixture/node_modules/simple/index.js b/pkg-manager/link-bins/test/fixtures/simple-fixture/node_modules/simple/index.js similarity index 100% rename from packages/link-bins/test/fixtures/simple-fixture/node_modules/simple/index.js rename to pkg-manager/link-bins/test/fixtures/simple-fixture/node_modules/simple/index.js diff --git a/packages/link-bins/test/fixtures/simple-fixture/node_modules/simple/package.json b/pkg-manager/link-bins/test/fixtures/simple-fixture/node_modules/simple/package.json similarity index 100% rename from packages/link-bins/test/fixtures/simple-fixture/node_modules/simple/package.json rename to pkg-manager/link-bins/test/fixtures/simple-fixture/node_modules/simple/package.json diff --git a/packages/link-bins/test/index.ts b/pkg-manager/link-bins/test/index.ts similarity index 100% rename from packages/link-bins/test/index.ts rename to pkg-manager/link-bins/test/index.ts diff --git a/packages/link-bins/tsconfig.json b/pkg-manager/link-bins/tsconfig.json similarity index 58% rename from packages/link-bins/tsconfig.json rename to pkg-manager/link-bins/tsconfig.json index 6f540a32cc..b95d1801fe 100644 --- a/packages/link-bins/tsconfig.json +++ b/pkg-manager/link-bins/tsconfig.json @@ -9,29 +9,29 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../fs/read-modules-dir" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/manifest-utils" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, { "path": "../../privatePackages/test-fixtures" }, - { - "path": "../error" - }, - { - "path": "../manifest-utils" - }, { "path": "../package-bins" - }, - { - "path": "../read-modules-dir" - }, - { - "path": "../read-package-json" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../types" } ] } diff --git a/packages/normalize-registries/tsconfig.lint.json b/pkg-manager/link-bins/tsconfig.lint.json similarity index 100% rename from packages/normalize-registries/tsconfig.lint.json rename to pkg-manager/link-bins/tsconfig.lint.json diff --git a/packages/modules-cleaner/CHANGELOG.md b/pkg-manager/modules-cleaner/CHANGELOG.md similarity index 100% rename from packages/modules-cleaner/CHANGELOG.md rename to pkg-manager/modules-cleaner/CHANGELOG.md diff --git a/packages/modules-cleaner/README.md b/pkg-manager/modules-cleaner/README.md similarity index 100% rename from packages/modules-cleaner/README.md rename to pkg-manager/modules-cleaner/README.md diff --git a/packages/modules-cleaner/package.json b/pkg-manager/modules-cleaner/package.json similarity index 88% rename from packages/modules-cleaner/package.json rename to pkg-manager/modules-cleaner/package.json index 45f4681253..8dc0d0e943 100644 --- a/packages/modules-cleaner/package.json +++ b/pkg-manager/modules-cleaner/package.json @@ -18,8 +18,8 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/modules-cleaner", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/modules-cleaner#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-cleaner", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-cleaner#readme", "scripts": { "start": "tsc --watch", "test": "pnpm run compile", diff --git a/packages/modules-cleaner/src/index.ts b/pkg-manager/modules-cleaner/src/index.ts similarity index 100% rename from packages/modules-cleaner/src/index.ts rename to pkg-manager/modules-cleaner/src/index.ts diff --git a/packages/modules-cleaner/src/prune.ts b/pkg-manager/modules-cleaner/src/prune.ts similarity index 100% rename from packages/modules-cleaner/src/prune.ts rename to pkg-manager/modules-cleaner/src/prune.ts diff --git a/packages/modules-cleaner/src/removeDirectDependency.ts b/pkg-manager/modules-cleaner/src/removeDirectDependency.ts similarity index 100% rename from packages/modules-cleaner/src/removeDirectDependency.ts rename to pkg-manager/modules-cleaner/src/removeDirectDependency.ts diff --git a/pkg-manager/modules-cleaner/tsconfig.json b/pkg-manager/modules-cleaner/tsconfig.json new file mode 100644 index 0000000000..9d0d9e6375 --- /dev/null +++ b/pkg-manager/modules-cleaner/tsconfig.json @@ -0,0 +1,40 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../fs/read-modules-dir" + }, + { + "path": "../../lockfile/filter-lockfile" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../store/store-controller-types" + }, + { + "path": "../remove-bins" + } + ] +} diff --git a/packages/npm-resolver/tsconfig.lint.json b/pkg-manager/modules-cleaner/tsconfig.lint.json similarity index 100% rename from packages/npm-resolver/tsconfig.lint.json rename to pkg-manager/modules-cleaner/tsconfig.lint.json diff --git a/packages/modules-yaml/CHANGELOG.md b/pkg-manager/modules-yaml/CHANGELOG.md similarity index 100% rename from packages/modules-yaml/CHANGELOG.md rename to pkg-manager/modules-yaml/CHANGELOG.md diff --git a/packages/modules-yaml/README.md b/pkg-manager/modules-yaml/README.md similarity index 100% rename from packages/modules-yaml/README.md rename to pkg-manager/modules-yaml/README.md diff --git a/packages/matcher/jest.config.js b/pkg-manager/modules-yaml/jest.config.js similarity index 100% rename from packages/matcher/jest.config.js rename to pkg-manager/modules-yaml/jest.config.js diff --git a/packages/modules-yaml/package.json b/pkg-manager/modules-yaml/package.json similarity index 87% rename from packages/modules-yaml/package.json rename to pkg-manager/modules-yaml/package.json index e9fb6fed94..6dd2155b7f 100644 --- a/packages/modules-yaml/package.json +++ b/pkg-manager/modules-yaml/package.json @@ -19,7 +19,7 @@ "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/modules-yaml", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/modules-yaml#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/modules-yaml#readme", "dependencies": { "@pnpm/types": "workspace:*", "is-windows": "^1.0.2", diff --git a/packages/modules-yaml/src/index.ts b/pkg-manager/modules-yaml/src/index.ts similarity index 100% rename from packages/modules-yaml/src/index.ts rename to pkg-manager/modules-yaml/src/index.ts diff --git a/packages/modules-yaml/test/fixtures/old-no-shamefully-hoist/.modules.yaml b/pkg-manager/modules-yaml/test/fixtures/old-no-shamefully-hoist/.modules.yaml similarity index 100% rename from packages/modules-yaml/test/fixtures/old-no-shamefully-hoist/.modules.yaml rename to pkg-manager/modules-yaml/test/fixtures/old-no-shamefully-hoist/.modules.yaml diff --git a/packages/modules-yaml/test/fixtures/old-shamefully-hoist/.modules.yaml b/pkg-manager/modules-yaml/test/fixtures/old-shamefully-hoist/.modules.yaml similarity index 100% rename from packages/modules-yaml/test/fixtures/old-shamefully-hoist/.modules.yaml rename to pkg-manager/modules-yaml/test/fixtures/old-shamefully-hoist/.modules.yaml diff --git a/packages/modules-yaml/test/index.ts b/pkg-manager/modules-yaml/test/index.ts similarity index 100% rename from packages/modules-yaml/test/index.ts rename to pkg-manager/modules-yaml/test/index.ts diff --git a/pkg-manager/modules-yaml/tsconfig.json b/pkg-manager/modules-yaml/tsconfig.json new file mode 100644 index 0000000000..4934a75de4 --- /dev/null +++ b/pkg-manager/modules-yaml/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + } + ] +} diff --git a/packages/outdated/tsconfig.lint.json b/pkg-manager/modules-yaml/tsconfig.lint.json similarity index 100% rename from packages/outdated/tsconfig.lint.json rename to pkg-manager/modules-yaml/tsconfig.lint.json diff --git a/packages/package-bins/CHANGELOG.md b/pkg-manager/package-bins/CHANGELOG.md similarity index 100% rename from packages/package-bins/CHANGELOG.md rename to pkg-manager/package-bins/CHANGELOG.md diff --git a/packages/package-bins/README.md b/pkg-manager/package-bins/README.md similarity index 100% rename from packages/package-bins/README.md rename to pkg-manager/package-bins/README.md diff --git a/packages/package-bins/jest.config.js b/pkg-manager/package-bins/jest.config.js similarity index 100% rename from packages/package-bins/jest.config.js rename to pkg-manager/package-bins/jest.config.js diff --git a/packages/package-bins/package.json b/pkg-manager/package-bins/package.json similarity index 85% rename from packages/package-bins/package.json rename to pkg-manager/package-bins/package.json index 2d679d77f9..212ef4f3c6 100644 --- a/packages/package-bins/package.json +++ b/pkg-manager/package-bins/package.json @@ -19,7 +19,7 @@ "fix": "tslint -c tslint.json --project . --fix", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/package-bins", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/package-bins", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/package-bins#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/package-bins#readme", "dependencies": { "@pnpm/types": "workspace:*", "fast-glob": "^3.2.12", diff --git a/packages/package-bins/src/index.ts b/pkg-manager/package-bins/src/index.ts similarity index 100% rename from packages/package-bins/src/index.ts rename to pkg-manager/package-bins/src/index.ts diff --git a/packages/package-bins/test/fixtures/bin-dir/rootBin.js b/pkg-manager/package-bins/test/fixtures/bin-dir/rootBin.js similarity index 100% rename from packages/package-bins/test/fixtures/bin-dir/rootBin.js rename to pkg-manager/package-bins/test/fixtures/bin-dir/rootBin.js diff --git a/packages/package-bins/test/fixtures/bin-dir/subdir/subBin.js b/pkg-manager/package-bins/test/fixtures/bin-dir/subdir/subBin.js similarity index 100% rename from packages/package-bins/test/fixtures/bin-dir/subdir/subBin.js rename to pkg-manager/package-bins/test/fixtures/bin-dir/subdir/subBin.js diff --git a/packages/package-bins/test/index.ts b/pkg-manager/package-bins/test/index.ts similarity index 100% rename from packages/package-bins/test/index.ts rename to pkg-manager/package-bins/test/index.ts diff --git a/pkg-manager/package-bins/tsconfig.json b/pkg-manager/package-bins/tsconfig.json new file mode 100644 index 0000000000..4934a75de4 --- /dev/null +++ b/pkg-manager/package-bins/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + } + ] +} diff --git a/packages/package-bins/tsconfig.lint.json b/pkg-manager/package-bins/tsconfig.lint.json similarity index 100% rename from packages/package-bins/tsconfig.lint.json rename to pkg-manager/package-bins/tsconfig.lint.json diff --git a/packages/package-requester/CHANGELOG.md b/pkg-manager/package-requester/CHANGELOG.md similarity index 100% rename from packages/package-requester/CHANGELOG.md rename to pkg-manager/package-requester/CHANGELOG.md diff --git a/packages/package-requester/README.md b/pkg-manager/package-requester/README.md similarity index 100% rename from packages/package-requester/README.md rename to pkg-manager/package-requester/README.md diff --git a/packages/pick-registry-for-package/jest.config.js b/pkg-manager/package-requester/jest.config.js similarity index 100% rename from packages/pick-registry-for-package/jest.config.js rename to pkg-manager/package-requester/jest.config.js diff --git a/packages/package-requester/package.json b/pkg-manager/package-requester/package.json similarity index 90% rename from packages/package-requester/package.json rename to pkg-manager/package-requester/package.json index faaa9ac8f9..b4a6310e14 100644 --- a/packages/package-requester/package.json +++ b/pkg-manager/package-requester/package.json @@ -14,7 +14,7 @@ "scripts": { "start": "tsc --watch", "lint": "eslint src/**/*.ts test/**/*.ts", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7772 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7774 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", @@ -22,7 +22,7 @@ "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/package-requester", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/package-requester", "keywords": [ "pnpm7", "pnpm", @@ -33,7 +33,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/package-requester#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/package-requester#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/package-requester/src/equalOrSemverEqual.ts b/pkg-manager/package-requester/src/equalOrSemverEqual.ts similarity index 100% rename from packages/package-requester/src/equalOrSemverEqual.ts rename to pkg-manager/package-requester/src/equalOrSemverEqual.ts diff --git a/packages/package-requester/src/index.ts b/pkg-manager/package-requester/src/index.ts similarity index 100% rename from packages/package-requester/src/index.ts rename to pkg-manager/package-requester/src/index.ts diff --git a/packages/package-requester/src/packageRequester.ts b/pkg-manager/package-requester/src/packageRequester.ts similarity index 100% rename from packages/package-requester/src/packageRequester.ts rename to pkg-manager/package-requester/src/packageRequester.ts diff --git a/packages/package-requester/test/equalOrSemverEqual.test.ts b/pkg-manager/package-requester/test/equalOrSemverEqual.test.ts similarity index 100% rename from packages/package-requester/test/equalOrSemverEqual.test.ts rename to pkg-manager/package-requester/test/equalOrSemverEqual.test.ts diff --git a/packages/package-requester/test/fixtures/is-positive-1.0.0.tgz b/pkg-manager/package-requester/test/fixtures/is-positive-1.0.0.tgz similarity index 100% rename from packages/package-requester/test/fixtures/is-positive-1.0.0.tgz rename to pkg-manager/package-requester/test/fixtures/is-positive-1.0.0.tgz diff --git a/packages/package-requester/test/fixtures/pnpm-package-requester-0.8.1.tgz b/pkg-manager/package-requester/test/fixtures/pnpm-package-requester-0.8.1.tgz similarity index 100% rename from packages/package-requester/test/fixtures/pnpm-package-requester-0.8.1.tgz rename to pkg-manager/package-requester/test/fixtures/pnpm-package-requester-0.8.1.tgz diff --git a/packages/package-requester/test/fixtures/pnpm-package-requester-4.1.2.tgz b/pkg-manager/package-requester/test/fixtures/pnpm-package-requester-4.1.2.tgz similarity index 100% rename from packages/package-requester/test/fixtures/pnpm-package-requester-4.1.2.tgz rename to pkg-manager/package-requester/test/fixtures/pnpm-package-requester-4.1.2.tgz diff --git a/packages/package-requester/test/index.ts b/pkg-manager/package-requester/test/index.ts similarity index 100% rename from packages/package-requester/test/index.ts rename to pkg-manager/package-requester/test/index.ts diff --git a/pkg-manager/package-requester/tsconfig.json b/pkg-manager/package-requester/tsconfig.json new file mode 100644 index 0000000000..df04441127 --- /dev/null +++ b/pkg-manager/package-requester/tsconfig.json @@ -0,0 +1,61 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../config/package-is-installable" + }, + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../fetching/pick-fetcher" + }, + { + "path": "../../fs/graceful-fs" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../privatePackages/test-fixtures" + }, + { + "path": "../../resolving/resolver-base" + }, + { + "path": "../../store/cafs" + }, + { + "path": "../../store/cafs-types" + }, + { + "path": "../../store/create-cafs-store" + }, + { + "path": "../../store/store-controller-types" + }, + { + "path": "../client" + } + ] +} diff --git a/packages/package-is-installable/tsconfig.lint.json b/pkg-manager/package-requester/tsconfig.lint.json similarity index 100% rename from packages/package-is-installable/tsconfig.lint.json rename to pkg-manager/package-requester/tsconfig.lint.json diff --git a/packages/plugin-commands-installation/CHANGELOG.md b/pkg-manager/plugin-commands-installation/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-installation/CHANGELOG.md rename to pkg-manager/plugin-commands-installation/CHANGELOG.md diff --git a/packages/plugin-commands-installation/README.md b/pkg-manager/plugin-commands-installation/README.md similarity index 100% rename from packages/plugin-commands-installation/README.md rename to pkg-manager/plugin-commands-installation/README.md diff --git a/packages/pick-fetcher/jest.config.js b/pkg-manager/plugin-commands-installation/jest.config.js similarity index 100% rename from packages/pick-fetcher/jest.config.js rename to pkg-manager/plugin-commands-installation/jest.config.js diff --git a/packages/plugin-commands-installation/package.json b/pkg-manager/plugin-commands-installation/package.json similarity index 92% rename from packages/plugin-commands-installation/package.json rename to pkg-manager/plugin-commands-installation/package.json index 1ef2488d7a..9ca9af5471 100644 --- a/packages/plugin-commands-installation/package.json +++ b/pkg-manager/plugin-commands-installation/package.json @@ -17,12 +17,12 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7774 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7775 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-installation", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/plugin-commands-installation", "keywords": [ "pnpm7", "pnpm" @@ -31,7 +31,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-installation#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/plugin-commands-installation#readme", "devDependencies": { "@pnpm/assert-project": "workspace:*", "@pnpm/lockfile-types": "workspace:*", diff --git a/packages/plugin-commands-installation/src/add.ts b/pkg-manager/plugin-commands-installation/src/add.ts similarity index 100% rename from packages/plugin-commands-installation/src/add.ts rename to pkg-manager/plugin-commands-installation/src/add.ts diff --git a/packages/plugin-commands-installation/src/fetch.ts b/pkg-manager/plugin-commands-installation/src/fetch.ts similarity index 100% rename from packages/plugin-commands-installation/src/fetch.ts rename to pkg-manager/plugin-commands-installation/src/fetch.ts diff --git a/packages/plugin-commands-installation/src/getOptionsFromRootManifest.ts b/pkg-manager/plugin-commands-installation/src/getOptionsFromRootManifest.ts similarity index 100% rename from packages/plugin-commands-installation/src/getOptionsFromRootManifest.ts rename to pkg-manager/plugin-commands-installation/src/getOptionsFromRootManifest.ts diff --git a/packages/plugin-commands-installation/src/getPinnedVersion.ts b/pkg-manager/plugin-commands-installation/src/getPinnedVersion.ts similarity index 100% rename from packages/plugin-commands-installation/src/getPinnedVersion.ts rename to pkg-manager/plugin-commands-installation/src/getPinnedVersion.ts diff --git a/packages/plugin-commands-installation/src/getSaveType.ts b/pkg-manager/plugin-commands-installation/src/getSaveType.ts similarity index 100% rename from packages/plugin-commands-installation/src/getSaveType.ts rename to pkg-manager/plugin-commands-installation/src/getSaveType.ts diff --git a/packages/plugin-commands-installation/src/import/index.ts b/pkg-manager/plugin-commands-installation/src/import/index.ts similarity index 100% rename from packages/plugin-commands-installation/src/import/index.ts rename to pkg-manager/plugin-commands-installation/src/import/index.ts diff --git a/packages/plugin-commands-installation/src/import/yarnUtil.ts b/pkg-manager/plugin-commands-installation/src/import/yarnUtil.ts similarity index 100% rename from packages/plugin-commands-installation/src/import/yarnUtil.ts rename to pkg-manager/plugin-commands-installation/src/import/yarnUtil.ts diff --git a/packages/plugin-commands-installation/src/index.ts b/pkg-manager/plugin-commands-installation/src/index.ts similarity index 100% rename from packages/plugin-commands-installation/src/index.ts rename to pkg-manager/plugin-commands-installation/src/index.ts diff --git a/packages/plugin-commands-installation/src/install.ts b/pkg-manager/plugin-commands-installation/src/install.ts similarity index 100% rename from packages/plugin-commands-installation/src/install.ts rename to pkg-manager/plugin-commands-installation/src/install.ts diff --git a/packages/plugin-commands-installation/src/installDeps.ts b/pkg-manager/plugin-commands-installation/src/installDeps.ts similarity index 100% rename from packages/plugin-commands-installation/src/installDeps.ts rename to pkg-manager/plugin-commands-installation/src/installDeps.ts diff --git a/packages/plugin-commands-installation/src/link.ts b/pkg-manager/plugin-commands-installation/src/link.ts similarity index 100% rename from packages/plugin-commands-installation/src/link.ts rename to pkg-manager/plugin-commands-installation/src/link.ts diff --git a/packages/plugin-commands-installation/src/nodeExecPath.ts b/pkg-manager/plugin-commands-installation/src/nodeExecPath.ts similarity index 100% rename from packages/plugin-commands-installation/src/nodeExecPath.ts rename to pkg-manager/plugin-commands-installation/src/nodeExecPath.ts diff --git a/packages/plugin-commands-installation/src/prune.ts b/pkg-manager/plugin-commands-installation/src/prune.ts similarity index 100% rename from packages/plugin-commands-installation/src/prune.ts rename to pkg-manager/plugin-commands-installation/src/prune.ts diff --git a/packages/plugin-commands-installation/src/recursive.ts b/pkg-manager/plugin-commands-installation/src/recursive.ts similarity index 100% rename from packages/plugin-commands-installation/src/recursive.ts rename to pkg-manager/plugin-commands-installation/src/recursive.ts diff --git a/packages/plugin-commands-installation/src/remove.ts b/pkg-manager/plugin-commands-installation/src/remove.ts similarity index 100% rename from packages/plugin-commands-installation/src/remove.ts rename to pkg-manager/plugin-commands-installation/src/remove.ts diff --git a/packages/plugin-commands-installation/src/unlink.ts b/pkg-manager/plugin-commands-installation/src/unlink.ts similarity index 100% rename from packages/plugin-commands-installation/src/unlink.ts rename to pkg-manager/plugin-commands-installation/src/unlink.ts diff --git a/packages/plugin-commands-installation/src/update/getUpdateChoices.ts b/pkg-manager/plugin-commands-installation/src/update/getUpdateChoices.ts similarity index 100% rename from packages/plugin-commands-installation/src/update/getUpdateChoices.ts rename to pkg-manager/plugin-commands-installation/src/update/getUpdateChoices.ts diff --git a/packages/plugin-commands-installation/src/update/index.ts b/pkg-manager/plugin-commands-installation/src/update/index.ts similarity index 100% rename from packages/plugin-commands-installation/src/update/index.ts rename to pkg-manager/plugin-commands-installation/src/update/index.ts diff --git a/packages/plugin-commands-installation/src/updateToLatestSpecsFromManifest.ts b/pkg-manager/plugin-commands-installation/src/updateToLatestSpecsFromManifest.ts similarity index 100% rename from packages/plugin-commands-installation/src/updateToLatestSpecsFromManifest.ts rename to pkg-manager/plugin-commands-installation/src/updateToLatestSpecsFromManifest.ts diff --git a/packages/plugin-commands-installation/src/updateWorkspaceDependencies.ts b/pkg-manager/plugin-commands-installation/src/updateWorkspaceDependencies.ts similarity index 100% rename from packages/plugin-commands-installation/src/updateWorkspaceDependencies.ts rename to pkg-manager/plugin-commands-installation/src/updateWorkspaceDependencies.ts diff --git a/packages/plugin-commands-installation/test/add.ts b/pkg-manager/plugin-commands-installation/test/add.ts similarity index 100% rename from packages/plugin-commands-installation/test/add.ts rename to pkg-manager/plugin-commands-installation/test/add.ts diff --git a/packages/plugin-commands-installation/test/addRecursive.ts b/pkg-manager/plugin-commands-installation/test/addRecursive.ts similarity index 100% rename from packages/plugin-commands-installation/test/addRecursive.ts rename to pkg-manager/plugin-commands-installation/test/addRecursive.ts diff --git a/packages/plugin-commands-installation/test/fetch.ts b/pkg-manager/plugin-commands-installation/test/fetch.ts similarity index 100% rename from packages/plugin-commands-installation/test/fetch.ts rename to pkg-manager/plugin-commands-installation/test/fetch.ts diff --git a/packages/plugin-commands-installation/test/getOptionsFromRootManifest.test.ts b/pkg-manager/plugin-commands-installation/test/getOptionsFromRootManifest.test.ts similarity index 100% rename from packages/plugin-commands-installation/test/getOptionsFromRootManifest.test.ts rename to pkg-manager/plugin-commands-installation/test/getOptionsFromRootManifest.test.ts diff --git a/packages/plugin-commands-installation/test/getPinnedVersion.ts b/pkg-manager/plugin-commands-installation/test/getPinnedVersion.ts similarity index 100% rename from packages/plugin-commands-installation/test/getPinnedVersion.ts rename to pkg-manager/plugin-commands-installation/test/getPinnedVersion.ts diff --git a/packages/plugin-commands-installation/test/getSaveType.ts b/pkg-manager/plugin-commands-installation/test/getSaveType.ts similarity index 100% rename from packages/plugin-commands-installation/test/getSaveType.ts rename to pkg-manager/plugin-commands-installation/test/getSaveType.ts diff --git a/packages/plugin-commands-installation/test/global.ts b/pkg-manager/plugin-commands-installation/test/global.ts similarity index 100% rename from packages/plugin-commands-installation/test/global.ts rename to pkg-manager/plugin-commands-installation/test/global.ts diff --git a/packages/plugin-commands-installation/test/import.ts b/pkg-manager/plugin-commands-installation/test/import.ts similarity index 100% rename from packages/plugin-commands-installation/test/import.ts rename to pkg-manager/plugin-commands-installation/test/import.ts diff --git a/packages/plugin-commands-installation/test/importRecursive.ts b/pkg-manager/plugin-commands-installation/test/importRecursive.ts similarity index 100% rename from packages/plugin-commands-installation/test/importRecursive.ts rename to pkg-manager/plugin-commands-installation/test/importRecursive.ts diff --git a/packages/plugin-commands-installation/test/install.ts b/pkg-manager/plugin-commands-installation/test/install.ts similarity index 100% rename from packages/plugin-commands-installation/test/install.ts rename to pkg-manager/plugin-commands-installation/test/install.ts diff --git a/packages/plugin-commands-installation/test/link.ts b/pkg-manager/plugin-commands-installation/test/link.ts similarity index 100% rename from packages/plugin-commands-installation/test/link.ts rename to pkg-manager/plugin-commands-installation/test/link.ts diff --git a/packages/plugin-commands-installation/test/linkRecursive.ts b/pkg-manager/plugin-commands-installation/test/linkRecursive.ts similarity index 100% rename from packages/plugin-commands-installation/test/linkRecursive.ts rename to pkg-manager/plugin-commands-installation/test/linkRecursive.ts diff --git a/packages/plugin-commands-installation/test/miscRecursive.ts b/pkg-manager/plugin-commands-installation/test/miscRecursive.ts similarity index 100% rename from packages/plugin-commands-installation/test/miscRecursive.ts rename to pkg-manager/plugin-commands-installation/test/miscRecursive.ts diff --git a/packages/plugin-commands-installation/test/peerDependencies.ts b/pkg-manager/plugin-commands-installation/test/peerDependencies.ts similarity index 100% rename from packages/plugin-commands-installation/test/peerDependencies.ts rename to pkg-manager/plugin-commands-installation/test/peerDependencies.ts diff --git a/packages/plugin-commands-installation/test/prune.ts b/pkg-manager/plugin-commands-installation/test/prune.ts similarity index 100% rename from packages/plugin-commands-installation/test/prune.ts rename to pkg-manager/plugin-commands-installation/test/prune.ts diff --git a/packages/plugin-commands-installation/test/remove/completion.ts b/pkg-manager/plugin-commands-installation/test/remove/completion.ts similarity index 100% rename from packages/plugin-commands-installation/test/remove/completion.ts rename to pkg-manager/plugin-commands-installation/test/remove/completion.ts diff --git a/packages/plugin-commands-installation/test/remove/remove.ts b/pkg-manager/plugin-commands-installation/test/remove/remove.ts similarity index 100% rename from packages/plugin-commands-installation/test/remove/remove.ts rename to pkg-manager/plugin-commands-installation/test/remove/remove.ts diff --git a/packages/plugin-commands-installation/test/update/getUpdateChoices.test.ts b/pkg-manager/plugin-commands-installation/test/update/getUpdateChoices.test.ts similarity index 100% rename from packages/plugin-commands-installation/test/update/getUpdateChoices.test.ts rename to pkg-manager/plugin-commands-installation/test/update/getUpdateChoices.test.ts diff --git a/packages/plugin-commands-installation/test/update/interactive.ts b/pkg-manager/plugin-commands-installation/test/update/interactive.ts similarity index 100% rename from packages/plugin-commands-installation/test/update/interactive.ts rename to pkg-manager/plugin-commands-installation/test/update/interactive.ts diff --git a/packages/plugin-commands-installation/test/update/recursive.ts b/pkg-manager/plugin-commands-installation/test/update/recursive.ts similarity index 100% rename from packages/plugin-commands-installation/test/update/recursive.ts rename to pkg-manager/plugin-commands-installation/test/update/recursive.ts diff --git a/packages/plugin-commands-installation/test/update/update.ts b/pkg-manager/plugin-commands-installation/test/update/update.ts similarity index 100% rename from packages/plugin-commands-installation/test/update/update.ts rename to pkg-manager/plugin-commands-installation/test/update/update.ts diff --git a/packages/plugin-commands-installation/test/updateToLatestSpecsFromManifest.ts b/pkg-manager/plugin-commands-installation/test/updateToLatestSpecsFromManifest.ts similarity index 100% rename from packages/plugin-commands-installation/test/updateToLatestSpecsFromManifest.ts rename to pkg-manager/plugin-commands-installation/test/updateToLatestSpecsFromManifest.ts diff --git a/packages/plugin-commands-installation/test/updateWorkspaceDependencies.test.ts b/pkg-manager/plugin-commands-installation/test/updateWorkspaceDependencies.test.ts similarity index 100% rename from packages/plugin-commands-installation/test/updateWorkspaceDependencies.test.ts rename to pkg-manager/plugin-commands-installation/test/updateWorkspaceDependencies.test.ts diff --git a/packages/plugin-commands-deploy/test/utils/index.ts b/pkg-manager/plugin-commands-installation/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-deploy/test/utils/index.ts rename to pkg-manager/plugin-commands-installation/test/utils/index.ts diff --git a/packages/plugin-commands-installation/test/warnCyclicDependencies.ts b/pkg-manager/plugin-commands-installation/test/warnCyclicDependencies.ts similarity index 100% rename from packages/plugin-commands-installation/test/warnCyclicDependencies.ts rename to pkg-manager/plugin-commands-installation/test/warnCyclicDependencies.ts diff --git a/pkg-manager/plugin-commands-installation/tsconfig.json b/pkg-manager/plugin-commands-installation/tsconfig.json new file mode 100644 index 0000000000..1fdea07c2a --- /dev/null +++ b/pkg-manager/plugin-commands-installation/tsconfig.json @@ -0,0 +1,97 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/command" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../config/config" + }, + { + "path": "../../config/matcher" + }, + { + "path": "../../exec/plugin-commands-rebuild" + }, + { + "path": "../../fs/graceful-fs" + }, + { + "path": "../../hooks/pnpmfile" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/parse-wanted-dependency" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/manifest-utils" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, + { + "path": "../../privatePackages/assert-project" + }, + { + "path": "../../privatePackages/prepare" + }, + { + "path": "../../privatePackages/test-fixtures" + }, + { + "path": "../../resolving/resolver-base" + }, + { + "path": "../../reviewing/outdated" + }, + { + "path": "../../store/package-store" + }, + { + "path": "../../store/store-connection-manager" + }, + { + "path": "../../workspace/filter-workspace-packages" + }, + { + "path": "../../workspace/find-workspace-dir" + }, + { + "path": "../../workspace/find-workspace-packages" + }, + { + "path": "../../workspace/sort-packages" + }, + { + "path": "../core" + }, + { + "path": "../modules-yaml" + } + ] +} diff --git a/packages/package-requester/tsconfig.lint.json b/pkg-manager/plugin-commands-installation/tsconfig.lint.json similarity index 100% rename from packages/package-requester/tsconfig.lint.json rename to pkg-manager/plugin-commands-installation/tsconfig.lint.json diff --git a/packages/read-projects-context/CHANGELOG.md b/pkg-manager/read-projects-context/CHANGELOG.md similarity index 100% rename from packages/read-projects-context/CHANGELOG.md rename to pkg-manager/read-projects-context/CHANGELOG.md diff --git a/packages/read-projects-context/README.md b/pkg-manager/read-projects-context/README.md similarity index 100% rename from packages/read-projects-context/README.md rename to pkg-manager/read-projects-context/README.md diff --git a/packages/read-projects-context/package.json b/pkg-manager/read-projects-context/package.json similarity index 84% rename from packages/read-projects-context/package.json rename to pkg-manager/read-projects-context/package.json index f1f91073fd..d72be86c48 100644 --- a/packages/read-projects-context/package.json +++ b/pkg-manager/read-projects-context/package.json @@ -18,8 +18,8 @@ "peerDependencies": { "@pnpm/logger": "^5.0.0" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/read-projects-context", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/read-projects-context#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/read-projects-context", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/read-projects-context#readme", "scripts": { "start": "tsc --watch", "test": "pnpm run compile", diff --git a/packages/read-projects-context/src/index.ts b/pkg-manager/read-projects-context/src/index.ts similarity index 100% rename from packages/read-projects-context/src/index.ts rename to pkg-manager/read-projects-context/src/index.ts diff --git a/packages/read-projects-context/tsconfig.json b/pkg-manager/read-projects-context/tsconfig.json similarity index 67% rename from packages/read-projects-context/tsconfig.json rename to pkg-manager/read-projects-context/tsconfig.json index c58d89fba1..fb3d33a266 100644 --- a/packages/read-projects-context/tsconfig.json +++ b/pkg-manager/read-projects-context/tsconfig.json @@ -10,16 +10,16 @@ ], "references": [ { - "path": "../lockfile-file" + "path": "../../config/normalize-registries" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../packages/types" }, { "path": "../modules-yaml" - }, - { - "path": "../normalize-registries" - }, - { - "path": "../types" } ] } diff --git a/packages/package-store/tsconfig.lint.json b/pkg-manager/read-projects-context/tsconfig.lint.json similarity index 100% rename from packages/package-store/tsconfig.lint.json rename to pkg-manager/read-projects-context/tsconfig.lint.json diff --git a/packages/real-hoist/CHANGELOG.md b/pkg-manager/real-hoist/CHANGELOG.md similarity index 100% rename from packages/real-hoist/CHANGELOG.md rename to pkg-manager/real-hoist/CHANGELOG.md diff --git a/packages/real-hoist/README.md b/pkg-manager/real-hoist/README.md similarity index 100% rename from packages/real-hoist/README.md rename to pkg-manager/real-hoist/README.md diff --git a/packages/real-hoist/jest.config.js b/pkg-manager/real-hoist/jest.config.js similarity index 100% rename from packages/real-hoist/jest.config.js rename to pkg-manager/real-hoist/jest.config.js diff --git a/packages/real-hoist/package.json b/pkg-manager/real-hoist/package.json similarity index 86% rename from packages/real-hoist/package.json rename to pkg-manager/real-hoist/package.json index e6189c34a6..3a29af30e8 100644 --- a/packages/real-hoist/package.json +++ b/pkg-manager/real-hoist/package.json @@ -11,7 +11,7 @@ "lib", "!*.map" ], - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/real-hoist#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/real-hoist#readme", "keywords": [ "pnpm7", "pnpm" @@ -20,7 +20,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/real-hoist", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/real-hoist", "scripts": { "start": "tsc --watch", "_test": "jest", diff --git a/packages/real-hoist/src/index.ts b/pkg-manager/real-hoist/src/index.ts similarity index 100% rename from packages/real-hoist/src/index.ts rename to pkg-manager/real-hoist/src/index.ts diff --git a/packages/real-hoist/test/index.ts b/pkg-manager/real-hoist/test/index.ts similarity index 100% rename from packages/real-hoist/test/index.ts rename to pkg-manager/real-hoist/test/index.ts diff --git a/pkg-manager/real-hoist/tsconfig.json b/pkg-manager/real-hoist/tsconfig.json new file mode 100644 index 0000000000..517f0493c3 --- /dev/null +++ b/pkg-manager/real-hoist/tsconfig.json @@ -0,0 +1,25 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + } + ] +} diff --git a/packages/parse-cli-args/tsconfig.lint.json b/pkg-manager/real-hoist/tsconfig.lint.json similarity index 100% rename from packages/parse-cli-args/tsconfig.lint.json rename to pkg-manager/real-hoist/tsconfig.lint.json diff --git a/packages/remove-bins/CHANGELOG.md b/pkg-manager/remove-bins/CHANGELOG.md similarity index 100% rename from packages/remove-bins/CHANGELOG.md rename to pkg-manager/remove-bins/CHANGELOG.md diff --git a/packages/remove-bins/README.md b/pkg-manager/remove-bins/README.md similarity index 100% rename from packages/remove-bins/README.md rename to pkg-manager/remove-bins/README.md diff --git a/packages/remove-bins/package.json b/pkg-manager/remove-bins/package.json similarity index 86% rename from packages/remove-bins/package.json rename to pkg-manager/remove-bins/package.json index 8983b4210d..f782300507 100644 --- a/packages/remove-bins/package.json +++ b/pkg-manager/remove-bins/package.json @@ -18,8 +18,8 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/remove-bins", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/remove-bins#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/remove-bins", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/remove-bins#readme", "scripts": { "start": "tsc --watch", "test": "pnpm run compile", diff --git a/packages/remove-bins/src/index.ts b/pkg-manager/remove-bins/src/index.ts similarity index 100% rename from packages/remove-bins/src/index.ts rename to pkg-manager/remove-bins/src/index.ts diff --git a/packages/remove-bins/src/removeBins.ts b/pkg-manager/remove-bins/src/removeBins.ts similarity index 100% rename from packages/remove-bins/src/removeBins.ts rename to pkg-manager/remove-bins/src/removeBins.ts diff --git a/packages/remove-bins/tsconfig.json b/pkg-manager/remove-bins/tsconfig.json similarity index 67% rename from packages/remove-bins/tsconfig.json rename to pkg-manager/remove-bins/tsconfig.json index 63bd189f3f..d34f1605d4 100644 --- a/packages/remove-bins/tsconfig.json +++ b/pkg-manager/remove-bins/tsconfig.json @@ -10,16 +10,16 @@ ], "references": [ { - "path": "../core-loggers" + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-package-json" }, { "path": "../package-bins" - }, - { - "path": "../read-package-json" - }, - { - "path": "../types" } ] } diff --git a/packages/parse-overrides/tsconfig.lint.json b/pkg-manager/remove-bins/tsconfig.lint.json similarity index 100% rename from packages/parse-overrides/tsconfig.lint.json rename to pkg-manager/remove-bins/tsconfig.lint.json diff --git a/packages/resolve-dependencies/CHANGELOG.md b/pkg-manager/resolve-dependencies/CHANGELOG.md similarity index 100% rename from packages/resolve-dependencies/CHANGELOG.md rename to pkg-manager/resolve-dependencies/CHANGELOG.md diff --git a/packages/resolve-dependencies/README.md b/pkg-manager/resolve-dependencies/README.md similarity index 100% rename from packages/resolve-dependencies/README.md rename to pkg-manager/resolve-dependencies/README.md diff --git a/packages/read-package-json/jest.config.js b/pkg-manager/resolve-dependencies/jest.config.js similarity index 100% rename from packages/read-package-json/jest.config.js rename to pkg-manager/resolve-dependencies/jest.config.js diff --git a/packages/resolve-dependencies/package.json b/pkg-manager/resolve-dependencies/package.json similarity index 92% rename from packages/resolve-dependencies/package.json rename to pkg-manager/resolve-dependencies/package.json index ff7277413b..4de2aef131 100644 --- a/packages/resolve-dependencies/package.json +++ b/pkg-manager/resolve-dependencies/package.json @@ -18,8 +18,8 @@ "peerDependencies": { "@pnpm/logger": "^5.0.0" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/resolve-dependencies", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/resolve-dependencies#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/resolve-dependencies", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/resolve-dependencies#readme", "scripts": { "start": "tsc --watch", "test": "pnpm run compile && pnpm run _test", diff --git a/packages/resolve-dependencies/src/depPathToRef.ts b/pkg-manager/resolve-dependencies/src/depPathToRef.ts similarity index 100% rename from packages/resolve-dependencies/src/depPathToRef.ts rename to pkg-manager/resolve-dependencies/src/depPathToRef.ts diff --git a/packages/resolve-dependencies/src/encodePkgId.ts b/pkg-manager/resolve-dependencies/src/encodePkgId.ts similarity index 100% rename from packages/resolve-dependencies/src/encodePkgId.ts rename to pkg-manager/resolve-dependencies/src/encodePkgId.ts diff --git a/packages/resolve-dependencies/src/getNonDevWantedDependencies.ts b/pkg-manager/resolve-dependencies/src/getNonDevWantedDependencies.ts similarity index 100% rename from packages/resolve-dependencies/src/getNonDevWantedDependencies.ts rename to pkg-manager/resolve-dependencies/src/getNonDevWantedDependencies.ts diff --git a/packages/resolve-dependencies/src/getWantedDependencies.ts b/pkg-manager/resolve-dependencies/src/getWantedDependencies.ts similarity index 100% rename from packages/resolve-dependencies/src/getWantedDependencies.ts rename to pkg-manager/resolve-dependencies/src/getWantedDependencies.ts diff --git a/packages/resolve-dependencies/src/index.ts b/pkg-manager/resolve-dependencies/src/index.ts similarity index 100% rename from packages/resolve-dependencies/src/index.ts rename to pkg-manager/resolve-dependencies/src/index.ts diff --git a/packages/resolve-dependencies/src/mergePeers.ts b/pkg-manager/resolve-dependencies/src/mergePeers.ts similarity index 100% rename from packages/resolve-dependencies/src/mergePeers.ts rename to pkg-manager/resolve-dependencies/src/mergePeers.ts diff --git a/packages/resolve-dependencies/src/nodeIdUtils.ts b/pkg-manager/resolve-dependencies/src/nodeIdUtils.ts similarity index 100% rename from packages/resolve-dependencies/src/nodeIdUtils.ts rename to pkg-manager/resolve-dependencies/src/nodeIdUtils.ts diff --git a/packages/resolve-dependencies/src/resolveDependencies.ts b/pkg-manager/resolve-dependencies/src/resolveDependencies.ts similarity index 100% rename from packages/resolve-dependencies/src/resolveDependencies.ts rename to pkg-manager/resolve-dependencies/src/resolveDependencies.ts diff --git a/packages/resolve-dependencies/src/resolveDependencyTree.ts b/pkg-manager/resolve-dependencies/src/resolveDependencyTree.ts similarity index 100% rename from packages/resolve-dependencies/src/resolveDependencyTree.ts rename to pkg-manager/resolve-dependencies/src/resolveDependencyTree.ts diff --git a/packages/resolve-dependencies/src/resolvePeers.ts b/pkg-manager/resolve-dependencies/src/resolvePeers.ts similarity index 100% rename from packages/resolve-dependencies/src/resolvePeers.ts rename to pkg-manager/resolve-dependencies/src/resolvePeers.ts diff --git a/packages/resolve-dependencies/src/safeIsInnerLink.ts b/pkg-manager/resolve-dependencies/src/safeIsInnerLink.ts similarity index 100% rename from packages/resolve-dependencies/src/safeIsInnerLink.ts rename to pkg-manager/resolve-dependencies/src/safeIsInnerLink.ts diff --git a/packages/resolve-dependencies/src/toResolveImporter.ts b/pkg-manager/resolve-dependencies/src/toResolveImporter.ts similarity index 100% rename from packages/resolve-dependencies/src/toResolveImporter.ts rename to pkg-manager/resolve-dependencies/src/toResolveImporter.ts diff --git a/packages/resolve-dependencies/src/updateLockfile.ts b/pkg-manager/resolve-dependencies/src/updateLockfile.ts similarity index 100% rename from packages/resolve-dependencies/src/updateLockfile.ts rename to pkg-manager/resolve-dependencies/src/updateLockfile.ts diff --git a/packages/resolve-dependencies/src/updateProjectManifest.ts b/pkg-manager/resolve-dependencies/src/updateProjectManifest.ts similarity index 100% rename from packages/resolve-dependencies/src/updateProjectManifest.ts rename to pkg-manager/resolve-dependencies/src/updateProjectManifest.ts diff --git a/packages/resolve-dependencies/src/wantedDepIsLocallyAvailable.ts b/pkg-manager/resolve-dependencies/src/wantedDepIsLocallyAvailable.ts similarity index 100% rename from packages/resolve-dependencies/src/wantedDepIsLocallyAvailable.ts rename to pkg-manager/resolve-dependencies/src/wantedDepIsLocallyAvailable.ts diff --git a/packages/resolve-dependencies/test/nodeIdUtils.test.ts b/pkg-manager/resolve-dependencies/test/nodeIdUtils.test.ts similarity index 100% rename from packages/resolve-dependencies/test/nodeIdUtils.test.ts rename to pkg-manager/resolve-dependencies/test/nodeIdUtils.test.ts diff --git a/packages/resolve-dependencies/test/relativeTarball.test.ts b/pkg-manager/resolve-dependencies/test/relativeTarball.test.ts similarity index 100% rename from packages/resolve-dependencies/test/relativeTarball.test.ts rename to pkg-manager/resolve-dependencies/test/relativeTarball.test.ts diff --git a/packages/resolve-dependencies/test/resolvePeers.ts b/pkg-manager/resolve-dependencies/test/resolvePeers.ts similarity index 100% rename from packages/resolve-dependencies/test/resolvePeers.ts rename to pkg-manager/resolve-dependencies/test/resolvePeers.ts diff --git a/pkg-manager/resolve-dependencies/tsconfig.json b/pkg-manager/resolve-dependencies/tsconfig.json new file mode 100644 index 0000000000..b4e30e6dcc --- /dev/null +++ b/pkg-manager/resolve-dependencies/tsconfig.json @@ -0,0 +1,58 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../config/pick-registry-for-package" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../lockfile/prune-lockfile" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../packages/which-version-is-pinned" + }, + { + "path": "../../pkg-manifest/manifest-utils" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../resolving/npm-resolver" + }, + { + "path": "../../resolving/resolver-base" + }, + { + "path": "../../store/store-controller-types" + } + ] +} diff --git a/packages/pick-fetcher/tsconfig.lint.json b/pkg-manager/resolve-dependencies/tsconfig.lint.json similarity index 100% rename from packages/pick-fetcher/tsconfig.lint.json rename to pkg-manager/resolve-dependencies/tsconfig.lint.json diff --git a/packages/exportable-manifest/CHANGELOG.md b/pkg-manifest/exportable-manifest/CHANGELOG.md similarity index 100% rename from packages/exportable-manifest/CHANGELOG.md rename to pkg-manifest/exportable-manifest/CHANGELOG.md diff --git a/packages/exportable-manifest/README.md b/pkg-manifest/exportable-manifest/README.md similarity index 100% rename from packages/exportable-manifest/README.md rename to pkg-manifest/exportable-manifest/README.md diff --git a/packages/plugin-commands-deploy/jest.config.js b/pkg-manifest/exportable-manifest/jest.config.js similarity index 100% rename from packages/plugin-commands-deploy/jest.config.js rename to pkg-manifest/exportable-manifest/jest.config.js diff --git a/packages/exportable-manifest/package.json b/pkg-manifest/exportable-manifest/package.json similarity index 84% rename from packages/exportable-manifest/package.json rename to pkg-manifest/exportable-manifest/package.json index 3b05b2a34c..c0f192e95c 100644 --- a/packages/exportable-manifest/package.json +++ b/pkg-manifest/exportable-manifest/package.json @@ -18,7 +18,7 @@ "compile": "tsc --build && pnpm run lint --fix", "_test": "jest" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/exportable-manifest", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/exportable-manifest", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/exportable-manifest#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/exportable-manifest#readme", "devDependencies": { "@pnpm/exportable-manifest": "workspace:*", "@types/ramda": "0.28.15" diff --git a/packages/exportable-manifest/src/index.ts b/pkg-manifest/exportable-manifest/src/index.ts similarity index 100% rename from packages/exportable-manifest/src/index.ts rename to pkg-manifest/exportable-manifest/src/index.ts diff --git a/packages/exportable-manifest/src/overridePublishConfig.ts b/pkg-manifest/exportable-manifest/src/overridePublishConfig.ts similarity index 100% rename from packages/exportable-manifest/src/overridePublishConfig.ts rename to pkg-manifest/exportable-manifest/src/overridePublishConfig.ts diff --git a/packages/exportable-manifest/test/index.test.ts b/pkg-manifest/exportable-manifest/test/index.test.ts similarity index 100% rename from packages/exportable-manifest/test/index.test.ts rename to pkg-manifest/exportable-manifest/test/index.test.ts diff --git a/packages/exportable-manifest/test/overridePublishConfig.test.ts b/pkg-manifest/exportable-manifest/test/overridePublishConfig.test.ts similarity index 100% rename from packages/exportable-manifest/test/overridePublishConfig.test.ts rename to pkg-manifest/exportable-manifest/test/overridePublishConfig.test.ts diff --git a/packages/exportable-manifest/tsconfig.json b/pkg-manifest/exportable-manifest/tsconfig.json similarity index 78% rename from packages/exportable-manifest/tsconfig.json rename to pkg-manifest/exportable-manifest/tsconfig.json index 69f0e26743..bdeb6edf19 100644 --- a/packages/exportable-manifest/tsconfig.json +++ b/pkg-manifest/exportable-manifest/tsconfig.json @@ -10,13 +10,13 @@ ], "references": [ { - "path": "../error" + "path": "../../packages/error" + }, + { + "path": "../../packages/types" }, { "path": "../read-project-manifest" - }, - { - "path": "../types" } ] } diff --git a/packages/pick-registry-for-package/tsconfig.lint.json b/pkg-manifest/exportable-manifest/tsconfig.lint.json similarity index 100% rename from packages/pick-registry-for-package/tsconfig.lint.json rename to pkg-manifest/exportable-manifest/tsconfig.lint.json diff --git a/packages/manifest-utils/CHANGELOG.md b/pkg-manifest/manifest-utils/CHANGELOG.md similarity index 100% rename from packages/manifest-utils/CHANGELOG.md rename to pkg-manifest/manifest-utils/CHANGELOG.md diff --git a/packages/manifest-utils/README.md b/pkg-manifest/manifest-utils/README.md similarity index 100% rename from packages/manifest-utils/README.md rename to pkg-manifest/manifest-utils/README.md diff --git a/packages/merge-lockfile-changes/jest.config.js b/pkg-manifest/manifest-utils/jest.config.js similarity index 100% rename from packages/merge-lockfile-changes/jest.config.js rename to pkg-manifest/manifest-utils/jest.config.js diff --git a/packages/manifest-utils/package.json b/pkg-manifest/manifest-utils/package.json similarity index 84% rename from packages/manifest-utils/package.json rename to pkg-manifest/manifest-utils/package.json index 534e601e9f..8404f9db28 100644 --- a/packages/manifest-utils/package.json +++ b/pkg-manifest/manifest-utils/package.json @@ -18,7 +18,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/manifest-utils", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/manifest-utils", "scripts": { "start": "tsc --watch", "_test": "jest", @@ -32,7 +32,7 @@ "@pnpm/error": "workspace:*", "@pnpm/types": "workspace:*" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/manifest-utils#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/manifest-utils#readme", "funding": "https://opencollective.com/pnpm", "devDependencies": { "@pnpm/manifest-utils": "workspace:*" diff --git a/packages/manifest-utils/src/filterDependenciesByType.ts b/pkg-manifest/manifest-utils/src/filterDependenciesByType.ts similarity index 100% rename from packages/manifest-utils/src/filterDependenciesByType.ts rename to pkg-manifest/manifest-utils/src/filterDependenciesByType.ts diff --git a/packages/manifest-utils/src/getAllDependenciesFromManifest.ts b/pkg-manifest/manifest-utils/src/getAllDependenciesFromManifest.ts similarity index 100% rename from packages/manifest-utils/src/getAllDependenciesFromManifest.ts rename to pkg-manifest/manifest-utils/src/getAllDependenciesFromManifest.ts diff --git a/packages/manifest-utils/src/getDependencyTypeFromManifest.ts b/pkg-manifest/manifest-utils/src/getDependencyTypeFromManifest.ts similarity index 100% rename from packages/manifest-utils/src/getDependencyTypeFromManifest.ts rename to pkg-manifest/manifest-utils/src/getDependencyTypeFromManifest.ts diff --git a/packages/manifest-utils/src/getPref.ts b/pkg-manifest/manifest-utils/src/getPref.ts similarity index 100% rename from packages/manifest-utils/src/getPref.ts rename to pkg-manifest/manifest-utils/src/getPref.ts diff --git a/packages/manifest-utils/src/getSpecFromPackageManifest.ts b/pkg-manifest/manifest-utils/src/getSpecFromPackageManifest.ts similarity index 100% rename from packages/manifest-utils/src/getSpecFromPackageManifest.ts rename to pkg-manifest/manifest-utils/src/getSpecFromPackageManifest.ts diff --git a/packages/manifest-utils/src/index.ts b/pkg-manifest/manifest-utils/src/index.ts similarity index 100% rename from packages/manifest-utils/src/index.ts rename to pkg-manifest/manifest-utils/src/index.ts diff --git a/packages/manifest-utils/src/updateProjectManifestObject.ts b/pkg-manifest/manifest-utils/src/updateProjectManifestObject.ts similarity index 100% rename from packages/manifest-utils/src/updateProjectManifestObject.ts rename to pkg-manifest/manifest-utils/src/updateProjectManifestObject.ts diff --git a/packages/manifest-utils/test/getDependencyTypeFromManifest.test.ts b/pkg-manifest/manifest-utils/test/getDependencyTypeFromManifest.test.ts similarity index 100% rename from packages/manifest-utils/test/getDependencyTypeFromManifest.test.ts rename to pkg-manifest/manifest-utils/test/getDependencyTypeFromManifest.test.ts diff --git a/packages/manifest-utils/test/getPref.test.ts b/pkg-manifest/manifest-utils/test/getPref.test.ts similarity index 100% rename from packages/manifest-utils/test/getPref.test.ts rename to pkg-manifest/manifest-utils/test/getPref.test.ts diff --git a/packages/manifest-utils/test/getSpecFromPackageManifest.test.ts b/pkg-manifest/manifest-utils/test/getSpecFromPackageManifest.test.ts similarity index 100% rename from packages/manifest-utils/test/getSpecFromPackageManifest.test.ts rename to pkg-manifest/manifest-utils/test/getSpecFromPackageManifest.test.ts diff --git a/packages/manifest-utils/test/index.ts b/pkg-manifest/manifest-utils/test/index.ts similarity index 100% rename from packages/manifest-utils/test/index.ts rename to pkg-manifest/manifest-utils/test/index.ts diff --git a/packages/manifest-utils/test/updateProjectManifestObject.test.ts b/pkg-manifest/manifest-utils/test/updateProjectManifestObject.test.ts similarity index 100% rename from packages/manifest-utils/test/updateProjectManifestObject.test.ts rename to pkg-manifest/manifest-utils/test/updateProjectManifestObject.test.ts diff --git a/packages/fetcher-base/tsconfig.json b/pkg-manifest/manifest-utils/tsconfig.json similarity index 66% rename from packages/fetcher-base/tsconfig.json rename to pkg-manifest/manifest-utils/tsconfig.json index be07b80289..723f453bbd 100644 --- a/packages/fetcher-base/tsconfig.json +++ b/pkg-manifest/manifest-utils/tsconfig.json @@ -10,13 +10,13 @@ ], "references": [ { - "path": "../cafs-types" + "path": "../../packages/core-loggers" }, { - "path": "../resolver-base" + "path": "../../packages/error" }, { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/pkgs-graph/tsconfig.lint.json b/pkg-manifest/manifest-utils/tsconfig.lint.json similarity index 100% rename from packages/pkgs-graph/tsconfig.lint.json rename to pkg-manifest/manifest-utils/tsconfig.lint.json diff --git a/packages/read-package-json/CHANGELOG.md b/pkg-manifest/read-package-json/CHANGELOG.md similarity index 100% rename from packages/read-package-json/CHANGELOG.md rename to pkg-manifest/read-package-json/CHANGELOG.md diff --git a/packages/read-package-json/README.md b/pkg-manifest/read-package-json/README.md similarity index 100% rename from packages/read-package-json/README.md rename to pkg-manifest/read-package-json/README.md diff --git a/packages/resolve-dependencies/jest.config.js b/pkg-manifest/read-package-json/jest.config.js similarity index 100% rename from packages/resolve-dependencies/jest.config.js rename to pkg-manifest/read-package-json/jest.config.js diff --git a/packages/read-package-json/package.json b/pkg-manifest/read-package-json/package.json similarity index 84% rename from packages/read-package-json/package.json rename to pkg-manifest/read-package-json/package.json index aaab51d100..6340307e7b 100644 --- a/packages/read-package-json/package.json +++ b/pkg-manifest/read-package-json/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/read-package-json", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/read-package-json", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/read-package-json#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/read-package-json#readme", "dependencies": { "@pnpm/error": "workspace:*", "@pnpm/types": "workspace:*", diff --git a/packages/read-package-json/src/index.ts b/pkg-manifest/read-package-json/src/index.ts similarity index 100% rename from packages/read-package-json/src/index.ts rename to pkg-manifest/read-package-json/src/index.ts diff --git a/packages/read-package-json/test/fixtures/invalid-name/package.json b/pkg-manifest/read-package-json/test/fixtures/invalid-name/package.json similarity index 100% rename from packages/read-package-json/test/fixtures/invalid-name/package.json rename to pkg-manifest/read-package-json/test/fixtures/invalid-name/package.json diff --git a/packages/read-package-json/test/index.ts b/pkg-manifest/read-package-json/test/index.ts similarity index 100% rename from packages/read-package-json/test/index.ts rename to pkg-manifest/read-package-json/test/index.ts diff --git a/packages/parse-cli-args/tsconfig.json b/pkg-manifest/read-package-json/tsconfig.json similarity index 74% rename from packages/parse-cli-args/tsconfig.json rename to pkg-manifest/read-package-json/tsconfig.json index 226b798498..0a5f637a32 100644 --- a/packages/parse-cli-args/tsconfig.json +++ b/pkg-manifest/read-package-json/tsconfig.json @@ -10,10 +10,10 @@ ], "references": [ { - "path": "../error" + "path": "../../packages/error" }, { - "path": "../find-workspace-dir" + "path": "../../packages/types" } ] } diff --git a/packages/plugin-commands-audit/tsconfig.lint.json b/pkg-manifest/read-package-json/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-audit/tsconfig.lint.json rename to pkg-manifest/read-package-json/tsconfig.lint.json diff --git a/packages/read-project-manifest/CHANGELOG.md b/pkg-manifest/read-project-manifest/CHANGELOG.md similarity index 100% rename from packages/read-project-manifest/CHANGELOG.md rename to pkg-manifest/read-project-manifest/CHANGELOG.md diff --git a/packages/read-project-manifest/README.md b/pkg-manifest/read-project-manifest/README.md similarity index 100% rename from packages/read-project-manifest/README.md rename to pkg-manifest/read-project-manifest/README.md diff --git a/packages/read-project-manifest/fixtures/invalid-package-json/package.json b/pkg-manifest/read-project-manifest/fixtures/invalid-package-json/package.json similarity index 100% rename from packages/read-project-manifest/fixtures/invalid-package-json/package.json rename to pkg-manifest/read-project-manifest/fixtures/invalid-package-json/package.json diff --git a/packages/read-project-manifest/fixtures/invalid-package-json5/package.json5 b/pkg-manifest/read-project-manifest/fixtures/invalid-package-json5/package.json5 similarity index 100% rename from packages/read-project-manifest/fixtures/invalid-package-json5/package.json5 rename to pkg-manifest/read-project-manifest/fixtures/invalid-package-json5/package.json5 diff --git a/packages/read-project-manifest/fixtures/invalid-package-yaml/package.yaml b/pkg-manifest/read-project-manifest/fixtures/invalid-package-yaml/package.yaml similarity index 100% rename from packages/read-project-manifest/fixtures/invalid-package-yaml/package.yaml rename to pkg-manifest/read-project-manifest/fixtures/invalid-package-yaml/package.yaml diff --git a/packages/local-resolver/example-package/package.json b/pkg-manifest/read-project-manifest/fixtures/package-json/package.json similarity index 100% rename from packages/local-resolver/example-package/package.json rename to pkg-manifest/read-project-manifest/fixtures/package-json/package.json diff --git a/packages/read-project-manifest/fixtures/package-json5/package.json5 b/pkg-manifest/read-project-manifest/fixtures/package-json5/package.json5 similarity index 100% rename from packages/read-project-manifest/fixtures/package-json5/package.json5 rename to pkg-manifest/read-project-manifest/fixtures/package-json5/package.json5 diff --git a/packages/read-project-manifest/fixtures/package-yaml/package.yaml b/pkg-manifest/read-project-manifest/fixtures/package-yaml/package.yaml similarity index 100% rename from packages/read-project-manifest/fixtures/package-yaml/package.yaml rename to pkg-manifest/read-project-manifest/fixtures/package-yaml/package.yaml diff --git a/packages/read-project-manifest/jest.config.js b/pkg-manifest/read-project-manifest/jest.config.js similarity index 100% rename from packages/read-project-manifest/jest.config.js rename to pkg-manifest/read-project-manifest/jest.config.js diff --git a/packages/read-project-manifest/package.json b/pkg-manifest/read-project-manifest/package.json similarity index 87% rename from packages/read-project-manifest/package.json rename to pkg-manifest/read-project-manifest/package.json index 3e965320fc..b3e95eac81 100644 --- a/packages/read-project-manifest/package.json +++ b/pkg-manifest/read-project-manifest/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/read-project-manifest", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/read-project-manifest", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/read-project-manifest#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/read-project-manifest#readme", "dependencies": { "@pnpm/error": "workspace:*", "@pnpm/graceful-fs": "workspace:*", diff --git a/packages/read-project-manifest/src/index.ts b/pkg-manifest/read-project-manifest/src/index.ts similarity index 100% rename from packages/read-project-manifest/src/index.ts rename to pkg-manifest/read-project-manifest/src/index.ts diff --git a/packages/read-project-manifest/src/readFile.ts b/pkg-manifest/read-project-manifest/src/readFile.ts similarity index 100% rename from packages/read-project-manifest/src/readFile.ts rename to pkg-manifest/read-project-manifest/src/readFile.ts diff --git a/packages/read-project-manifest/test/index.ts b/pkg-manifest/read-project-manifest/test/index.ts similarity index 100% rename from packages/read-project-manifest/test/index.ts rename to pkg-manifest/read-project-manifest/test/index.ts diff --git a/packages/read-project-manifest/tsconfig.json b/pkg-manifest/read-project-manifest/tsconfig.json similarity index 72% rename from packages/read-project-manifest/tsconfig.json rename to pkg-manifest/read-project-manifest/tsconfig.json index ed91a8803b..754bd4b8fa 100644 --- a/packages/read-project-manifest/tsconfig.json +++ b/pkg-manifest/read-project-manifest/tsconfig.json @@ -10,13 +10,13 @@ ], "references": [ { - "path": "../error" + "path": "../../fs/graceful-fs" }, { - "path": "../graceful-fs" + "path": "../../packages/error" }, { - "path": "../types" + "path": "../../packages/types" }, { "path": "../write-project-manifest" diff --git a/packages/plugin-commands-deploy/tsconfig.lint.json b/pkg-manifest/read-project-manifest/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-deploy/tsconfig.lint.json rename to pkg-manifest/read-project-manifest/tsconfig.lint.json diff --git a/packages/write-project-manifest/CHANGELOG.md b/pkg-manifest/write-project-manifest/CHANGELOG.md similarity index 100% rename from packages/write-project-manifest/CHANGELOG.md rename to pkg-manifest/write-project-manifest/CHANGELOG.md diff --git a/packages/write-project-manifest/README.md b/pkg-manifest/write-project-manifest/README.md similarity index 100% rename from packages/write-project-manifest/README.md rename to pkg-manifest/write-project-manifest/README.md diff --git a/packages/tarball-fetcher/jest.config.js b/pkg-manifest/write-project-manifest/jest.config.js similarity index 100% rename from packages/tarball-fetcher/jest.config.js rename to pkg-manifest/write-project-manifest/jest.config.js diff --git a/packages/write-project-manifest/package.json b/pkg-manifest/write-project-manifest/package.json similarity index 84% rename from packages/write-project-manifest/package.json rename to pkg-manifest/write-project-manifest/package.json index 632747a3e3..89f15d0b3f 100644 --- a/packages/write-project-manifest/package.json +++ b/pkg-manifest/write-project-manifest/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/write-project-manifest", + "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/write-project-manifest", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/write-project-manifest#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/write-project-manifest#readme", "dependencies": { "@pnpm/types": "workspace:*", "json5": "^2.2.1", diff --git a/packages/write-project-manifest/src/index.ts b/pkg-manifest/write-project-manifest/src/index.ts similarity index 100% rename from packages/write-project-manifest/src/index.ts rename to pkg-manifest/write-project-manifest/src/index.ts diff --git a/packages/write-project-manifest/test/index.ts b/pkg-manifest/write-project-manifest/test/index.ts similarity index 100% rename from packages/write-project-manifest/test/index.ts rename to pkg-manifest/write-project-manifest/test/index.ts diff --git a/pkg-manifest/write-project-manifest/tsconfig.json b/pkg-manifest/write-project-manifest/tsconfig.json new file mode 100644 index 0000000000..4934a75de4 --- /dev/null +++ b/pkg-manifest/write-project-manifest/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + } + ] +} diff --git a/packages/plugin-commands-env/tsconfig.lint.json b/pkg-manifest/write-project-manifest/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-env/tsconfig.lint.json rename to pkg-manifest/write-project-manifest/tsconfig.lint.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index caedf0dc7d..c2e8c20f8f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,11 +122,11 @@ importers: .meta-updater: dependencies: '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../packages/lockfile-file + specifier: 6.0.2 + version: 6.0.2_@pnpm+logger@5.0.0 '@pnpm/types': - specifier: workspace:* - version: link:../packages/types + specifier: 8.9.0 + version: 8.9.0 '@types/normalize-path': specifier: ^3.0.0 version: 3.0.0 @@ -150,228 +150,11 @@ importers: specifier: workspace:* version: 'link:' - packages/artifacts/linux-arm64: - devDependencies: - '@pnpm/linux-arm64': - specifier: workspace:* - version: 'link:' - - packages/artifacts/linux-x64: - devDependencies: - '@pnpm/linux-x64': - specifier: workspace:* - version: 'link:' - - packages/artifacts/macos-arm64: - devDependencies: - '@pnpm/macos-arm64': - specifier: workspace:* - version: 'link:' - - packages/artifacts/macos-x64: - devDependencies: - '@pnpm/macos-x64': - specifier: workspace:* - version: 'link:' - - packages/artifacts/win-x64: - devDependencies: - '@pnpm/win-x64': - specifier: workspace:* - version: 'link:' - - packages/audit: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/lockfile-walker': - specifier: workspace:* - version: link:../lockfile-walker - '@pnpm/types': - specifier: workspace:* - version: link:../types - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/audit': - specifier: workspace:* - version: 'link:' - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - nock: - specifier: 13.2.9 - version: 13.2.9 - - packages/build-modules: - dependencies: - '@pnpm/calc-dep-state': - specifier: workspace:* - version: link:../calc-dep-state - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/graph-sequencer': - specifier: 1.0.0 - version: 1.0.0 - '@pnpm/lifecycle': - specifier: workspace:* - version: link:../lifecycle - '@pnpm/link-bins': - specifier: workspace:* - version: link:../link-bins - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - patch-package: - specifier: ^6.5.0 - version: 6.5.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - run-groups: - specifier: ^3.0.1 - version: 3.0.1 - devDependencies: - '@pnpm/build-modules': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/cafs: - dependencies: - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/graceful-fs': - specifier: workspace:* - version: link:../graceful-fs - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - concat-stream: - specifier: ^2.0.0 - version: 2.0.0 - decompress-maybe: - specifier: ^1.0.0 - version: 1.0.0 - get-stream: - specifier: ^6.0.1 - version: 6.0.1 - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - path-temp: - specifier: ^2.0.0 - version: 2.0.0 - rename-overwrite: - specifier: ^4.0.3 - version: 4.0.3 - ssri: - specifier: ^9.0.1 - version: 9.0.1 - strip-bom: - specifier: ^4.0.0 - version: 4.0.0 - tar-stream: - specifier: ^2.2.0 - version: 2.2.0 - devDependencies: - '@pnpm/cafs': - specifier: workspace:* - version: 'link:' - '@pnpm/cafs-types': - specifier: workspace:* - version: link:../cafs-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@types/concat-stream': - specifier: ^2.0.0 - version: 2.0.0 - '@types/node': - specifier: ^14.18.33 - version: 14.18.33 - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - '@types/tar-stream': - specifier: ^2.2.2 - version: 2.2.2 - p-defer: - specifier: ^3.0.0 - version: 3.0.0 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/cafs-types: - devDependencies: - '@pnpm/cafs-types': - specifier: workspace:* - version: 'link:' - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - - packages/calc-dep-state: - dependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - sort-keys: - specifier: ^4.2.0 - version: 4.2.0 - devDependencies: - '@pnpm/calc-dep-state': - specifier: workspace:* - version: 'link:' - - packages/cli-meta: + cli/cli-meta: dependencies: '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types load-json-file: specifier: ^6.2.0 version: 6.2.0 @@ -380,35 +163,35 @@ importers: specifier: workspace:* version: 'link:' - packages/cli-utils: + cli/cli-utils: dependencies: '@pnpm/cli-meta': specifier: workspace:* version: link:../cli-meta '@pnpm/config': specifier: workspace:* - version: link:../config + version: link:../../config/config '@pnpm/default-reporter': specifier: workspace:* version: link:../default-reporter '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/manifest-utils': specifier: workspace:* - version: link:../manifest-utils + version: link:../../pkg-manifest/manifest-utils '@pnpm/package-is-installable': specifier: workspace:* - version: link:../package-is-installable + version: link:../../config/package-is-installable '@pnpm/read-project-manifest': specifier: workspace:* - version: link:../read-project-manifest + version: link:../../pkg-manifest/read-project-manifest '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types chalk: specifier: ^4.1.2 version: 4.1.2 @@ -423,72 +206,136 @@ importers: specifier: 0.28.15 version: 0.28.15 - packages/client: - dependencies: - '@pnpm/default-resolver': - specifier: workspace:* - version: link:../default-resolver - '@pnpm/directory-fetcher': - specifier: workspace:* - version: link:../directory-fetcher - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/git-fetcher': - specifier: workspace:* - version: link:../git-fetcher - '@pnpm/network.auth-header': - specifier: workspace:* - version: link:../network.auth-header - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/tarball-fetcher': - specifier: workspace:* - version: link:../tarball-fetcher - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/client': - specifier: workspace:* - version: 'link:' - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/command: + cli/command: devDependencies: '@pnpm/command': specifier: workspace:* version: 'link:' - packages/common-cli-options-help: + cli/common-cli-options-help: devDependencies: '@pnpm/common-cli-options-help': specifier: workspace:* version: 'link:' - packages/config: + cli/default-reporter: + dependencies: + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/render-peer-issues': + specifier: workspace:* + version: link:../../packages/render-peer-issues + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + ansi-diff: + specifier: ^1.1.1 + version: 1.1.1 + boxen: + specifier: ^5.1.2 + version: 5.1.2 + chalk: + specifier: ^4.1.2 + version: 4.1.2 + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + pretty-bytes: + specifier: ^5.6.0 + version: 5.6.0 + pretty-ms: + specifier: ^7.0.1 + version: 7.0.1 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + right-pad: + specifier: ^1.0.1 + version: 1.0.1 + rxjs: + specifier: ^7.5.7 + version: 7.5.7 + semver: + specifier: ^7.3.8 + version: 7.3.8 + stacktracey: + specifier: ^2.1.8 + version: 2.1.8 + string-length: + specifier: ^4.0.2 + version: 4.0.2 + strip-ansi: + specifier: ^6.0.1 + version: 6.0.1 + devDependencies: + '@pnpm/default-reporter': + specifier: workspace:* + version: 'link:' + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + ghooks: + specifier: 2.0.4 + version: 2.0.4 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + normalize-newline: + specifier: 3.0.0 + version: 3.0.0 + + cli/parse-cli-args: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/find-workspace-dir': + specifier: workspace:* + version: link:../../workspace/find-workspace-dir + '@pnpm/nopt': + specifier: ^0.2.1 + version: 0.2.1 + didyoumean2: + specifier: ^5.0.0 + version: 5.0.0 + devDependencies: + '@pnpm/parse-cli-args': + specifier: workspace:* + version: 'link:' + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + config/config: dependencies: '@pnpm/config.env-replace': specifier: 1.0.0 version: 1.0.0 '@pnpm/constants': specifier: workspace:* - version: link:../constants + version: link:../../packages/constants '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/git-utils': specifier: workspace:* - version: link:../git-utils + version: link:../../packages/git-utils '@pnpm/matcher': specifier: workspace:* version: link:../matcher @@ -497,13 +344,13 @@ importers: version: 2.0.4 '@pnpm/pnpmfile': specifier: workspace:* - version: link:../pnpmfile + version: link:../../hooks/pnpmfile '@pnpm/read-project-manifest': specifier: workspace:* - version: link:../read-project-manifest + version: link:../../pkg-manifest/read-project-manifest '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types camelcase: specifier: ^6.3.0 version: 6.3.0 @@ -563,35 +410,1869 @@ importers: specifier: ^5.0.1 version: 5.0.1 + config/matcher: + dependencies: + escape-string-regexp: + specifier: ^4.0.0 + version: 4.0.0 + devDependencies: + '@pnpm/matcher': + specifier: workspace:* + version: 'link:' + + config/normalize-registries: + dependencies: + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + normalize-registry-url: + specifier: 2.0.0 + version: 2.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/normalize-registries': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + + config/package-is-installable: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + detect-libc: + specifier: ^2.0.1 + version: 2.0.1 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + mem: + specifier: ^8.1.1 + version: 8.1.1 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/package-is-installable': + specifier: workspace:* + version: 'link:' + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + + config/parse-overrides: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/parse-wanted-dependency': + specifier: workspace:* + version: link:../../packages/parse-wanted-dependency + devDependencies: + '@pnpm/parse-overrides': + specifier: workspace:* + version: 'link:' + + config/pick-registry-for-package: + dependencies: + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + devDependencies: + '@pnpm/pick-registry-for-package': + specifier: workspace:* + version: 'link:' + + env/node.fetcher: + dependencies: + '@pnpm/create-cafs-store': + specifier: workspace:* + version: link:../../store/create-cafs-store + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../../fetching/fetcher-base + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../../network/fetching-types + '@pnpm/pick-fetcher': + specifier: workspace:* + version: link:../../fetching/pick-fetcher + '@pnpm/tarball-fetcher': + specifier: workspace:* + version: link:../../fetching/tarball-fetcher + adm-zip: + specifier: ^0.5.9 + version: 0.5.9 + detect-libc: + specifier: ^2.0.1 + version: 2.0.1 + rename-overwrite: + specifier: ^4.0.3 + version: 4.0.3 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + devDependencies: + '@pnpm/cafs-types': + specifier: workspace:* + version: link:../../store/cafs-types + '@pnpm/node.fetcher': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@types/adm-zip': + specifier: ^0.4.34 + version: 0.4.34 + node-fetch: + specifier: 3.0.0-beta.9 + version: 3.0.0-beta.9 + + env/node.resolver: + dependencies: + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../../network/fetching-types + '@pnpm/node.fetcher': + specifier: workspace:* + version: link:../node.fetcher + semver: + specifier: ^7.3.8 + version: 7.3.8 + version-selector-type: + specifier: ^3.0.0 + version: 3.0.0 + devDependencies: + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/node.resolver': + specifier: workspace:* + version: 'link:' + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + + env/plugin-commands-env: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/node.fetcher': + specifier: workspace:* + version: link:../node.fetcher + '@pnpm/node.resolver': + specifier: workspace:* + version: link:../node.resolver + '@pnpm/remove-bins': + specifier: workspace:* + version: link:../../pkg-manager/remove-bins + '@pnpm/store-path': + specifier: workspace:* + version: link:../../store/store-path + '@zkochan/cmd-shim': + specifier: ^5.3.1 + version: 5.3.1 + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + semver: + specifier: ^7.3.8 + version: 7.3.8 + write-json-file: + specifier: ^4.3.0 + version: 4.3.0 + devDependencies: + '@pnpm/plugin-commands-env': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@types/adm-zip': + specifier: ^0.4.34 + version: 0.4.34 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + adm-zip: + specifier: ^0.5.9 + version: 0.5.9 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + nock: + specifier: 13.2.9 + version: 13.2.9 + node-fetch: + specifier: 3.0.0-beta.9 + version: 3.0.0-beta.9 + path-name: + specifier: ^1.0.0 + version: 1.0.0 + + exec/build-modules: + dependencies: + '@pnpm/calc-dep-state': + specifier: workspace:* + version: link:../../packages/calc-dep-state + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/graph-sequencer': + specifier: 1.0.0 + version: 1.0.0 + '@pnpm/lifecycle': + specifier: workspace:* + version: link:../lifecycle + '@pnpm/link-bins': + specifier: workspace:* + version: link:../../pkg-manager/link-bins + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../../store/store-controller-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + patch-package: + specifier: ^6.5.0 + version: 6.5.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + run-groups: + specifier: ^3.0.1 + version: 3.0.1 + devDependencies: + '@pnpm/build-modules': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + + exec/lifecycle: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/directory-fetcher': + specifier: workspace:* + version: link:../../fetching/directory-fetcher + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/npm-lifecycle': + specifier: ^2.0.0-1 + version: 2.0.0-1_typanion@3.12.1 + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../../store/store-controller-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + run-groups: + specifier: ^3.0.1 + version: 3.0.1 + devDependencies: + '@pnpm/lifecycle': + specifier: workspace:* + version: 'link:' + '@types/rimraf': + specifier: ^3.0.2 + version: 3.0.2 + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + json-append: + specifier: 1.1.1 + version: 1.1.1 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + + exec/plugin-commands-rebuild: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/find-workspace-packages': + specifier: workspace:* + version: link:../../workspace/find-workspace-packages + '@pnpm/get-context': + specifier: workspace:* + version: link:../../pkg-manager/get-context + '@pnpm/graph-sequencer': + specifier: 1.0.0 + version: 1.0.0 + '@pnpm/lifecycle': + specifier: workspace:* + version: link:../lifecycle + '@pnpm/link-bins': + specifier: workspace:* + version: link:../../pkg-manager/link-bins + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../../lockfile/lockfile-utils + '@pnpm/lockfile-walker': + specifier: workspace:* + version: link:../../lockfile/lockfile-walker + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/modules-yaml': + specifier: workspace:* + version: link:../../pkg-manager/modules-yaml + '@pnpm/normalize-registries': + specifier: workspace:* + version: link:../../config/normalize-registries + '@pnpm/npm-package-arg': + specifier: ^1.0.0 + version: 1.0.0 + '@pnpm/sort-packages': + specifier: workspace:* + version: link:../../workspace/sort-packages + '@pnpm/store-connection-manager': + specifier: workspace:* + version: link:../../store/store-connection-manager + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../../store/store-controller-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + mem: + specifier: ^8.1.1 + version: 8.1.1 + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + run-groups: + specifier: ^3.0.1 + version: 3.0.1 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../../workspace/filter-workspace-packages + '@pnpm/plugin-commands-rebuild': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + '@types/sinon': + specifier: ^10.0.13 + version: 10.0.13 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + sinon: + specifier: ^14.0.2 + version: 14.0.2 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + + exec/plugin-commands-script-runners: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/command': + specifier: workspace:* + version: link:../../cli/command + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/lifecycle': + specifier: workspace:* + version: link:../lifecycle + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/package-bins': + specifier: workspace:* + version: link:../../pkg-manager/package-bins + '@pnpm/plugin-commands-installation': + specifier: workspace:* + version: link:../../pkg-manager/plugin-commands-installation + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/sort-packages': + specifier: workspace:* + version: link:../../workspace/sort-packages + '@pnpm/store-path': + specifier: workspace:* + version: link:../../store/store-path + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + path-name: + specifier: ^1.0.0 + version: 1.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + realpath-missing: + specifier: ^1.1.0 + version: 1.1.0 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../../workspace/filter-workspace-packages + '@pnpm/plugin-commands-script-runners': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + + exec/prepare-package: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + preferred-pm: + specifier: ^3.0.3 + version: 3.0.3 + devDependencies: + '@pnpm/prepare-package': + specifier: workspace:* + version: 'link:' + + exec/run-npm: + dependencies: + cross-spawn: + specifier: ^7.0.3 + version: 7.0.3 + path-name: + specifier: ^1.0.0 + version: 1.0.0 + devDependencies: + '@pnpm/run-npm': + specifier: workspace:* + version: 'link:' + '@types/cross-spawn': + specifier: ^6.0.2 + version: 6.0.2 + + fetching/directory-fetcher: + dependencies: + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../fetcher-base + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + npm-packlist: + specifier: ^5.1.3 + version: 5.1.3 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/directory-fetcher': + specifier: workspace:* + version: 'link:' + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/npm-packlist': + specifier: ^3.0.0 + version: 3.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + + fetching/fetcher-base: + dependencies: + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + devDependencies: + '@pnpm/cafs-types': + specifier: workspace:* + version: link:../../store/cafs-types + '@pnpm/fetcher-base': + specifier: workspace:* + version: 'link:' + + fetching/git-fetcher: + dependencies: + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../fetcher-base + '@pnpm/prepare-package': + specifier: workspace:* + version: link:../../exec/prepare-package + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + devDependencies: + '@pnpm/cafs': + specifier: workspace:* + version: link:../../store/cafs + '@pnpm/create-cafs-store': + specifier: workspace:* + version: link:../../store/create-cafs-store + '@pnpm/git-fetcher': + specifier: workspace:* + version: 'link:' + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + p-defer: + specifier: ^3.0.0 + version: 3.0.0 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + fetching/pick-fetcher: + devDependencies: + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../fetcher-base + '@pnpm/pick-fetcher': + specifier: workspace:* + version: 'link:' + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + + fetching/tarball-fetcher: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../fetcher-base + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../../network/fetching-types + '@pnpm/graceful-fs': + specifier: workspace:* + version: link:../../fs/graceful-fs + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/prepare-package': + specifier: workspace:* + version: link:../../exec/prepare-package + '@zkochan/retry': + specifier: ^0.2.0 + version: 0.2.0 + p-map-values: + specifier: ^1.0.0 + version: 1.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + ssri: + specifier: ^9.0.1 + version: 9.0.1 + devDependencies: + '@pnpm/cafs-types': + specifier: workspace:* + version: link:../../store/cafs-types + '@pnpm/create-cafs-store': + specifier: workspace:* + version: link:../../store/create-cafs-store + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/tarball-fetcher': + specifier: workspace:* + version: 'link:' + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/retry': + specifier: ^0.12.2 + version: 0.12.2 + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + nock: + specifier: 13.2.9 + version: 13.2.9 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + fs/find-packages: + dependencies: + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@pnpm/util.lex-comparator': + specifier: 1.0.0 + version: 1.0.0 + fast-glob: + specifier: ^3.2.12 + version: 3.2.12 + p-filter: + specifier: ^2.1.0 + version: 2.1.0 + devDependencies: + find-packages: + specifier: workspace:* + version: 'link:' + + fs/graceful-fs: + dependencies: + graceful-fs: + specifier: ^4.2.10 + version: 4.2.10 + devDependencies: + '@pnpm/graceful-fs': + specifier: workspace:* + version: 'link:' + '@types/graceful-fs': + specifier: ^4.1.5 + version: 4.1.5 + + fs/indexed-pkg-importer: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../../store/store-controller-types + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + make-empty-dir: + specifier: ^2.0.0 + version: 2.0.0 + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + path-temp: + specifier: ^2.0.0 + version: 2.0.0 + rename-overwrite: + specifier: ^4.0.3 + version: 4.0.3 + sanitize-filename: + specifier: ^1.6.3 + version: 1.6.3 + devDependencies: + '@pnpm/fs.indexed-pkg-importer': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + + fs/read-modules-dir: + dependencies: + graceful-fs: + specifier: ^4.2.10 + version: 4.2.10 + devDependencies: + '@pnpm/read-modules-dir': + specifier: workspace:* + version: 'link:' + '@types/graceful-fs': + specifier: ^4.1.5 + version: 4.1.5 + + fs/symlink-dependency: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + symlink-dir: + specifier: ^5.0.1 + version: 5.0.1 + devDependencies: + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/symlink-dependency': + specifier: workspace:* + version: 'link:' + + hooks/pnpmfile: + dependencies: + '@pnpm/core': + specifier: workspace:* + version: link:../../pkg-manager/core + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../../lockfile/lockfile-types + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../../store/store-controller-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + chalk: + specifier: ^4.1.2 + version: 4.1.2 + path-absolute: + specifier: ^1.0.1 + version: 1.0.1 + devDependencies: + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../../fetching/fetcher-base + '@pnpm/pnpmfile': + specifier: workspace:* + version: 'link:' + + hooks/read-package-hook: + dependencies: + '@pnpm/matcher': + specifier: workspace:* + version: link:../../config/matcher + '@pnpm/parse-overrides': + specifier: workspace:* + version: link:../../config/parse-overrides + '@pnpm/parse-wanted-dependency': + specifier: workspace:* + version: link:../../packages/parse-wanted-dependency + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@yarnpkg/extensions': + specifier: 2.0.0-rc.9 + version: 2.0.0-rc.9_@yarnpkg+core@4.0.0-rc.27 + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/hooks.read-package-hook': + specifier: workspace:* + version: 'link:' + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + '@yarnpkg/core': + specifier: 4.0.0-rc.27 + version: 4.0.0-rc.27_typanion@3.12.1 + + lockfile/audit: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../../network/fetching-types + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile-types + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../lockfile-utils + '@pnpm/lockfile-walker': + specifier: workspace:* + version: link:../lockfile-walker + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/audit': + specifier: workspace:* + version: 'link:' + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../lockfile-file + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + nock: + specifier: 13.2.9 + version: 13.2.9 + + lockfile/filter-lockfile: + dependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile-types + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../lockfile-utils + '@pnpm/lockfile-walker': + specifier: workspace:* + version: link:../lockfile-walker + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/package-is-installable': + specifier: workspace:* + version: link:../../config/package-is-installable + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/filter-lockfile': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + detect-libc: + specifier: ^2.0.1 + version: 2.0.1 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + yaml-tag: + specifier: 1.1.0 + version: 1.1.0 + + lockfile/lockfile-file: + dependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/git-utils': + specifier: workspace:* + version: link:../../packages/git-utils + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile-types + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/merge-lockfile-changes': + specifier: workspace:* + version: link:../merge-lockfile-changes + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@pnpm/util.lex-comparator': + specifier: 1.0.0 + version: 1.0.0 + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + comver-to-semver: + specifier: ^1.0.0 + version: 1.0.0 + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + js-yaml: + specifier: npm:@zkochan/js-yaml@^0.0.6 + version: /@zkochan/js-yaml/0.0.6 + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + semver: + specifier: ^7.3.8 + version: 7.3.8 + sort-keys: + specifier: ^4.2.0 + version: 4.2.0 + strip-bom: + specifier: ^4.0.0 + version: 4.0.0 + write-file-atomic: + specifier: ^4.0.2 + version: 4.0.2 + devDependencies: + '@pnpm/lockfile-file': + specifier: workspace:* + version: 'link:' + '@types/js-yaml': + specifier: ^4.0.5 + version: 4.0.5 + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + '@types/write-file-atomic': + specifier: ^3.0.3 + version: 3.0.3 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + yaml-tag: + specifier: 1.1.0 + version: 1.1.0 + + lockfile/lockfile-to-pnp: + dependencies: + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../lockfile-file + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../lockfile-utils + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@yarnpkg/pnp': + specifier: ^2.3.2 + version: 2.3.2 + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/lockfile-to-pnp': + specifier: workspace:* + version: 'link:' + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + + lockfile/lockfile-types: + dependencies: + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + devDependencies: + '@pnpm/lockfile-types': + specifier: workspace:* + version: 'link:' + + lockfile/lockfile-utils: + dependencies: + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile-types + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + get-npm-tarball-url: + specifier: ^2.0.3 + version: 2.0.3 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/lockfile-utils': + specifier: workspace:* + version: 'link:' + '@types/js-yaml': + specifier: ^4.0.5 + version: 4.0.5 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + yaml-tag: + specifier: 1.1.0 + version: 1.1.0 + + lockfile/lockfile-walker: + dependencies: + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/lockfile-walker': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + lockfile/merge-lockfile-changes: + dependencies: + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile-types + comver-to-semver: + specifier: ^1.0.0 + version: 1.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/merge-lockfile-changes': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + + lockfile/plugin-commands-audit: + dependencies: + '@pnpm/audit': + specifier: workspace:* + version: link:../audit + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../lockfile-file + '@pnpm/network.auth-header': + specifier: workspace:* + version: link:../../network/auth-header + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@zkochan/table': + specifier: ^1.0.0 + version: 1.0.0 + chalk: + specifier: ^4.1.2 + version: 4.1.2 + mem: + specifier: ^8.1.1 + version: 8.1.1 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/plugin-commands-audit': + specifier: workspace:* + version: 'link:' + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/zkochan__table': + specifier: npm:@types/table@6.0.0 + version: /@types/table/6.0.0 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + nock: + specifier: 13.2.9 + version: 13.2.9 + strip-ansi: + specifier: ^6.0.1 + version: 6.0.1 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + lockfile/prune-lockfile: + dependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/prune-lockfile': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + yaml-tag: + specifier: 1.1.0 + version: 1.1.0 + + network/auth-header: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + nerf-dart: + specifier: 1.0.0 + version: 1.0.0 + devDependencies: + '@pnpm/network.auth-header': + specifier: workspace:* + version: 'link:' + safe-buffer: + specifier: 5.2.1 + version: 5.2.1 + + network/fetch: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../fetching-types + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/network.agent': + specifier: 0.0.3 + version: 0.0.3 + '@zkochan/retry': + specifier: ^0.2.0 + version: 0.2.0 + node-fetch: + specifier: 3.0.0-beta.9 + version: 3.0.0-beta.9 + devDependencies: + '@pnpm/fetch': + specifier: workspace:* + version: 'link:' + nock: + specifier: 13.2.9 + version: 13.2.9 + + network/fetching-types: + dependencies: + '@zkochan/retry': + specifier: ^0.2.0 + version: 0.2.0 + node-fetch: + specifier: 3.0.0-beta.9 + version: 3.0.0-beta.9 + devDependencies: + '@pnpm/fetching-types': + specifier: workspace:* + version: 'link:' + + packages/calc-dep-state: + dependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../constants + sort-keys: + specifier: ^4.2.0 + version: 4.2.0 + devDependencies: + '@pnpm/calc-dep-state': + specifier: workspace:* + version: 'link:' + packages/constants: devDependencies: '@pnpm/constants': specifier: workspace:* version: 'link:' - packages/core: + packages/core-loggers: dependencies: - '@pnpm/build-modules': + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/types': specifier: workspace:* - version: link:../build-modules - '@pnpm/calc-dep-state': - specifier: workspace:* - version: link:../calc-dep-state - '@pnpm/constants': - specifier: workspace:* - version: link:../constants + version: link:../types + devDependencies: '@pnpm/core-loggers': specifier: workspace:* - version: link:../core-loggers + version: 'link:' + + packages/crypto.base32-hash: + dependencies: + rfc4648: + specifier: ^1.5.2 + version: 1.5.2 + devDependencies: + '@pnpm/crypto.base32-hash': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + + packages/dependency-path: + dependencies: '@pnpm/crypto.base32-hash': specifier: workspace:* version: link:../crypto.base32-hash + '@pnpm/types': + specifier: workspace:* + version: link:../types + encode-registry: + specifier: ^3.0.0 + version: 3.0.0 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + dependency-path: + specifier: workspace:* + version: 'link:' + + packages/error: + dependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../constants + devDependencies: + '@pnpm/error': + specifier: workspace:* + version: 'link:' + + packages/git-utils: + dependencies: + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + devDependencies: + '@pnpm/git-utils': + specifier: workspace:* + version: 'link:' + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + packages/make-dedicated-lockfile: + dependencies: '@pnpm/error': specifier: workspace:* version: link:../error + '@pnpm/exec': + specifier: ^2.0.0 + version: 2.0.0 + '@pnpm/exportable-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/exportable-manifest + '@pnpm/find-workspace-dir': + specifier: workspace:* + version: link:../../workspace/find-workspace-dir + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/prune-lockfile': + specifier: workspace:* + version: link:../../lockfile/prune-lockfile + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/types': + specifier: workspace:* + version: link:../types + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + rename-overwrite: + specifier: ^4.0.3 + version: 4.0.3 + devDependencies: + '@pnpm/make-dedicated-lockfile': + specifier: workspace:* + version: 'link:' + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + + packages/mount-modules: + dependencies: + '@pnpm/cafs': + specifier: workspace:* + version: link:../../store/cafs + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../../lockfile/lockfile-utils + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/store-path': + specifier: workspace:* + version: link:../../store/store-path + '@pnpm/types': + specifier: workspace:* + version: link:../types + dependency-path: + specifier: workspace:* + version: link:../dependency-path + hyperdrive-schemas: + specifier: ^2.0.0 + version: 2.0.0 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + optionalDependencies: + fuse-native: + specifier: ^2.2.6 + version: 2.2.6 + devDependencies: + '@pnpm/mount-modules': + specifier: workspace:* + version: 'link:' + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + + packages/parse-wanted-dependency: + dependencies: + validate-npm-package-name: + specifier: 4.0.0 + version: 4.0.0 + devDependencies: + '@pnpm/parse-wanted-dependency': + specifier: workspace:* + version: 'link:' + '@types/validate-npm-package-name': + specifier: ^4.0.0 + version: 4.0.0 + + packages/plugin-commands-doctor: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/plugin-commands-doctor': + specifier: workspace:* + version: 'link:' + + packages/plugin-commands-init: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../error + '@pnpm/write-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/write-project-manifest + camelcase-keys: + specifier: ^6.2.2 + version: 6.2.2 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/plugin-commands-init': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + + packages/plugin-commands-patching: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../error + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/parse-wanted-dependency': + specifier: workspace:* + version: link:../parse-wanted-dependency + '@pnpm/pick-registry-for-package': + specifier: workspace:* + version: link:../../config/pick-registry-for-package + '@pnpm/plugin-commands-installation': + specifier: workspace:* + version: link:../../pkg-manager/plugin-commands-installation + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/store-connection-manager': + specifier: workspace:* + version: link:../../store/store-connection-manager + escape-string-regexp: + specifier: ^4.0.0 + version: 4.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + safe-execa: + specifier: ^0.1.2 + version: 0.1.2 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + devDependencies: + '@pnpm/plugin-commands-patching': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + + packages/plugin-commands-setup: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/os.env.path-extender': + specifier: ^0.2.7 + version: 0.2.7 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../error + '@pnpm/plugin-commands-setup': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + + packages/render-peer-issues: + dependencies: + '@pnpm/types': + specifier: workspace:* + version: link:../types + archy: + specifier: ^1.0.0 + version: 1.0.0 + chalk: + specifier: ^4.1.2 + version: 4.1.2 + cli-columns: + specifier: ^4.0.0 + version: 4.0.0 + devDependencies: + '@pnpm/render-peer-issues': + specifier: workspace:* + version: 'link:' + '@types/archy': + specifier: 0.0.32 + version: 0.0.32 + strip-ansi: + specifier: ^6.0.1 + version: 6.0.1 + + packages/types: + devDependencies: + '@pnpm/types': + specifier: workspace:* + version: 'link:' + + packages/which-version-is-pinned: + dependencies: + semver-utils: + specifier: ^1.1.4 + version: 1.1.4 + devDependencies: + '@pnpm/which-version-is-pinned': + specifier: workspace:* + version: 'link:' + + pkg-manager/client: + dependencies: + '@pnpm/default-resolver': + specifier: workspace:* + version: link:../../resolving/default-resolver + '@pnpm/directory-fetcher': + specifier: workspace:* + version: link:../../fetching/directory-fetcher + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../../network/fetching-types + '@pnpm/git-fetcher': + specifier: workspace:* + version: link:../../fetching/git-fetcher + '@pnpm/network.auth-header': + specifier: workspace:* + version: link:../../network/auth-header + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + '@pnpm/tarball-fetcher': + specifier: workspace:* + version: link:../../fetching/tarball-fetcher + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/client': + specifier: workspace:* + version: 'link:' + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../../fetching/fetcher-base + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + + pkg-manager/core: + dependencies: + '@pnpm/build-modules': + specifier: workspace:* + version: link:../../exec/build-modules + '@pnpm/calc-dep-state': + specifier: workspace:* + version: link:../../packages/calc-dep-state + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/crypto.base32-hash': + specifier: workspace:* + version: link:../../packages/crypto.base32-hash + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error '@pnpm/filter-lockfile': specifier: workspace:* - version: link:../filter-lockfile + version: link:../../lockfile/filter-lockfile '@pnpm/get-context': specifier: workspace:* version: link:../get-context @@ -606,34 +2287,34 @@ importers: version: link:../hoist '@pnpm/hooks.read-package-hook': specifier: workspace:* - version: link:../hooks.read-package-hook + version: link:../../hooks/read-package-hook '@pnpm/lifecycle': specifier: workspace:* - version: link:../lifecycle + version: link:../../exec/lifecycle '@pnpm/link-bins': specifier: workspace:* version: link:../link-bins '@pnpm/lockfile-file': specifier: workspace:* - version: link:../lockfile-file + version: link:../../lockfile/lockfile-file '@pnpm/lockfile-to-pnp': specifier: workspace:* - version: link:../lockfile-to-pnp + version: link:../../lockfile/lockfile-to-pnp '@pnpm/lockfile-utils': specifier: workspace:* - version: link:../lockfile-utils + version: link:../../lockfile/lockfile-utils '@pnpm/lockfile-walker': specifier: workspace:* - version: link:../lockfile-walker + version: link:../../lockfile/lockfile-walker '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/manifest-utils': specifier: workspace:* - version: link:../manifest-utils + version: link:../../pkg-manifest/manifest-utils '@pnpm/matcher': specifier: workspace:* - version: link:../matcher + version: link:../../config/matcher '@pnpm/modules-cleaner': specifier: workspace:* version: link:../modules-cleaner @@ -642,7 +2323,7 @@ importers: version: link:../modules-yaml '@pnpm/normalize-registries': specifier: workspace:* - version: link:../normalize-registries + version: link:../../config/normalize-registries '@pnpm/npm-package-arg': specifier: ^1.0.0 version: 1.0.0 @@ -651,19 +2332,19 @@ importers: version: link:../package-requester '@pnpm/parse-wanted-dependency': specifier: workspace:* - version: link:../parse-wanted-dependency + version: link:../../packages/parse-wanted-dependency '@pnpm/prune-lockfile': specifier: workspace:* - version: link:../prune-lockfile + version: link:../../lockfile/prune-lockfile '@pnpm/read-modules-dir': specifier: workspace:* - version: link:../read-modules-dir + version: link:../../fs/read-modules-dir '@pnpm/read-package-json': specifier: workspace:* - version: link:../read-package-json + version: link:../../pkg-manifest/read-package-json '@pnpm/read-project-manifest': specifier: workspace:* - version: link:../read-project-manifest + version: link:../../pkg-manifest/read-project-manifest '@pnpm/remove-bins': specifier: workspace:* version: link:../remove-bins @@ -672,25 +2353,25 @@ importers: version: link:../resolve-dependencies '@pnpm/resolver-base': specifier: workspace:* - version: link:../resolver-base + version: link:../../resolving/resolver-base '@pnpm/store-controller-types': specifier: workspace:* - version: link:../store-controller-types + version: link:../../store/store-controller-types '@pnpm/symlink-dependency': specifier: workspace:* - version: link:../symlink-dependency + version: link:../../fs/symlink-dependency '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@pnpm/which-version-is-pinned': specifier: workspace:* - version: link:../which-version-is-pinned + version: link:../../packages/which-version-is-pinned '@zkochan/rimraf': specifier: ^2.1.2 version: 2.1.2 dependency-path: specifier: workspace:* - version: link:../dependency-path + version: link:../../packages/dependency-path is-inner-link: specifier: ^4.0.0 version: 4.0.0 @@ -736,7 +2417,7 @@ importers: version: link:../../privatePackages/assert-store '@pnpm/cafs': specifier: workspace:* - version: link:../cafs + version: link:../../store/cafs '@pnpm/client': specifier: workspace:* version: link:../client @@ -745,10 +2426,10 @@ importers: version: 'link:' '@pnpm/git-utils': specifier: workspace:* - version: link:../git-utils + version: link:../../packages/git-utils '@pnpm/package-store': specifier: workspace:* - version: link:../package-store + version: link:../../store/package-store '@pnpm/prepare': specifier: workspace:* version: link:../../privatePackages/prepare @@ -757,7 +2438,7 @@ importers: version: 3.1.0_typanion@3.12.1 '@pnpm/store-path': specifier: workspace:* - version: link:../store-path + version: link:../../store/store-path '@pnpm/test-fixtures': specifier: workspace:* version: link:../../privatePackages/test-fixtures @@ -825,640 +2506,20 @@ importers: specifier: ^4.2.0 version: 4.2.0 - packages/core-loggers: + pkg-manager/get-context: dependencies: - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/types': + '@pnpm/constants': specifier: workspace:* - version: link:../types - devDependencies: + version: link:../../packages/constants '@pnpm/core-loggers': specifier: workspace:* - version: 'link:' - - packages/create-cafs-store: - dependencies: - '@pnpm/cafs': - specifier: workspace:* - version: link:../cafs - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/fs.indexed-pkg-importer': - specifier: workspace:* - version: link:../fs.indexed-pkg-importer - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - mem: - specifier: ^8.1.1 - version: 8.1.1 - path-temp: - specifier: ^2.0.0 - version: 2.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/cafs-types': - specifier: workspace:* - version: link:../cafs-types - '@pnpm/create-cafs-store': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/crypto.base32-hash: - dependencies: - rfc4648: - specifier: ^1.5.2 - version: 1.5.2 - devDependencies: - '@pnpm/crypto.base32-hash': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - - packages/default-reporter: - dependencies: - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers + version: link:../../packages/core-loggers '@pnpm/error': specifier: workspace:* - version: link:../error - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/render-peer-issues': - specifier: workspace:* - version: link:../render-peer-issues - '@pnpm/types': - specifier: workspace:* - version: link:../types - ansi-diff: - specifier: ^1.1.1 - version: 1.1.1 - boxen: - specifier: ^5.1.2 - version: 5.1.2 - chalk: - specifier: ^4.1.2 - version: 4.1.2 - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - pretty-bytes: - specifier: ^5.6.0 - version: 5.6.0 - pretty-ms: - specifier: ^7.0.1 - version: 7.0.1 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - right-pad: - specifier: ^1.0.1 - version: 1.0.1 - rxjs: - specifier: ^7.5.7 - version: 7.5.7 - semver: - specifier: ^7.3.8 - version: 7.3.8 - stacktracey: - specifier: ^2.1.8 - version: 2.1.8 - string-length: - specifier: ^4.0.2 - version: 4.0.2 - strip-ansi: - specifier: ^6.0.1 - version: 6.0.1 - devDependencies: - '@pnpm/default-reporter': - specifier: workspace:* - version: 'link:' - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - ghooks: - specifier: 2.0.4 - version: 2.0.4 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - normalize-newline: - specifier: 3.0.0 - version: 3.0.0 - - packages/default-resolver: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/git-resolver': - specifier: workspace:* - version: link:../git-resolver - '@pnpm/local-resolver': - specifier: workspace:* - version: link:../local-resolver - '@pnpm/npm-resolver': - specifier: workspace:* - version: link:../npm-resolver - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/tarball-resolver': - specifier: workspace:* - version: link:../tarball-resolver - devDependencies: - '@pnpm/default-resolver': - specifier: workspace:* - version: 'link:' - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - - packages/dependencies-hierarchy: - dependencies: + version: link:../../packages/error '@pnpm/lockfile-file': specifier: workspace:* - version: link:../lockfile-file - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/modules-yaml': - specifier: workspace:* - version: link:../modules-yaml - '@pnpm/normalize-registries': - specifier: workspace:* - version: link:../normalize-registries - '@pnpm/read-modules-dir': - specifier: workspace:* - version: link:../read-modules-dir - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - realpath-missing: - specifier: ^1.1.0 - version: 1.1.0 - resolve-link-target: - specifier: ^2.0.0 - version: 2.0.0 - devDependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - dependencies-hierarchy: - specifier: workspace:* - version: 'link:' - - packages/dependency-path: - dependencies: - '@pnpm/crypto.base32-hash': - specifier: workspace:* - version: link:../crypto.base32-hash - '@pnpm/types': - specifier: workspace:* - version: link:../types - encode-registry: - specifier: ^3.0.0 - version: 3.0.0 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - dependency-path: - specifier: workspace:* - version: 'link:' - - packages/directory-fetcher: - dependencies: - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - npm-packlist: - specifier: ^5.1.3 - version: 5.1.3 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/directory-fetcher': - specifier: workspace:* - version: 'link:' - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures - '@types/npm-packlist': - specifier: ^3.0.0 - version: 3.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - - packages/error: - dependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - devDependencies: - '@pnpm/error': - specifier: workspace:* - version: 'link:' - - packages/exe: - optionalDependencies: - '@pnpm/linux-arm64': - specifier: workspace:* - version: link:../artifacts/linux-arm64 - '@pnpm/linux-x64': - specifier: workspace:* - version: link:../artifacts/linux-x64 - '@pnpm/macos-arm64': - specifier: workspace:* - version: link:../artifacts/macos-arm64 - '@pnpm/macos-x64': - specifier: workspace:* - version: link:../artifacts/macos-x64 - '@pnpm/win-x64': - specifier: workspace:* - version: link:../artifacts/win-x64 - devDependencies: - '@pnpm/exe': - specifier: workspace:* - version: 'link:' - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - pkg: - specifier: github:vercel/pkg#5.7.0 - version: github.com/vercel/pkg/7e4fef9f0828b11c7a9655b95425f32094f2daa2_pp6fkuhwkrqq7cjcj7uqpf37e4 - - packages/exportable-manifest: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/types': - specifier: workspace:* - version: link:../types - p-map-values: - specifier: ^1.0.0 - version: 1.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/exportable-manifest': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/fetch: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/network.agent': - specifier: 0.0.3 - version: 0.0.3 - '@zkochan/retry': - specifier: ^0.2.0 - version: 0.2.0 - node-fetch: - specifier: 3.0.0-beta.9 - version: 3.0.0-beta.9 - devDependencies: - '@pnpm/fetch': - specifier: workspace:* - version: 'link:' - nock: - specifier: 13.2.9 - version: 13.2.9 - - packages/fetcher-base: - dependencies: - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - devDependencies: - '@pnpm/cafs-types': - specifier: workspace:* - version: link:../cafs-types - '@pnpm/fetcher-base': - specifier: workspace:* - version: 'link:' - - packages/fetching-types: - dependencies: - '@zkochan/retry': - specifier: ^0.2.0 - version: 0.2.0 - node-fetch: - specifier: 3.0.0-beta.9 - version: 3.0.0-beta.9 - devDependencies: - '@pnpm/fetching-types': - specifier: workspace:* - version: 'link:' - - packages/filter-lockfile: - dependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/lockfile-walker': - specifier: workspace:* - version: link:../lockfile-walker - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/package-is-installable': - specifier: workspace:* - version: link:../package-is-installable - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/filter-lockfile': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - detect-libc: - specifier: ^2.0.1 - version: 2.0.1 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - yaml-tag: - specifier: 1.1.0 - version: 1.1.0 - - packages/filter-workspace-packages: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/find-workspace-packages': - specifier: workspace:* - version: link:../find-workspace-packages - '@pnpm/matcher': - specifier: workspace:* - version: link:../matcher - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - find-up: - specifier: ^5.0.0 - version: 5.0.0 - is-subdir: - specifier: ^1.2.0 - version: 1.2.0 - micromatch: - specifier: ^4.0.5 - version: 4.0.5 - pkgs-graph: - specifier: workspace:* - version: link:../pkgs-graph - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: 'link:' - '@types/is-ci': - specifier: ^3.0.0 - version: 3.0.0 - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/micromatch': - specifier: ^4.0.2 - version: 4.0.2 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/touch': - specifier: ^3.1.2 - version: 3.1.2 - is-ci: - specifier: ^3.0.1 - version: 3.0.1 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - touch: - specifier: 3.1.0 - version: 3.1.0 - - packages/find-packages: - dependencies: - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@pnpm/util.lex-comparator': - specifier: 1.0.0 - version: 1.0.0 - fast-glob: - specifier: ^3.2.12 - version: 3.2.12 - p-filter: - specifier: ^2.1.0 - version: 2.1.0 - devDependencies: - find-packages: - specifier: workspace:* - version: 'link:' - - packages/find-workspace-dir: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - find-up: - specifier: ^5.0.0 - version: 5.0.0 - devDependencies: - '@pnpm/find-workspace-dir': - specifier: workspace:* - version: 'link:' - - packages/find-workspace-packages: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@pnpm/util.lex-comparator': - specifier: 1.0.0 - version: 1.0.0 - find-packages: - specifier: workspace:* - version: link:../find-packages - read-yaml-file: - specifier: ^2.1.0 - version: 2.1.0 - devDependencies: - '@pnpm/find-workspace-packages': - specifier: workspace:* - version: 'link:' - - packages/fs.indexed-pkg-importer: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - make-empty-dir: - specifier: ^2.0.0 - version: 2.0.0 - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - path-temp: - specifier: ^2.0.0 - version: 2.0.0 - rename-overwrite: - specifier: ^4.0.3 - version: 4.0.3 - sanitize-filename: - specifier: ^1.6.3 - version: 1.6.3 - devDependencies: - '@pnpm/fs.indexed-pkg-importer': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - - packages/get-context: - dependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file + version: link:../../lockfile/lockfile-file '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 @@ -1470,7 +2531,7 @@ importers: version: link:../read-projects-context '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@zkochan/rimraf': specifier: ^2.1.2 version: 2.1.2 @@ -1494,138 +2555,44 @@ importers: specifier: 0.28.15 version: 0.28.15 - packages/git-fetcher: - dependencies: - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/prepare-package': - specifier: workspace:* - version: link:../prepare-package - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - devDependencies: - '@pnpm/cafs': - specifier: workspace:* - version: link:../cafs - '@pnpm/create-cafs-store': - specifier: workspace:* - version: link:../create-cafs-store - '@pnpm/git-fetcher': - specifier: workspace:* - version: 'link:' - '@pnpm/types': - specifier: workspace:* - version: link:../types - p-defer: - specifier: ^3.0.0 - version: 3.0.0 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/git-resolver: - dependencies: - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - graceful-git: - specifier: ^3.1.2 - version: 3.1.2 - hosted-git-info: - specifier: npm:@zkochan/hosted-git-info@^4.0.2 - version: /@zkochan/hosted-git-info/4.0.2 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/git-resolver': - specifier: workspace:* - version: 'link:' - '@types/hosted-git-info': - specifier: ^3.0.2 - version: 3.0.2 - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - - packages/git-utils: - dependencies: - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - devDependencies: - '@pnpm/git-utils': - specifier: workspace:* - version: 'link:' - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/graceful-fs: - dependencies: - graceful-fs: - specifier: ^4.2.10 - version: 4.2.10 - devDependencies: - '@pnpm/graceful-fs': - specifier: workspace:* - version: 'link:' - '@types/graceful-fs': - specifier: ^4.1.5 - version: 4.1.5 - - packages/headless: + pkg-manager/headless: dependencies: '@pnpm/build-modules': specifier: workspace:* - version: link:../build-modules + version: link:../../exec/build-modules '@pnpm/calc-dep-state': specifier: workspace:* - version: link:../calc-dep-state + version: link:../../packages/calc-dep-state '@pnpm/constants': specifier: workspace:* - version: link:../constants + version: link:../../packages/constants '@pnpm/core-loggers': specifier: workspace:* - version: link:../core-loggers + version: link:../../packages/core-loggers '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/filter-lockfile': specifier: workspace:* - version: link:../filter-lockfile + version: link:../../lockfile/filter-lockfile '@pnpm/hoist': specifier: workspace:* version: link:../hoist '@pnpm/lifecycle': specifier: workspace:* - version: link:../lifecycle + version: link:../../exec/lifecycle '@pnpm/link-bins': specifier: workspace:* version: link:../link-bins '@pnpm/lockfile-file': specifier: workspace:* - version: link:../lockfile-file + version: link:../../lockfile/lockfile-file '@pnpm/lockfile-to-pnp': specifier: workspace:* - version: link:../lockfile-to-pnp + version: link:../../lockfile/lockfile-to-pnp '@pnpm/lockfile-utils': specifier: workspace:* - version: link:../lockfile-utils + version: link:../../lockfile/lockfile-utils '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 @@ -1637,34 +2604,34 @@ importers: version: link:../modules-yaml '@pnpm/package-is-installable': specifier: workspace:* - version: link:../package-is-installable + version: link:../../config/package-is-installable '@pnpm/package-requester': specifier: workspace:* version: link:../package-requester '@pnpm/read-package-json': specifier: workspace:* - version: link:../read-package-json + version: link:../../pkg-manifest/read-package-json '@pnpm/read-project-manifest': specifier: workspace:* - version: link:../read-project-manifest + version: link:../../pkg-manifest/read-project-manifest '@pnpm/real-hoist': specifier: workspace:* version: link:../real-hoist '@pnpm/store-controller-types': specifier: workspace:* - version: link:../store-controller-types + version: link:../../store/store-controller-types '@pnpm/symlink-dependency': specifier: workspace:* - version: link:../symlink-dependency + version: link:../../fs/symlink-dependency '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@zkochan/rimraf': specifier: ^2.1.2 version: 2.1.2 dependency-path: specifier: workspace:* - version: link:../dependency-path + version: link:../../packages/dependency-path p-limit: specifier: ^3.1.0 version: 3.1.0 @@ -1686,7 +2653,7 @@ importers: version: link:../../privatePackages/assert-project '@pnpm/cafs': specifier: workspace:* - version: link:../cafs + version: link:../../store/cafs '@pnpm/client': specifier: workspace:* version: link:../client @@ -1695,7 +2662,7 @@ importers: version: 'link:' '@pnpm/package-store': specifier: workspace:* - version: link:../package-store + version: link:../../store/package-store '@pnpm/prepare': specifier: workspace:* version: link:../../privatePackages/prepare @@ -1707,7 +2674,7 @@ importers: version: 3.1.0_typanion@3.12.1 '@pnpm/store-path': specifier: workspace:* - version: link:../store-path + version: link:../../store/store-path '@pnpm/test-fixtures': specifier: workspace:* version: link:../../privatePackages/test-fixtures @@ -1742,41 +2709,41 @@ importers: specifier: ^4.3.0 version: 4.3.0 - packages/hoist: + pkg-manager/hoist: dependencies: '@pnpm/constants': specifier: workspace:* - version: link:../constants + version: link:../../packages/constants '@pnpm/link-bins': specifier: workspace:* version: link:../link-bins '@pnpm/lockfile-types': specifier: workspace:* - version: link:../lockfile-types + version: link:../../lockfile/lockfile-types '@pnpm/lockfile-utils': specifier: workspace:* - version: link:../lockfile-utils + version: link:../../lockfile/lockfile-utils '@pnpm/lockfile-walker': specifier: workspace:* - version: link:../lockfile-walker + version: link:../../lockfile/lockfile-walker '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/matcher': specifier: workspace:* - version: link:../matcher + version: link:../../config/matcher '@pnpm/symlink-dependency': specifier: workspace:* - version: link:../symlink-dependency + version: link:../../fs/symlink-dependency '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@pnpm/util.lex-comparator': specifier: 1.0.0 version: 1.0.0 dependency-path: specifier: workspace:* - version: link:../dependency-path + version: link:../../packages/dependency-path ramda: specifier: npm:@pnpm/ramda@0.28.1 version: /@pnpm/ramda/0.28.1 @@ -1788,182 +2755,32 @@ importers: specifier: 0.28.15 version: 0.28.15 - packages/hooks.read-package-hook: - dependencies: - '@pnpm/matcher': - specifier: workspace:* - version: link:../matcher - '@pnpm/parse-overrides': - specifier: workspace:* - version: link:../parse-overrides - '@pnpm/parse-wanted-dependency': - specifier: workspace:* - version: link:../parse-wanted-dependency - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@yarnpkg/extensions': - specifier: 2.0.0-rc.9 - version: 2.0.0-rc.9_@yarnpkg+core@4.0.0-rc.27 - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/hooks.read-package-hook': - specifier: workspace:* - version: 'link:' - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - '@yarnpkg/core': - specifier: 4.0.0-rc.27 - version: 4.0.0-rc.27_typanion@3.12.1 - - packages/license-scanner: - dependencies: - '@pnpm/cafs': - specifier: workspace:* - version: link:../cafs - '@pnpm/directory-fetcher': - specifier: workspace:* - version: link:../directory-fetcher - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/lockfile-walker': - specifier: workspace:* - version: link:../lockfile-walker - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/package-is-installable': - specifier: workspace:* - version: link:../package-is-installable - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - path-absolute: - specifier: ^1.0.1 - version: 1.0.1 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/license-scanner': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/lifecycle: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/directory-fetcher': - specifier: workspace:* - version: link:../directory-fetcher - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/npm-lifecycle': - specifier: ^2.0.0-1 - version: 2.0.0-1_typanion@3.12.1 - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - run-groups: - specifier: ^3.0.1 - version: 3.0.1 - devDependencies: - '@pnpm/lifecycle': - specifier: workspace:* - version: 'link:' - '@types/rimraf': - specifier: ^3.0.2 - version: 3.0.2 - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - json-append: - specifier: 1.1.1 - version: 1.1.1 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - - packages/link-bins: + pkg-manager/link-bins: dependencies: '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/manifest-utils': specifier: workspace:* - version: link:../manifest-utils + version: link:../../pkg-manifest/manifest-utils '@pnpm/package-bins': specifier: workspace:* version: link:../package-bins '@pnpm/read-modules-dir': specifier: workspace:* - version: link:../read-modules-dir + version: link:../../fs/read-modules-dir '@pnpm/read-package-json': specifier: workspace:* - version: link:../read-package-json + version: link:../../pkg-manifest/read-package-json '@pnpm/read-project-manifest': specifier: workspace:* - version: link:../read-project-manifest + version: link:../../pkg-manifest/read-project-manifest '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@zkochan/cmd-shim': specifier: ^5.3.1 version: 5.3.1 @@ -2020,424 +2837,41 @@ importers: specifier: ^1.0.1 version: 1.0.1 - packages/list: - dependencies: - '@pnpm/matcher': - specifier: workspace:* - version: link:../matcher - '@pnpm/npm-package-arg': - specifier: ^1.0.0 - version: 1.0.0 - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/types': - specifier: workspace:* - version: link:../types - archy: - specifier: ^1.0.0 - version: 1.0.0 - chalk: - specifier: ^4.1.2 - version: 4.1.2 - cli-columns: - specifier: ^4.0.0 - version: 4.0.0 - dependencies-hierarchy: - specifier: workspace:* - version: link:../dependencies-hierarchy - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/list': - specifier: workspace:* - version: 'link:' - '@types/archy': - specifier: 0.0.32 - version: 0.0.32 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - - packages/local-resolver: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/graceful-fs': - specifier: workspace:* - version: link:../graceful-fs - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/types': - specifier: workspace:* - version: link:../types - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - ssri: - specifier: ^9.0.1 - version: 9.0.1 - devDependencies: - '@pnpm/local-resolver': - specifier: workspace:* - version: 'link:' - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - - packages/lockfile-file: - dependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/git-utils': - specifier: workspace:* - version: link:../git-utils - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/merge-lockfile-changes': - specifier: workspace:* - version: link:../merge-lockfile-changes - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@pnpm/util.lex-comparator': - specifier: 1.0.0 - version: 1.0.0 - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - comver-to-semver: - specifier: ^1.0.0 - version: 1.0.0 - dependency-path: - specifier: workspace:* - version: link:../dependency-path - js-yaml: - specifier: npm:@zkochan/js-yaml@^0.0.6 - version: /@zkochan/js-yaml/0.0.6 - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - semver: - specifier: ^7.3.8 - version: 7.3.8 - sort-keys: - specifier: ^4.2.0 - version: 4.2.0 - strip-bom: - specifier: ^4.0.0 - version: 4.0.0 - write-file-atomic: - specifier: ^4.0.2 - version: 4.0.2 - devDependencies: - '@pnpm/lockfile-file': - specifier: workspace:* - version: 'link:' - '@types/js-yaml': - specifier: ^4.0.5 - version: 4.0.5 - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - '@types/write-file-atomic': - specifier: ^3.0.3 - version: 3.0.3 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - yaml-tag: - specifier: 1.1.0 - version: 1.1.0 - - packages/lockfile-to-pnp: - dependencies: - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@yarnpkg/pnp': - specifier: ^2.3.2 - version: 2.3.2 - dependency-path: - specifier: workspace:* - version: link:../dependency-path - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/lockfile-to-pnp': - specifier: workspace:* - version: 'link:' - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - rimraf: - specifier: ^3.0.2 - version: 3.0.2 - - packages/lockfile-types: - dependencies: - '@pnpm/types': - specifier: workspace:* - version: link:../types - devDependencies: - '@pnpm/lockfile-types': - specifier: workspace:* - version: 'link:' - - packages/lockfile-utils: - dependencies: - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - get-npm-tarball-url: - specifier: ^2.0.3 - version: 2.0.3 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/lockfile-utils': - specifier: workspace:* - version: 'link:' - '@types/js-yaml': - specifier: ^4.0.5 - version: 4.0.5 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - yaml-tag: - specifier: 1.1.0 - version: 1.1.0 - - packages/lockfile-walker: - dependencies: - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/lockfile-walker': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/make-dedicated-lockfile: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/exec': - specifier: ^2.0.0 - version: 2.0.0 - '@pnpm/exportable-manifest': - specifier: workspace:* - version: link:../exportable-manifest - '@pnpm/find-workspace-dir': - specifier: workspace:* - version: link:../find-workspace-dir - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/prune-lockfile': - specifier: workspace:* - version: link:../prune-lockfile - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/types': - specifier: workspace:* - version: link:../types - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - rename-overwrite: - specifier: ^4.0.3 - version: 4.0.3 - devDependencies: - '@pnpm/make-dedicated-lockfile': - specifier: workspace:* - version: 'link:' - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/manifest-utils: + pkg-manager/modules-cleaner: dependencies: '@pnpm/core-loggers': specifier: workspace:* - version: link:../core-loggers - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/types': - specifier: workspace:* - version: link:../types - devDependencies: - '@pnpm/manifest-utils': - specifier: workspace:* - version: 'link:' - - packages/matcher: - dependencies: - escape-string-regexp: - specifier: ^4.0.0 - version: 4.0.0 - devDependencies: - '@pnpm/matcher': - specifier: workspace:* - version: 'link:' - - packages/merge-lockfile-changes: - dependencies: - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - comver-to-semver: - specifier: ^1.0.0 - version: 1.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/merge-lockfile-changes': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - - packages/modules-cleaner: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers + version: link:../../packages/core-loggers '@pnpm/filter-lockfile': specifier: workspace:* - version: link:../filter-lockfile + version: link:../../lockfile/filter-lockfile '@pnpm/lockfile-types': specifier: workspace:* - version: link:../lockfile-types + version: link:../../lockfile/lockfile-types '@pnpm/lockfile-utils': specifier: workspace:* - version: link:../lockfile-utils + version: link:../../lockfile/lockfile-utils '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/read-modules-dir': specifier: workspace:* - version: link:../read-modules-dir + version: link:../../fs/read-modules-dir '@pnpm/remove-bins': specifier: workspace:* version: link:../remove-bins '@pnpm/store-controller-types': specifier: workspace:* - version: link:../store-controller-types + version: link:../../store/store-controller-types '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@zkochan/rimraf': specifier: ^2.1.2 version: 2.1.2 dependency-path: specifier: workspace:* - version: link:../dependency-path + version: link:../../packages/dependency-path ramda: specifier: npm:@pnpm/ramda@0.28.1 version: /@pnpm/ramda/0.28.1 @@ -2449,11 +2883,11 @@ importers: specifier: 0.28.15 version: 0.28.15 - packages/modules-yaml: + pkg-manager/modules-yaml: dependencies: '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types is-windows: specifier: ^1.0.2 version: 1.0.2 @@ -2480,331 +2914,11 @@ importers: specifier: ^1.0.1 version: 1.0.1 - packages/mount-modules: - dependencies: - '@pnpm/cafs': - specifier: workspace:* - version: link:../cafs - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - hyperdrive-schemas: - specifier: ^2.0.0 - version: 2.0.0 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - optionalDependencies: - fuse-native: - specifier: ^2.2.6 - version: 2.2.6 - devDependencies: - '@pnpm/mount-modules': - specifier: workspace:* - version: 'link:' - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - rimraf: - specifier: ^3.0.2 - version: 3.0.2 - - packages/network.auth-header: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - nerf-dart: - specifier: 1.0.0 - version: 1.0.0 - devDependencies: - '@pnpm/network.auth-header': - specifier: workspace:* - version: 'link:' - safe-buffer: - specifier: 5.2.1 - version: 5.2.1 - - packages/node.fetcher: - dependencies: - '@pnpm/create-cafs-store': - specifier: workspace:* - version: link:../create-cafs-store - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/pick-fetcher': - specifier: workspace:* - version: link:../pick-fetcher - '@pnpm/tarball-fetcher': - specifier: workspace:* - version: link:../tarball-fetcher - adm-zip: - specifier: ^0.5.9 - version: 0.5.9 - detect-libc: - specifier: ^2.0.1 - version: 2.0.1 - rename-overwrite: - specifier: ^4.0.3 - version: 4.0.3 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - devDependencies: - '@pnpm/cafs-types': - specifier: workspace:* - version: link:../cafs-types - '@pnpm/node.fetcher': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@types/adm-zip': - specifier: ^0.4.34 - version: 0.4.34 - node-fetch: - specifier: 3.0.0-beta.9 - version: 3.0.0-beta.9 - - packages/node.resolver: - dependencies: - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/node.fetcher': - specifier: workspace:* - version: link:../node.fetcher - semver: - specifier: ^7.3.8 - version: 7.3.8 - version-selector-type: - specifier: ^3.0.0 - version: 3.0.0 - devDependencies: - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/node.resolver': - specifier: workspace:* - version: 'link:' - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - - packages/normalize-registries: + pkg-manager/package-bins: dependencies: '@pnpm/types': specifier: workspace:* - version: link:../types - normalize-registry-url: - specifier: 2.0.0 - version: 2.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/normalize-registries': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/npm-resolver: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/graceful-fs': - specifier: workspace:* - version: link:../graceful-fs - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/resolve-workspace-range': - specifier: workspace:* - version: link:../resolve-workspace-range - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@zkochan/retry': - specifier: ^0.2.0 - version: 0.2.0 - encode-registry: - specifier: ^3.0.0 - version: 3.0.0 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - lru-cache: - specifier: ^7.14.1 - version: 7.14.1 - normalize-path: - specifier: ^3.0.0 - version: 3.0.0 - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - p-memoize: - specifier: 4.0.1 - version: 4.0.1 - parse-npm-tarball-url: - specifier: ^3.0.0 - version: 3.0.0 - path-temp: - specifier: ^2.0.0 - version: 2.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - rename-overwrite: - specifier: ^4.0.3 - version: 4.0.3 - semver: - specifier: ^7.3.8 - version: 7.3.8 - ssri: - specifier: ^9.0.1 - version: 9.0.1 - version-selector-type: - specifier: ^3.0.0 - version: 3.0.0 - devDependencies: - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/npm-resolver': - specifier: workspace:* - version: 'link:' - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures - '@types/normalize-path': - specifier: ^3.0.0 - version: 3.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - nock: - specifier: 13.2.9 - version: 13.2.9 - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/outdated: - dependencies: - '@pnpm/client': - specifier: workspace:* - version: link:../client - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/manifest-utils': - specifier: workspace:* - version: link:../manifest-utils - '@pnpm/matcher': - specifier: workspace:* - version: link:../matcher - '@pnpm/modules-yaml': - specifier: workspace:* - version: link:../modules-yaml - '@pnpm/npm-resolver': - specifier: workspace:* - version: link:../npm-resolver - '@pnpm/pick-registry-for-package': - specifier: workspace:* - version: link:../pick-registry-for-package - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/outdated': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - npm-run-all: - specifier: ^4.1.5 - version: 4.1.5 - - packages/package-bins: - dependencies: - '@pnpm/types': - specifier: workspace:* - version: link:../types + version: link:../../packages/types fast-glob: specifier: ^3.2.12 version: 3.2.12 @@ -2819,81 +2933,47 @@ importers: specifier: ^14.18.33 version: 14.18.33 - packages/package-is-installable: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/types': - specifier: workspace:* - version: link:../types - detect-libc: - specifier: ^2.0.1 - version: 2.0.1 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - mem: - specifier: ^8.1.1 - version: 8.1.1 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/package-is-installable': - specifier: workspace:* - version: 'link:' - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - - packages/package-requester: + pkg-manager/package-requester: dependencies: '@pnpm/cafs': specifier: workspace:* - version: link:../cafs + version: link:../../store/cafs '@pnpm/core-loggers': specifier: workspace:* - version: link:../core-loggers + version: link:../../packages/core-loggers '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/fetcher-base': specifier: workspace:* - version: link:../fetcher-base + version: link:../../fetching/fetcher-base '@pnpm/graceful-fs': specifier: workspace:* - version: link:../graceful-fs + version: link:../../fs/graceful-fs '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/package-is-installable': specifier: workspace:* - version: link:../package-is-installable + version: link:../../config/package-is-installable '@pnpm/pick-fetcher': specifier: workspace:* - version: link:../pick-fetcher + version: link:../../fetching/pick-fetcher '@pnpm/read-package-json': specifier: workspace:* - version: link:../read-package-json + version: link:../../pkg-manifest/read-package-json '@pnpm/resolver-base': specifier: workspace:* - version: link:../resolver-base + version: link:../../resolving/resolver-base '@pnpm/store-controller-types': specifier: workspace:* - version: link:../store-controller-types + version: link:../../store/store-controller-types '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types dependency-path: specifier: workspace:* - version: link:../dependency-path + version: link:../../packages/dependency-path load-json-file: specifier: ^6.2.0 version: 6.2.0 @@ -2933,13 +3013,13 @@ importers: devDependencies: '@pnpm/cafs-types': specifier: workspace:* - version: link:../cafs-types + version: link:../../store/cafs-types '@pnpm/client': specifier: workspace:* version: link:../client '@pnpm/create-cafs-store': specifier: workspace:* - version: link:../create-cafs-store + version: link:../../store/create-cafs-store '@pnpm/package-requester': specifier: workspace:* version: 'link:' @@ -2974,487 +3054,86 @@ importers: specifier: ^1.0.1 version: 1.0.1 - packages/package-store: - dependencies: - '@pnpm/cafs': - specifier: workspace:* - version: link:../cafs - '@pnpm/create-cafs-store': - specifier: workspace:* - version: link:../create-cafs-store - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/package-requester': - specifier: workspace:* - version: link:../package-requester - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - ssri: - specifier: ^9.0.1 - version: 9.0.1 - write-json-file: - specifier: ^4.3.0 - version: 4.3.0 - devDependencies: - '@pnpm/client': - specifier: workspace:* - version: link:../client - '@pnpm/package-store': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/parse-cli-args: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/find-workspace-dir': - specifier: workspace:* - version: link:../find-workspace-dir - '@pnpm/nopt': - specifier: ^0.2.1 - version: 0.2.1 - didyoumean2: - specifier: ^5.0.0 - version: 5.0.0 - devDependencies: - '@pnpm/parse-cli-args': - specifier: workspace:* - version: 'link:' - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/parse-overrides: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/parse-wanted-dependency': - specifier: workspace:* - version: link:../parse-wanted-dependency - devDependencies: - '@pnpm/parse-overrides': - specifier: workspace:* - version: 'link:' - - packages/parse-wanted-dependency: - dependencies: - validate-npm-package-name: - specifier: 4.0.0 - version: 4.0.0 - devDependencies: - '@pnpm/parse-wanted-dependency': - specifier: workspace:* - version: 'link:' - '@types/validate-npm-package-name': - specifier: ^4.0.0 - version: 4.0.0 - - packages/pick-fetcher: - devDependencies: - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/pick-fetcher': - specifier: workspace:* - version: 'link:' - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - - packages/pick-registry-for-package: - dependencies: - '@pnpm/types': - specifier: workspace:* - version: link:../types - devDependencies: - '@pnpm/pick-registry-for-package': - specifier: workspace:* - version: 'link:' - - packages/pkgs-graph: - dependencies: - '@pnpm/npm-package-arg': - specifier: ^1.0.0 - version: 1.0.0 - '@pnpm/resolve-workspace-range': - specifier: workspace:* - version: link:../resolve-workspace-range - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - better-path-resolve: - specifier: 1.0.0 - version: 1.0.0 - pkgs-graph: - specifier: workspace:* - version: 'link:' - - packages/plugin-commands-audit: - dependencies: - '@pnpm/audit': - specifier: workspace:* - version: link:../audit - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/network.auth-header': - specifier: workspace:* - version: link:../network.auth-header - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@zkochan/table': - specifier: ^1.0.0 - version: 1.0.0 - chalk: - specifier: ^4.1.2 - version: 4.1.2 - mem: - specifier: ^8.1.1 - version: 8.1.1 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/plugin-commands-audit': - specifier: workspace:* - version: 'link:' - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/zkochan__table': - specifier: npm:@types/table@6.0.0 - version: /@types/table/6.0.0 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - nock: - specifier: 13.2.9 - version: 13.2.9 - strip-ansi: - specifier: ^6.0.1 - version: 6.0.1 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/plugin-commands-deploy: + pkg-manager/plugin-commands-installation: dependencies: '@pnpm/cli-utils': specifier: workspace:* - version: link:../cli-utils - '@pnpm/directory-fetcher': - specifier: workspace:* - version: link:../directory-fetcher - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/fs.indexed-pkg-importer': - specifier: workspace:* - version: link:../fs.indexed-pkg-importer - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/plugin-commands-installation': - specifier: workspace:* - version: link:../plugin-commands-installation - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/assert-project': - specifier: workspace:* - version: link:../../privatePackages/assert-project - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/plugin-commands-deploy': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - - packages/plugin-commands-doctor: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/plugin-commands-doctor': - specifier: workspace:* - version: 'link:' - - packages/plugin-commands-env: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/node.fetcher': - specifier: workspace:* - version: link:../node.fetcher - '@pnpm/node.resolver': - specifier: workspace:* - version: link:../node.resolver - '@pnpm/remove-bins': - specifier: workspace:* - version: link:../remove-bins - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@zkochan/cmd-shim': - specifier: ^5.3.1 - version: 5.3.1 - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - semver: - specifier: ^7.3.8 - version: 7.3.8 - write-json-file: - specifier: ^4.3.0 - version: 4.3.0 - devDependencies: - '@pnpm/plugin-commands-env': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@types/adm-zip': - specifier: ^0.4.34 - version: 0.4.34 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - adm-zip: - specifier: ^0.5.9 - version: 0.5.9 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - nock: - specifier: 13.2.9 - version: 13.2.9 - node-fetch: - specifier: 3.0.0-beta.9 - version: 3.0.0-beta.9 - path-name: - specifier: ^1.0.0 - version: 1.0.0 - - packages/plugin-commands-init: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/write-project-manifest': - specifier: workspace:* - version: link:../write-project-manifest - camelcase-keys: - specifier: ^6.2.2 - version: 6.2.2 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/plugin-commands-init': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - - packages/plugin-commands-installation: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils + version: link:../../cli/cli-utils '@pnpm/colorize-semver-diff': specifier: ^1.0.1 version: 1.0.1 '@pnpm/command': specifier: workspace:* - version: link:../command + version: link:../../cli/command '@pnpm/common-cli-options-help': specifier: workspace:* - version: link:../common-cli-options-help + version: link:../../cli/common-cli-options-help '@pnpm/config': specifier: workspace:* - version: link:../config + version: link:../../config/config '@pnpm/constants': specifier: workspace:* - version: link:../constants + version: link:../../packages/constants '@pnpm/core': specifier: workspace:* version: link:../core '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/filter-workspace-packages': specifier: workspace:* - version: link:../filter-workspace-packages + version: link:../../workspace/filter-workspace-packages '@pnpm/find-workspace-dir': specifier: workspace:* - version: link:../find-workspace-dir + version: link:../../workspace/find-workspace-dir '@pnpm/find-workspace-packages': specifier: workspace:* - version: link:../find-workspace-packages + version: link:../../workspace/find-workspace-packages '@pnpm/graceful-fs': specifier: workspace:* - version: link:../graceful-fs + version: link:../../fs/graceful-fs '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/manifest-utils': specifier: workspace:* - version: link:../manifest-utils + version: link:../../pkg-manifest/manifest-utils '@pnpm/matcher': specifier: workspace:* - version: link:../matcher + version: link:../../config/matcher '@pnpm/outdated': specifier: workspace:* - version: link:../outdated + version: link:../../reviewing/outdated '@pnpm/package-store': specifier: workspace:* - version: link:../package-store + version: link:../../store/package-store '@pnpm/parse-wanted-dependency': specifier: workspace:* - version: link:../parse-wanted-dependency + version: link:../../packages/parse-wanted-dependency '@pnpm/plugin-commands-rebuild': specifier: workspace:* - version: link:../plugin-commands-rebuild + version: link:../../exec/plugin-commands-rebuild '@pnpm/pnpmfile': specifier: workspace:* - version: link:../pnpmfile + version: link:../../hooks/pnpmfile '@pnpm/read-project-manifest': specifier: workspace:* - version: link:../read-project-manifest + version: link:../../pkg-manifest/read-project-manifest '@pnpm/resolver-base': specifier: workspace:* - version: link:../resolver-base + version: link:../../resolving/resolver-base '@pnpm/semver-diff': specifier: ^1.1.0 version: 1.1.0 '@pnpm/sort-packages': specifier: workspace:* - version: link:../sort-packages + version: link:../../workspace/sort-packages '@pnpm/store-connection-manager': specifier: workspace:* - version: link:../store-connection-manager + version: link:../../store/store-connection-manager '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@yarnpkg/core': specifier: 4.0.0-rc.27 version: 4.0.0-rc.27_typanion@3.12.1 @@ -3518,7 +3197,7 @@ importers: version: link:../../privatePackages/assert-project '@pnpm/lockfile-types': specifier: workspace:* - version: link:../lockfile-types + version: link:../../lockfile/lockfile-types '@pnpm/modules-yaml': specifier: workspace:* version: link:../modules-yaml @@ -3583,481 +3262,11 @@ importers: specifier: ^4.2.0 version: 4.2.0 - packages/plugin-commands-licenses: + pkg-manager/read-projects-context: dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/command': - specifier: workspace:* - version: link:../command - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/license-scanner': - specifier: workspace:* - version: link:../license-scanner '@pnpm/lockfile-file': specifier: workspace:* - version: link:../lockfile-file - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@zkochan/table': - specifier: ^1.0.0 - version: 1.0.0 - chalk: - specifier: ^4.1.2 - version: 4.1.2 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/plugin-commands-installation': - specifier: workspace:* - version: link:../plugin-commands-installation - '@pnpm/plugin-commands-licenses': - specifier: workspace:* - version: 'link:' - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/wrap-ansi': - specifier: ^3.0.0 - version: 3.0.0 - '@types/zkochan__table': - specifier: npm:@types/table@6.0.0 - version: /@types/table/6.0.0 - strip-ansi: - specifier: ^6.0.1 - version: 6.0.1 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/plugin-commands-listing: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/list': - specifier: workspace:* - version: link:../list - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/types': - specifier: workspace:* - version: link:../types - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/plugin-commands-installation': - specifier: workspace:* - version: link:../plugin-commands-installation - '@pnpm/plugin-commands-listing': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - strip-ansi: - specifier: ^6.0.1 - version: 6.0.1 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - - packages/plugin-commands-outdated: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/colorize-semver-diff': - specifier: ^1.0.1 - version: 1.0.1 - '@pnpm/command': - specifier: workspace:* - version: link:../command - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/default-resolver': - specifier: workspace:* - version: link:../default-resolver - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/matcher': - specifier: workspace:* - version: link:../matcher - '@pnpm/modules-yaml': - specifier: workspace:* - version: link:../modules-yaml - '@pnpm/outdated': - specifier: workspace:* - version: link:../outdated - '@pnpm/semver-diff': - specifier: ^1.1.0 - version: 1.1.0 - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@zkochan/table': - specifier: ^1.0.0 - version: 1.0.0 - chalk: - specifier: ^4.1.2 - version: 4.1.2 - lru-cache: - specifier: ^7.14.1 - version: 7.14.1 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - strip-ansi: - specifier: ^6.0.1 - version: 6.0.1 - wrap-ansi: - specifier: ^7.0.0 - version: 7.0.0 - devDependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/plugin-commands-installation': - specifier: workspace:* - version: link:../plugin-commands-installation - '@pnpm/plugin-commands-outdated': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/wrap-ansi': - specifier: ^3.0.0 - version: 3.0.0 - '@types/zkochan__table': - specifier: npm:@types/table@6.0.0 - version: /@types/table/6.0.0 - - packages/plugin-commands-patching: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/parse-wanted-dependency': - specifier: workspace:* - version: link:../parse-wanted-dependency - '@pnpm/pick-registry-for-package': - specifier: workspace:* - version: link:../pick-registry-for-package - '@pnpm/plugin-commands-installation': - specifier: workspace:* - version: link:../plugin-commands-installation - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/store-connection-manager': - specifier: workspace:* - version: link:../store-connection-manager - escape-string-regexp: - specifier: ^4.0.0 - version: 4.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - safe-execa: - specifier: ^0.1.2 - version: 0.1.2 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - devDependencies: - '@pnpm/plugin-commands-patching': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - - packages/plugin-commands-publishing: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/client': - specifier: workspace:* - version: link:../client - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/exportable-manifest': - specifier: workspace:* - version: link:../exportable-manifest - '@pnpm/git-utils': - specifier: workspace:* - version: link:../git-utils - '@pnpm/lifecycle': - specifier: workspace:* - version: link:../lifecycle - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/package-bins': - specifier: workspace:* - version: link:../package-bins - '@pnpm/pick-registry-for-package': - specifier: workspace:* - version: link:../pick-registry-for-package - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - '@pnpm/run-npm': - specifier: workspace:* - version: link:../run-npm - '@pnpm/sort-packages': - specifier: workspace:* - version: link:../sort-packages - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - enquirer: - specifier: ^2.3.6 - version: 2.3.6 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - fast-glob: - specifier: ^3.2.12 - version: 3.2.12 - npm-packlist: - specifier: ^5.1.3 - version: 5.1.3 - p-filter: - specifier: ^2.1.0 - version: 2.1.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - realpath-missing: - specifier: ^1.1.0 - version: 1.1.0 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - tar-stream: - specifier: ^2.2.0 - version: 2.2.0 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - write-json-file: - specifier: ^4.3.0 - version: 4.3.0 - devDependencies: - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/plugin-commands-publishing': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@types/cross-spawn': - specifier: ^6.0.2 - version: 6.0.2 - '@types/is-ci': - specifier: ^3.0.0 - version: 3.0.0 - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/npm-packlist': - specifier: ^3.0.0 - version: 3.0.0 - '@types/proxyquire': - specifier: ^1.3.28 - version: 1.3.28 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/sinon': - specifier: ^10.0.13 - version: 10.0.13 - '@types/tar': - specifier: ^6.1.3 - version: 6.1.3 - '@types/tar-stream': - specifier: ^2.2.2 - version: 2.2.2 - cross-spawn: - specifier: ^7.0.3 - version: 7.0.3 - is-ci: - specifier: ^3.0.1 - version: 3.0.1 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - tar: - specifier: ^6.1.12 - version: 6.1.12 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - - packages/plugin-commands-rebuild: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/find-workspace-packages': - specifier: workspace:* - version: link:../find-workspace-packages - '@pnpm/get-context': - specifier: workspace:* - version: link:../get-context - '@pnpm/graph-sequencer': - specifier: 1.0.0 - version: 1.0.0 - '@pnpm/lifecycle': - specifier: workspace:* - version: link:../lifecycle - '@pnpm/link-bins': - specifier: workspace:* - version: link:../link-bins - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/lockfile-walker': - specifier: workspace:* - version: link:../lockfile-walker + version: link:../../lockfile/lockfile-file '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 @@ -4066,841 +3275,10 @@ importers: version: link:../modules-yaml '@pnpm/normalize-registries': specifier: workspace:* - version: link:../normalize-registries - '@pnpm/npm-package-arg': - specifier: ^1.0.0 - version: 1.0.0 - '@pnpm/sort-packages': - specifier: workspace:* - version: link:../sort-packages - '@pnpm/store-connection-manager': - specifier: workspace:* - version: link:../store-connection-manager - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types + version: link:../../config/normalize-registries '@pnpm/types': specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - mem: - specifier: ^8.1.1 - version: 8.1.1 - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - run-groups: - specifier: ^3.0.1 - version: 3.0.1 - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/plugin-commands-rebuild': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - '@types/sinon': - specifier: ^10.0.13 - version: 10.0.13 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - sinon: - specifier: ^14.0.2 - version: 14.0.2 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - - packages/plugin-commands-script-runners: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/command': - specifier: workspace:* - version: link:../command - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lifecycle': - specifier: workspace:* - version: link:../lifecycle - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/package-bins': - specifier: workspace:* - version: link:../package-bins - '@pnpm/plugin-commands-installation': - specifier: workspace:* - version: link:../plugin-commands-installation - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/sort-packages': - specifier: workspace:* - version: link:../sort-packages - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - path-name: - specifier: ^1.0.0 - version: 1.0.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - realpath-missing: - specifier: ^1.1.0 - version: 1.1.0 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/plugin-commands-script-runners': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - - packages/plugin-commands-server: - dependencies: - '@pnpm/cli-meta': - specifier: workspace:* - version: link:../cli-meta - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/server': - specifier: workspace:* - version: link:../server - '@pnpm/store-connection-manager': - specifier: workspace:* - version: link:../store-connection-manager - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@zkochan/diable': - specifier: ^1.0.2 - version: 1.0.2 - delay: - specifier: ^5.0.0 - version: 5.0.0 - get-port: - specifier: ^5.1.1 - version: 5.1.1 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - process-exists: - specifier: ^4.1.0 - version: 4.1.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - signal-exit: - specifier: ^3.0.7 - version: 3.0.7 - tree-kill: - specifier: ^1.2.2 - version: 1.2.2 - devDependencies: - '@pnpm/plugin-commands-server': - specifier: workspace:* - version: 'link:' - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/signal-exit': - specifier: ^3.0.1 - version: 3.0.1 - - packages/plugin-commands-setup: - dependencies: - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/os.env.path-extender': - specifier: ^0.2.7 - version: 0.2.7 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/plugin-commands-setup': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - - packages/plugin-commands-store: - dependencies: - '@pnpm/cafs': - specifier: workspace:* - version: link:../cafs - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/get-context': - specifier: workspace:* - version: link:../get-context - '@pnpm/lockfile-utils': - specifier: workspace:* - version: link:../lockfile-utils - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/normalize-registries': - specifier: workspace:* - version: link:../normalize-registries - '@pnpm/parse-wanted-dependency': - specifier: workspace:* - version: link:../parse-wanted-dependency - '@pnpm/pick-registry-for-package': - specifier: workspace:* - version: link:../pick-registry-for-package - '@pnpm/store-connection-manager': - specifier: workspace:* - version: link:../store-connection-manager - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@pnpm/types': - specifier: workspace:* - version: link:../types - archy: - specifier: ^1.0.0 - version: 1.0.0 - dependency-path: - specifier: workspace:* - version: link:../dependency-path - dint: - specifier: ^5.1.0 - version: 5.1.0 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - p-filter: - specifier: ^2.1.0 - version: 2.1.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@pnpm/assert-store': - specifier: workspace:* - version: link:../../privatePackages/assert-store - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/plugin-commands-store': - specifier: workspace:* - version: 'link:' - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@types/archy': - specifier: 0.0.32 - version: 0.0.32 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - ssri: - specifier: ^9.0.1 - version: 9.0.1 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/pnpm: - optionalDependencies: - node-gyp: - specifier: ^9.3.0 - version: 9.3.0 - devDependencies: - '@pnpm/assert-project': - specifier: workspace:* - version: link:../../privatePackages/assert-project - '@pnpm/byline': - specifier: ^1.0.0 - version: 1.0.0 - '@pnpm/cli-meta': - specifier: workspace:* - version: link:../cli-meta - '@pnpm/cli-utils': - specifier: workspace:* - version: link:../cli-utils - '@pnpm/client': - specifier: workspace:* - version: link:../client - '@pnpm/command': - specifier: workspace:* - version: link:../command - '@pnpm/common-cli-options-help': - specifier: workspace:* - version: link:../common-cli-options-help - '@pnpm/config': - specifier: workspace:* - version: link:../config - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/default-reporter': - specifier: workspace:* - version: link:../default-reporter - '@pnpm/filter-workspace-packages': - specifier: workspace:* - version: link:../filter-workspace-packages - '@pnpm/find-workspace-dir': - specifier: workspace:* - version: link:../find-workspace-dir - '@pnpm/find-workspace-packages': - specifier: workspace:* - version: link:../find-workspace-packages - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/modules-yaml': - specifier: workspace:* - version: link:../modules-yaml - '@pnpm/nopt': - specifier: ^0.2.1 - version: 0.2.1 - '@pnpm/parse-cli-args': - specifier: workspace:* - version: link:../parse-cli-args - '@pnpm/pick-registry-for-package': - specifier: workspace:* - version: link:../pick-registry-for-package - '@pnpm/plugin-commands-audit': - specifier: workspace:* - version: link:../plugin-commands-audit - '@pnpm/plugin-commands-deploy': - specifier: workspace:* - version: link:../plugin-commands-deploy - '@pnpm/plugin-commands-doctor': - specifier: workspace:* - version: link:../plugin-commands-doctor - '@pnpm/plugin-commands-env': - specifier: workspace:* - version: link:../plugin-commands-env - '@pnpm/plugin-commands-init': - specifier: workspace:* - version: link:../plugin-commands-init - '@pnpm/plugin-commands-installation': - specifier: workspace:* - version: link:../plugin-commands-installation - '@pnpm/plugin-commands-licenses': - specifier: workspace:* - version: link:../plugin-commands-licenses - '@pnpm/plugin-commands-listing': - specifier: workspace:* - version: link:../plugin-commands-listing - '@pnpm/plugin-commands-outdated': - specifier: workspace:* - version: link:../plugin-commands-outdated - '@pnpm/plugin-commands-patching': - specifier: workspace:* - version: link:../plugin-commands-patching - '@pnpm/plugin-commands-publishing': - specifier: workspace:* - version: link:../plugin-commands-publishing - '@pnpm/plugin-commands-rebuild': - specifier: workspace:* - version: link:../plugin-commands-rebuild - '@pnpm/plugin-commands-script-runners': - specifier: workspace:* - version: link:../plugin-commands-script-runners - '@pnpm/plugin-commands-server': - specifier: workspace:* - version: link:../plugin-commands-server - '@pnpm/plugin-commands-setup': - specifier: workspace:* - version: link:../plugin-commands-setup - '@pnpm/plugin-commands-store': - specifier: workspace:* - version: link:../plugin-commands-store - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@pnpm/read-project-manifest': - specifier: workspace:* - version: link:../read-project-manifest - '@pnpm/registry-mock': - specifier: 3.1.0 - version: 3.1.0_typanion@3.12.1 - '@pnpm/run-npm': - specifier: workspace:* - version: link:../run-npm - '@pnpm/tabtab': - specifier: ^0.1.2 - version: 0.1.2 - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@pnpm/write-project-manifest': - specifier: workspace:* - version: link:../write-project-manifest - '@types/cross-spawn': - specifier: ^6.0.2 - version: 6.0.2 - '@types/is-ci': - specifier: ^3.0.0 - version: 3.0.0 - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/pnpm__byline': - specifier: npm:@types/byline@^4.2.33 - version: /@types/byline/4.2.33 - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - '@types/which': - specifier: ^2.0.1 - version: 2.0.1 - '@zkochan/retry': - specifier: ^0.2.0 - version: 0.2.0 - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - chalk: - specifier: ^4.1.2 - version: 4.1.2 - cross-spawn: - specifier: ^7.0.3 - version: 7.0.3 - cross-var-no-babel: - specifier: ^1.2.0 - version: 1.2.0 - deep-require-cwd: - specifier: 1.0.0 - version: 1.0.0 - delay: - specifier: ^5.0.0 - version: 5.0.0 - dependency-path: - specifier: workspace:* - version: link:../dependency-path - dir-is-case-sensitive: - specifier: ^2.0.0 - version: 2.0.0 - esbuild: - specifier: ^0.15.14 - version: 0.15.14 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - exists-link: - specifier: 2.0.0 - version: 2.0.0 - is-ci: - specifier: ^3.0.1 - version: 3.0.1 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - loud-rejection: - specifier: ^2.2.0 - version: 2.2.0 - normalize-newline: - specifier: 3.0.0 - version: 3.0.0 - npm-run-all: - specifier: ^4.1.5 - version: 4.1.5 - p-any: - specifier: 3.0.0 - version: 3.0.0 - p-defer: - specifier: ^3.0.0 - version: 3.0.0 - path-exists: - specifier: ^4.0.0 - version: 4.0.0 - path-name: - specifier: ^1.0.0 - version: 1.0.0 - pkgs-graph: - specifier: workspace:* - version: link:../pkgs-graph - ps-list: - specifier: ^7.2.0 - version: 7.2.0 - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - read-yaml-file: - specifier: ^2.1.0 - version: 2.1.0 - render-help: - specifier: ^1.0.2 - version: 1.0.2 - semver: - specifier: ^7.3.8 - version: 7.3.8 - split-cmd: - specifier: ^1.0.1 - version: 1.0.1 - strip-ansi: - specifier: ^6.0.1 - version: 6.0.1 - symlink-dir: - specifier: ^5.0.1 - version: 5.0.1 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - tree-kill: - specifier: ^1.2.2 - version: 1.2.2 - which: - specifier: ^2.0.2 - version: 2.0.2 - write-json-file: - specifier: ^4.3.0 - version: 4.3.0 - write-pkg: - specifier: 4.0.0 - version: 4.0.0 - write-yaml-file: - specifier: ^4.2.0 - version: 4.2.0 - - packages/pnpmfile: - dependencies: - '@pnpm/core': - specifier: workspace:* - version: link:../core - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - chalk: - specifier: ^4.1.2 - version: 4.1.2 - path-absolute: - specifier: ^1.0.1 - version: 1.0.1 - devDependencies: - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/pnpmfile': - specifier: workspace:* - version: 'link:' - - packages/prepare-package: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/read-package-json': - specifier: workspace:* - version: link:../read-package-json - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - execa: - specifier: npm:safe-execa@^0.1.2 - version: /safe-execa/0.1.2 - preferred-pm: - specifier: ^3.0.3 - version: 3.0.3 - devDependencies: - '@pnpm/prepare-package': - specifier: workspace:* - version: 'link:' - - packages/prune-lockfile: - dependencies: - '@pnpm/constants': - specifier: workspace:* - version: link:../constants - '@pnpm/lockfile-types': - specifier: workspace:* - version: link:../lockfile-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - dependency-path: - specifier: workspace:* - version: link:../dependency-path - ramda: - specifier: npm:@pnpm/ramda@0.28.1 - version: /@pnpm/ramda/0.28.1 - devDependencies: - '@pnpm/prune-lockfile': - specifier: workspace:* - version: 'link:' - '@types/ramda': - specifier: 0.28.15 - version: 0.28.15 - yaml-tag: - specifier: 1.1.0 - version: 1.1.0 - - packages/read-modules-dir: - dependencies: - graceful-fs: - specifier: ^4.2.10 - version: 4.2.10 - devDependencies: - '@pnpm/read-modules-dir': - specifier: workspace:* - version: 'link:' - '@types/graceful-fs': - specifier: ^4.1.5 - version: 4.1.5 - - packages/read-package-json: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/types': - specifier: workspace:* - version: link:../types - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - normalize-package-data: - specifier: ^4.0.1 - version: 4.0.1 - devDependencies: - '@pnpm/read-package-json': - specifier: workspace:* - version: 'link:' - '@types/normalize-package-data': - specifier: ^2.4.1 - version: 2.4.1 - - packages/read-project-manifest: - dependencies: - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/graceful-fs': - specifier: workspace:* - version: link:../graceful-fs - '@pnpm/types': - specifier: workspace:* - version: link:../types - '@pnpm/write-project-manifest': - specifier: workspace:* - version: link:../write-project-manifest - detect-indent: - specifier: ^6.1.0 - version: 6.1.0 - fast-deep-equal: - specifier: ^3.1.3 - version: 3.1.3 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - json5: - specifier: ^2.2.1 - version: 2.2.1 - parse-json: - specifier: ^5.2.0 - version: 5.2.0 - read-yaml-file: - specifier: ^2.1.0 - version: 2.1.0 - sort-keys: - specifier: ^4.2.0 - version: 4.2.0 - strip-bom: - specifier: ^4.0.0 - version: 4.0.0 - devDependencies: - '@pnpm/read-project-manifest': - specifier: workspace:* - version: 'link:' - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/parse-json': - specifier: ^4.0.0 - version: 4.0.0 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/read-projects-context: - dependencies: - '@pnpm/lockfile-file': - specifier: workspace:* - version: link:../lockfile-file - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/modules-yaml': - specifier: workspace:* - version: link:../modules-yaml - '@pnpm/normalize-registries': - specifier: workspace:* - version: link:../normalize-registries - '@pnpm/types': - specifier: workspace:* - version: link:../types + version: link:../../packages/types realpath-missing: specifier: ^1.1.0 version: 1.1.0 @@ -4909,33 +3287,33 @@ importers: specifier: workspace:* version: 'link:' - packages/real-hoist: + pkg-manager/real-hoist: dependencies: '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/lockfile-utils': specifier: workspace:* - version: link:../lockfile-utils + version: link:../../lockfile/lockfile-utils '@yarnpkg/nm': specifier: 4.0.0-rc.27 version: 4.0.0-rc.27_typanion@3.12.1 dependency-path: specifier: workspace:* - version: link:../dependency-path + version: link:../../packages/dependency-path devDependencies: '@pnpm/lockfile-file': specifier: workspace:* - version: link:../lockfile-file + version: link:../../lockfile/lockfile-file '@pnpm/real-hoist': specifier: workspace:* version: 'link:' - packages/remove-bins: + pkg-manager/remove-bins: dependencies: '@pnpm/core-loggers': specifier: workspace:* - version: link:../core-loggers + version: link:../../packages/core-loggers '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 @@ -4944,10 +3322,10 @@ importers: version: link:../package-bins '@pnpm/read-package-json': specifier: workspace:* - version: link:../read-package-json + version: link:../../pkg-manifest/read-package-json '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@zkochan/rimraf': specifier: ^2.1.2 version: 2.1.2 @@ -4968,84 +3346,59 @@ importers: specifier: 0.28.15 version: 0.28.15 - packages/render-peer-issues: - dependencies: - '@pnpm/types': - specifier: workspace:* - version: link:../types - archy: - specifier: ^1.0.0 - version: 1.0.0 - chalk: - specifier: ^4.1.2 - version: 4.1.2 - cli-columns: - specifier: ^4.0.0 - version: 4.0.0 - devDependencies: - '@pnpm/render-peer-issues': - specifier: workspace:* - version: 'link:' - '@types/archy': - specifier: 0.0.32 - version: 0.0.32 - strip-ansi: - specifier: ^6.0.1 - version: 6.0.1 - - packages/resolve-dependencies: + pkg-manager/resolve-dependencies: dependencies: '@pnpm/constants': specifier: workspace:* - version: link:../constants + version: link:../../packages/constants '@pnpm/core-loggers': specifier: workspace:* - version: link:../core-loggers + version: link:../../packages/core-loggers '@pnpm/error': specifier: workspace:* - version: link:../error + version: link:../../packages/error '@pnpm/lockfile-types': specifier: workspace:* - version: link:../lockfile-types + version: link:../../lockfile/lockfile-types '@pnpm/lockfile-utils': specifier: workspace:* - version: link:../lockfile-utils + version: link:../../lockfile/lockfile-utils '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@pnpm/manifest-utils': specifier: workspace:* - version: link:../manifest-utils + version: link:../../pkg-manifest/manifest-utils '@pnpm/npm-resolver': specifier: workspace:* - version: link:../npm-resolver + version: link:../../resolving/npm-resolver '@pnpm/pick-registry-for-package': specifier: workspace:* - version: link:../pick-registry-for-package + version: link:../../config/pick-registry-for-package '@pnpm/prune-lockfile': specifier: workspace:* - version: link:../prune-lockfile + version: link:../../lockfile/prune-lockfile '@pnpm/read-package-json': specifier: workspace:* - version: link:../read-package-json + version: link:../../pkg-manifest/read-package-json '@pnpm/resolver-base': specifier: workspace:* - version: link:../resolver-base + version: link:../../resolving/resolver-base '@pnpm/store-controller-types': specifier: workspace:* - version: link:../store-controller-types + version: link:../../store/store-controller-types '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types '@pnpm/which-version-is-pinned': specifier: workspace:* - version: link:../which-version-is-pinned + version: link:../../packages/which-version-is-pinned '@yarnpkg/core': specifier: 4.0.0-rc.27 version: 4.0.0-rc.27_typanion@3.12.1 dependency-path: specifier: workspace:* - version: link:../dependency-path + version: link:../../packages/dependency-path encode-registry: specifier: ^3.0.0 version: 3.0.0 @@ -5108,341 +3461,126 @@ importers: specifier: 7.3.13 version: 7.3.13 - packages/resolve-workspace-range: + pkg-manifest/exportable-manifest: dependencies: - semver: - specifier: ^7.3.8 - version: 7.3.8 - devDependencies: - '@pnpm/resolve-workspace-range': - specifier: workspace:* - version: 'link:' - '@types/semver': - specifier: 7.3.13 - version: 7.3.13 - - packages/resolver-base: - dependencies: - '@pnpm/types': - specifier: workspace:* - version: link:../types - devDependencies: - '@pnpm/resolver-base': - specifier: workspace:* - version: 'link:' - - packages/run-npm: - dependencies: - cross-spawn: - specifier: ^7.0.3 - version: 7.0.3 - path-name: - specifier: ^1.0.0 - version: 1.0.0 - devDependencies: - '@pnpm/run-npm': - specifier: workspace:* - version: 'link:' - '@types/cross-spawn': - specifier: ^6.0.2 - version: 6.0.2 - - packages/server: - dependencies: - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/store-controller-types': - specifier: workspace:* - version: link:../store-controller-types - '@pnpm/types': - specifier: workspace:* - version: link:../types - p-limit: - specifier: ^3.1.0 - version: 3.1.0 - promise-share: - specifier: ^1.0.0 - version: 1.0.0 - uuid: - specifier: ^9.0.0 - version: 9.0.0 - devDependencies: - '@pnpm/client': - specifier: workspace:* - version: link:../client - '@pnpm/package-requester': - specifier: workspace:* - version: link:../package-requester - '@pnpm/package-store': - specifier: workspace:* - version: link:../package-store - '@pnpm/server': - specifier: workspace:* - version: 'link:' - '@types/mz': - specifier: ^2.7.4 - version: 2.7.4 - '@types/uuid': - specifier: ^8.3.4 - version: 8.3.4 - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - get-port: - specifier: ^5.1.1 - version: 5.1.1 - is-port-reachable: - specifier: 3.0.0 - version: 3.0.0 - load-json-file: - specifier: ^6.2.0 - version: 6.2.0 - node-fetch: - specifier: 3.0.0-beta.9 - version: 3.0.0-beta.9 - tempy: - specifier: ^1.0.1 - version: 1.0.1 - - packages/sort-packages: - dependencies: - '@pnpm/graph-sequencer': - specifier: 1.0.0 - version: 1.0.0 - '@pnpm/types': - specifier: workspace:* - version: link:../types - devDependencies: - '@pnpm/sort-packages': - specifier: workspace:* - version: 'link:' - - packages/store-connection-manager: - dependencies: - '@pnpm/cli-meta': - specifier: workspace:* - version: link:../cli-meta - '@pnpm/client': - specifier: workspace:* - version: link:../client - '@pnpm/config': - specifier: workspace:* - version: link:../config '@pnpm/error': specifier: workspace:* - version: link:../error - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/package-store': + version: link:../../packages/error + '@pnpm/read-project-manifest': specifier: workspace:* - version: link:../package-store - '@pnpm/server': - specifier: workspace:* - version: link:../server - '@pnpm/store-path': - specifier: workspace:* - version: link:../store-path - '@zkochan/diable': - specifier: ^1.0.2 - version: 1.0.2 - delay: - specifier: ^5.0.0 - version: 5.0.0 - dir-is-case-sensitive: - specifier: ^2.0.0 - version: 2.0.0 - devDependencies: - '@pnpm/store-connection-manager': - specifier: workspace:* - version: 'link:' - - packages/store-controller-types: - dependencies: - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base + version: link:../read-project-manifest '@pnpm/types': specifier: workspace:* - version: link:../types - devDependencies: - '@pnpm/cafs-types': - specifier: workspace:* - version: link:../cafs-types - '@pnpm/store-controller-types': - specifier: workspace:* - version: 'link:' - - packages/store-path: - dependencies: - '@zkochan/rimraf': - specifier: ^2.1.2 - version: 2.1.2 - can-link: - specifier: ^2.0.0 - version: 2.0.0 - path-absolute: - specifier: ^1.0.1 - version: 1.0.1 - path-temp: - specifier: ^2.0.0 - version: 2.0.0 - root-link-target: - specifier: ^3.1.0 - version: 3.1.0 - touch: - specifier: 3.1.0 - version: 3.1.0 - devDependencies: - '@pnpm/store-path': - specifier: workspace:* - version: 'link:' - '@types/is-windows': - specifier: ^1.0.0 - version: 1.0.0 - '@types/node': - specifier: ^14.18.33 - version: 14.18.33 - '@types/rimraf': - specifier: ^3.0.2 - version: 3.0.2 - '@types/touch': - specifier: ^3.1.2 - version: 3.1.2 - is-windows: - specifier: ^1.0.2 - version: 1.0.2 - rimraf: - specifier: ^3.0.2 - version: 3.0.2 - - packages/symlink-dependency: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/types': - specifier: workspace:* - version: link:../types - symlink-dir: - specifier: ^5.0.1 - version: 5.0.1 - devDependencies: - '@pnpm/prepare': - specifier: workspace:* - version: link:../../privatePackages/prepare - '@pnpm/symlink-dependency': - specifier: workspace:* - version: 'link:' - - packages/tarball-fetcher: - dependencies: - '@pnpm/core-loggers': - specifier: workspace:* - version: link:../core-loggers - '@pnpm/error': - specifier: workspace:* - version: link:../error - '@pnpm/fetcher-base': - specifier: workspace:* - version: link:../fetcher-base - '@pnpm/fetching-types': - specifier: workspace:* - version: link:../fetching-types - '@pnpm/graceful-fs': - specifier: workspace:* - version: link:../graceful-fs - '@pnpm/logger': - specifier: ^5.0.0 - version: 5.0.0 - '@pnpm/prepare-package': - specifier: workspace:* - version: link:../prepare-package - '@zkochan/retry': - specifier: ^0.2.0 - version: 0.2.0 + version: link:../../packages/types p-map-values: specifier: ^1.0.0 version: 1.0.0 ramda: specifier: npm:@pnpm/ramda@0.28.1 version: /@pnpm/ramda/0.28.1 - ssri: - specifier: ^9.0.1 - version: 9.0.1 devDependencies: - '@pnpm/cafs-types': - specifier: workspace:* - version: link:../cafs-types - '@pnpm/create-cafs-store': - specifier: workspace:* - version: link:../create-cafs-store - '@pnpm/fetch': - specifier: workspace:* - version: link:../fetch - '@pnpm/tarball-fetcher': + '@pnpm/exportable-manifest': specifier: workspace:* version: 'link:' - '@pnpm/test-fixtures': - specifier: workspace:* - version: link:../../privatePackages/test-fixtures '@types/ramda': specifier: 0.28.15 version: 0.28.15 - '@types/retry': - specifier: ^0.12.2 - version: 0.12.2 - '@types/ssri': - specifier: ^7.1.1 - version: 7.1.1 - nock: - specifier: 13.2.9 - version: 13.2.9 + + pkg-manifest/manifest-utils: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + devDependencies: + '@pnpm/manifest-utils': + specifier: workspace:* + version: 'link:' + + pkg-manifest/read-package-json: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + normalize-package-data: + specifier: ^4.0.1 + version: 4.0.1 + devDependencies: + '@pnpm/read-package-json': + specifier: workspace:* + version: 'link:' + '@types/normalize-package-data': + specifier: ^2.4.1 + version: 2.4.1 + + pkg-manifest/read-project-manifest: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/graceful-fs': + specifier: workspace:* + version: link:../../fs/graceful-fs + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@pnpm/write-project-manifest': + specifier: workspace:* + version: link:../write-project-manifest + detect-indent: + specifier: ^6.1.0 + version: 6.1.0 + fast-deep-equal: + specifier: ^3.1.3 + version: 3.1.3 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + json5: + specifier: ^2.2.1 + version: 2.2.1 + parse-json: + specifier: ^5.2.0 + version: 5.2.0 + read-yaml-file: + specifier: ^2.1.0 + version: 2.1.0 + sort-keys: + specifier: ^4.2.0 + version: 4.2.0 + strip-bom: + specifier: ^4.0.0 + version: 4.0.0 + devDependencies: + '@pnpm/read-project-manifest': + specifier: workspace:* + version: 'link:' + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/parse-json': + specifier: ^4.0.0 + version: 4.0.0 tempy: specifier: ^1.0.1 version: 1.0.1 - packages/tarball-resolver: - dependencies: - '@pnpm/resolver-base': - specifier: workspace:* - version: link:../resolver-base - devDependencies: - '@pnpm/tarball-resolver': - specifier: workspace:* - version: 'link:' - - packages/types: - devDependencies: - '@pnpm/types': - specifier: workspace:* - version: 'link:' - - packages/which-version-is-pinned: - dependencies: - semver-utils: - specifier: ^1.1.4 - version: 1.1.4 - devDependencies: - '@pnpm/which-version-is-pinned': - specifier: workspace:* - version: 'link:' - - packages/write-project-manifest: + pkg-manifest/write-project-manifest: dependencies: '@pnpm/types': specifier: workspace:* - version: link:../types + version: link:../../packages/types json5: specifier: ^2.2.1 version: 2.2.1 @@ -5463,6 +3601,338 @@ importers: specifier: ^1.0.1 version: 1.0.1 + pnpm: + optionalDependencies: + node-gyp: + specifier: ^9.3.0 + version: 9.3.0 + devDependencies: + '@pnpm/assert-project': + specifier: workspace:* + version: link:../privatePackages/assert-project + '@pnpm/byline': + specifier: ^1.0.0 + version: 1.0.0 + '@pnpm/cli-meta': + specifier: workspace:* + version: link:../cli/cli-meta + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../cli/cli-utils + '@pnpm/client': + specifier: workspace:* + version: link:../pkg-manager/client + '@pnpm/command': + specifier: workspace:* + version: link:../cli/command + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../config/config + '@pnpm/constants': + specifier: workspace:* + version: link:../packages/constants + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../packages/core-loggers + '@pnpm/default-reporter': + specifier: workspace:* + version: link:../cli/default-reporter + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../workspace/filter-workspace-packages + '@pnpm/find-workspace-dir': + specifier: workspace:* + version: link:../workspace/find-workspace-dir + '@pnpm/find-workspace-packages': + specifier: workspace:* + version: link:../workspace/find-workspace-packages + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../lockfile/lockfile-types + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/modules-yaml': + specifier: workspace:* + version: link:../pkg-manager/modules-yaml + '@pnpm/nopt': + specifier: ^0.2.1 + version: 0.2.1 + '@pnpm/parse-cli-args': + specifier: workspace:* + version: link:../cli/parse-cli-args + '@pnpm/pick-registry-for-package': + specifier: workspace:* + version: link:../config/pick-registry-for-package + '@pnpm/plugin-commands-audit': + specifier: workspace:* + version: link:../lockfile/plugin-commands-audit + '@pnpm/plugin-commands-deploy': + specifier: workspace:* + version: link:../releasing/plugin-commands-deploy + '@pnpm/plugin-commands-doctor': + specifier: workspace:* + version: link:../packages/plugin-commands-doctor + '@pnpm/plugin-commands-env': + specifier: workspace:* + version: link:../env/plugin-commands-env + '@pnpm/plugin-commands-init': + specifier: workspace:* + version: link:../packages/plugin-commands-init + '@pnpm/plugin-commands-installation': + specifier: workspace:* + version: link:../pkg-manager/plugin-commands-installation + '@pnpm/plugin-commands-licenses': + specifier: workspace:* + version: link:../reviewing/plugin-commands-licenses + '@pnpm/plugin-commands-listing': + specifier: workspace:* + version: link:../reviewing/plugin-commands-listing + '@pnpm/plugin-commands-outdated': + specifier: workspace:* + version: link:../reviewing/plugin-commands-outdated + '@pnpm/plugin-commands-patching': + specifier: workspace:* + version: link:../packages/plugin-commands-patching + '@pnpm/plugin-commands-publishing': + specifier: workspace:* + version: link:../releasing/plugin-commands-publishing + '@pnpm/plugin-commands-rebuild': + specifier: workspace:* + version: link:../exec/plugin-commands-rebuild + '@pnpm/plugin-commands-script-runners': + specifier: workspace:* + version: link:../exec/plugin-commands-script-runners + '@pnpm/plugin-commands-server': + specifier: workspace:* + version: link:../store/plugin-commands-server + '@pnpm/plugin-commands-setup': + specifier: workspace:* + version: link:../packages/plugin-commands-setup + '@pnpm/plugin-commands-store': + specifier: workspace:* + version: link:../store/plugin-commands-store + '@pnpm/prepare': + specifier: workspace:* + version: link:../privatePackages/prepare + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../pkg-manifest/read-package-json + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../pkg-manifest/read-project-manifest + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@pnpm/run-npm': + specifier: workspace:* + version: link:../exec/run-npm + '@pnpm/tabtab': + specifier: ^0.1.2 + version: 0.1.2 + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../privatePackages/test-fixtures + '@pnpm/types': + specifier: workspace:* + version: link:../packages/types + '@pnpm/write-project-manifest': + specifier: workspace:* + version: link:../pkg-manifest/write-project-manifest + '@types/cross-spawn': + specifier: ^6.0.2 + version: 6.0.2 + '@types/is-ci': + specifier: ^3.0.0 + version: 3.0.0 + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/pnpm__byline': + specifier: npm:@types/byline@^4.2.33 + version: /@types/byline/4.2.33 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + '@types/which': + specifier: ^2.0.1 + version: 2.0.1 + '@zkochan/retry': + specifier: ^0.2.0 + version: 0.2.0 + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + chalk: + specifier: ^4.1.2 + version: 4.1.2 + cross-spawn: + specifier: ^7.0.3 + version: 7.0.3 + cross-var-no-babel: + specifier: ^1.2.0 + version: 1.2.0 + deep-require-cwd: + specifier: 1.0.0 + version: 1.0.0 + delay: + specifier: ^5.0.0 + version: 5.0.0 + dependency-path: + specifier: workspace:* + version: link:../packages/dependency-path + dir-is-case-sensitive: + specifier: ^2.0.0 + version: 2.0.0 + esbuild: + specifier: ^0.15.14 + version: 0.15.14 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + exists-link: + specifier: 2.0.0 + version: 2.0.0 + is-ci: + specifier: ^3.0.1 + version: 3.0.1 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + loud-rejection: + specifier: ^2.2.0 + version: 2.2.0 + normalize-newline: + specifier: 3.0.0 + version: 3.0.0 + npm-run-all: + specifier: ^4.1.5 + version: 4.1.5 + p-any: + specifier: 3.0.0 + version: 3.0.0 + p-defer: + specifier: ^3.0.0 + version: 3.0.0 + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + path-name: + specifier: ^1.0.0 + version: 1.0.0 + pkgs-graph: + specifier: workspace:* + version: link:../workspace/pkgs-graph + ps-list: + specifier: ^7.2.0 + version: 7.2.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + read-yaml-file: + specifier: ^2.1.0 + version: 2.1.0 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + semver: + specifier: ^7.3.8 + version: 7.3.8 + split-cmd: + specifier: ^1.0.1 + version: 1.0.1 + strip-ansi: + specifier: ^6.0.1 + version: 6.0.1 + symlink-dir: + specifier: ^5.0.1 + version: 5.0.1 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + tree-kill: + specifier: ^1.2.2 + version: 1.2.2 + which: + specifier: ^2.0.2 + version: 2.0.2 + write-json-file: + specifier: ^4.3.0 + version: 4.3.0 + write-pkg: + specifier: 4.0.0 + version: 4.0.0 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + + pnpm/artifacts/exe: + optionalDependencies: + '@pnpm/linux-arm64': + specifier: workspace:* + version: link:../linux-arm64 + '@pnpm/linux-x64': + specifier: workspace:* + version: link:../linux-x64 + '@pnpm/macos-arm64': + specifier: workspace:* + version: link:../macos-arm64 + '@pnpm/macos-x64': + specifier: workspace:* + version: link:../macos-x64 + '@pnpm/win-x64': + specifier: workspace:* + version: link:../win-x64 + devDependencies: + '@pnpm/exe': + specifier: workspace:* + version: 'link:' + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + pkg: + specifier: github:vercel/pkg#5.7.0 + version: github.com/vercel/pkg/7e4fef9f0828b11c7a9655b95425f32094f2daa2_pp6fkuhwkrqq7cjcj7uqpf37e4 + + pnpm/artifacts/linux-arm64: + devDependencies: + '@pnpm/linux-arm64': + specifier: workspace:* + version: 'link:' + + pnpm/artifacts/linux-x64: + devDependencies: + '@pnpm/linux-x64': + specifier: workspace:* + version: 'link:' + + pnpm/artifacts/macos-arm64: + devDependencies: + '@pnpm/macos-arm64': + specifier: workspace:* + version: 'link:' + + pnpm/artifacts/macos-x64: + devDependencies: + '@pnpm/macos-x64': + specifier: workspace:* + version: 'link:' + + pnpm/artifacts/win-x64: + devDependencies: + '@pnpm/win-x64': + specifier: workspace:* + version: 'link:' + privatePackages/assert-project: dependencies: '@pnpm/assert-store': @@ -5473,10 +3943,10 @@ importers: version: link:../../packages/constants '@pnpm/lockfile-types': specifier: workspace:* - version: link:../../packages/lockfile-types + version: link:../../lockfile/lockfile-types '@pnpm/modules-yaml': specifier: workspace:* - version: link:../../packages/modules-yaml + version: link:../../pkg-manager/modules-yaml '@pnpm/registry-mock': specifier: 3.1.0 version: 3.1.0_typanion@3.12.1 @@ -5516,7 +3986,7 @@ importers: dependencies: '@pnpm/cafs': specifier: workspace:* - version: link:../../packages/cafs + version: link:../../store/cafs '@pnpm/registry-mock': specifier: 3.1.0 version: 3.1.0_typanion@3.12.1 @@ -5572,6 +4042,1398 @@ importers: specifier: ^9.0.13 version: 9.0.13 + releasing/plugin-commands-deploy: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/directory-fetcher': + specifier: workspace:* + version: link:../../fetching/directory-fetcher + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/fs.indexed-pkg-importer': + specifier: workspace:* + version: link:../../fs/indexed-pkg-importer + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/plugin-commands-installation': + specifier: workspace:* + version: link:../../pkg-manager/plugin-commands-installation + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/assert-project': + specifier: workspace:* + version: link:../../privatePackages/assert-project + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../../workspace/filter-workspace-packages + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../../lockfile/lockfile-types + '@pnpm/plugin-commands-deploy': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + + releasing/plugin-commands-publishing: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/client': + specifier: workspace:* + version: link:../../pkg-manager/client + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/exportable-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/exportable-manifest + '@pnpm/git-utils': + specifier: workspace:* + version: link:../../packages/git-utils + '@pnpm/lifecycle': + specifier: workspace:* + version: link:../../exec/lifecycle + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/package-bins': + specifier: workspace:* + version: link:../../pkg-manager/package-bins + '@pnpm/pick-registry-for-package': + specifier: workspace:* + version: link:../../config/pick-registry-for-package + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + '@pnpm/run-npm': + specifier: workspace:* + version: link:../../exec/run-npm + '@pnpm/sort-packages': + specifier: workspace:* + version: link:../../workspace/sort-packages + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + enquirer: + specifier: ^2.3.6 + version: 2.3.6 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + fast-glob: + specifier: ^3.2.12 + version: 3.2.12 + npm-packlist: + specifier: ^5.1.3 + version: 5.1.3 + p-filter: + specifier: ^2.1.0 + version: 2.1.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + realpath-missing: + specifier: ^1.1.0 + version: 1.1.0 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + tar-stream: + specifier: ^2.2.0 + version: 2.2.0 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + write-json-file: + specifier: ^4.3.0 + version: 4.3.0 + devDependencies: + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../../workspace/filter-workspace-packages + '@pnpm/plugin-commands-publishing': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@types/cross-spawn': + specifier: ^6.0.2 + version: 6.0.2 + '@types/is-ci': + specifier: ^3.0.0 + version: 3.0.0 + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/npm-packlist': + specifier: ^3.0.0 + version: 3.0.0 + '@types/proxyquire': + specifier: ^1.3.28 + version: 1.3.28 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/sinon': + specifier: ^10.0.13 + version: 10.0.13 + '@types/tar': + specifier: ^6.1.3 + version: 6.1.3 + '@types/tar-stream': + specifier: ^2.2.2 + version: 2.2.2 + cross-spawn: + specifier: ^7.0.3 + version: 7.0.3 + is-ci: + specifier: ^3.0.1 + version: 3.0.1 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + tar: + specifier: ^6.1.12 + version: 6.1.12 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + + resolving/default-resolver: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../../network/fetching-types + '@pnpm/git-resolver': + specifier: workspace:* + version: link:../git-resolver + '@pnpm/local-resolver': + specifier: workspace:* + version: link:../local-resolver + '@pnpm/npm-resolver': + specifier: workspace:* + version: link:../npm-resolver + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../resolver-base + '@pnpm/tarball-resolver': + specifier: workspace:* + version: link:../tarball-resolver + devDependencies: + '@pnpm/default-resolver': + specifier: workspace:* + version: 'link:' + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + + resolving/git-resolver: + dependencies: + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../resolver-base + graceful-git: + specifier: ^3.1.2 + version: 3.1.2 + hosted-git-info: + specifier: npm:@zkochan/hosted-git-info@^4.0.2 + version: /@zkochan/hosted-git-info/4.0.2 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/git-resolver': + specifier: workspace:* + version: 'link:' + '@types/hosted-git-info': + specifier: ^3.0.2 + version: 3.0.2 + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + + resolving/local-resolver: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/graceful-fs': + specifier: workspace:* + version: link:../../fs/graceful-fs + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../resolver-base + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + ssri: + specifier: ^9.0.1 + version: 9.0.1 + devDependencies: + '@pnpm/local-resolver': + specifier: workspace:* + version: 'link:' + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + + resolving/npm-resolver: + dependencies: + '@pnpm/core-loggers': + specifier: workspace:* + version: link:../../packages/core-loggers + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/fetching-types': + specifier: workspace:* + version: link:../../network/fetching-types + '@pnpm/graceful-fs': + specifier: workspace:* + version: link:../../fs/graceful-fs + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/resolve-workspace-range': + specifier: workspace:* + version: link:../../workspace/resolve-workspace-range + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../resolver-base + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@zkochan/retry': + specifier: ^0.2.0 + version: 0.2.0 + encode-registry: + specifier: ^3.0.0 + version: 3.0.0 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + lru-cache: + specifier: ^7.14.1 + version: 7.14.1 + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + p-memoize: + specifier: 4.0.1 + version: 4.0.1 + parse-npm-tarball-url: + specifier: ^3.0.0 + version: 3.0.0 + path-temp: + specifier: ^2.0.0 + version: 2.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + rename-overwrite: + specifier: ^4.0.3 + version: 4.0.3 + semver: + specifier: ^7.3.8 + version: 7.3.8 + ssri: + specifier: ^9.0.1 + version: 9.0.1 + version-selector-type: + specifier: ^3.0.0 + version: 3.0.0 + devDependencies: + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/npm-resolver': + specifier: workspace:* + version: 'link:' + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + nock: + specifier: 13.2.9 + version: 13.2.9 + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + resolving/resolver-base: + dependencies: + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + devDependencies: + '@pnpm/resolver-base': + specifier: workspace:* + version: 'link:' + + resolving/tarball-resolver: + dependencies: + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../resolver-base + devDependencies: + '@pnpm/tarball-resolver': + specifier: workspace:* + version: 'link:' + + reviewing/dependencies-hierarchy: + dependencies: + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../../lockfile/lockfile-utils + '@pnpm/modules-yaml': + specifier: workspace:* + version: link:../../pkg-manager/modules-yaml + '@pnpm/normalize-registries': + specifier: workspace:* + version: link:../../config/normalize-registries + '@pnpm/read-modules-dir': + specifier: workspace:* + version: link:../../fs/read-modules-dir + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + normalize-path: + specifier: ^3.0.0 + version: 3.0.0 + realpath-missing: + specifier: ^1.1.0 + version: 1.1.0 + resolve-link-target: + specifier: ^2.0.0 + version: 2.0.0 + devDependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/normalize-path': + specifier: ^3.0.0 + version: 3.0.0 + dependencies-hierarchy: + specifier: workspace:* + version: 'link:' + + reviewing/license-scanner: + dependencies: + '@pnpm/cafs': + specifier: workspace:* + version: link:../../store/cafs + '@pnpm/directory-fetcher': + specifier: workspace:* + version: link:../../fetching/directory-fetcher + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/lockfile-types': + specifier: workspace:* + version: link:../../lockfile/lockfile-types + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../../lockfile/lockfile-utils + '@pnpm/lockfile-walker': + specifier: workspace:* + version: link:../../lockfile/lockfile-walker + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/package-is-installable': + specifier: workspace:* + version: link:../../config/package-is-installable + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + path-absolute: + specifier: ^1.0.1 + version: 1.0.1 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/license-scanner': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + + reviewing/list: + dependencies: + '@pnpm/matcher': + specifier: workspace:* + version: link:../../config/matcher + '@pnpm/npm-package-arg': + specifier: ^1.0.0 + version: 1.0.0 + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/read-project-manifest': + specifier: workspace:* + version: link:../../pkg-manifest/read-project-manifest + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + archy: + specifier: ^1.0.0 + version: 1.0.0 + chalk: + specifier: ^4.1.2 + version: 4.1.2 + cli-columns: + specifier: ^4.0.0 + version: 4.0.0 + dependencies-hierarchy: + specifier: workspace:* + version: link:../dependencies-hierarchy + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/list': + specifier: workspace:* + version: 'link:' + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/archy': + specifier: 0.0.32 + version: 0.0.32 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + + reviewing/outdated: + dependencies: + '@pnpm/client': + specifier: workspace:* + version: link:../../pkg-manager/client + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../../lockfile/lockfile-utils + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/manifest-utils': + specifier: workspace:* + version: link:../../pkg-manifest/manifest-utils + '@pnpm/matcher': + specifier: workspace:* + version: link:../../config/matcher + '@pnpm/modules-yaml': + specifier: workspace:* + version: link:../../pkg-manager/modules-yaml + '@pnpm/npm-resolver': + specifier: workspace:* + version: link:../../resolving/npm-resolver + '@pnpm/pick-registry-for-package': + specifier: workspace:* + version: link:../../config/pick-registry-for-package + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/outdated': + specifier: workspace:* + version: 'link:' + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + npm-run-all: + specifier: ^4.1.5 + version: 4.1.5 + + reviewing/plugin-commands-licenses: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/command': + specifier: workspace:* + version: link:../../cli/command + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/license-scanner': + specifier: workspace:* + version: link:../license-scanner + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/store-path': + specifier: workspace:* + version: link:../../store/store-path + '@zkochan/table': + specifier: ^1.0.0 + version: 1.0.0 + chalk: + specifier: ^4.1.2 + version: 4.1.2 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../../workspace/filter-workspace-packages + '@pnpm/plugin-commands-installation': + specifier: workspace:* + version: link:../../pkg-manager/plugin-commands-installation + '@pnpm/plugin-commands-licenses': + specifier: workspace:* + version: 'link:' + '@pnpm/read-package-json': + specifier: workspace:* + version: link:../../pkg-manifest/read-package-json + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/wrap-ansi': + specifier: ^3.0.0 + version: 3.0.0 + '@types/zkochan__table': + specifier: npm:@types/table@6.0.0 + version: /@types/table/6.0.0 + strip-ansi: + specifier: ^6.0.1 + version: 6.0.1 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + reviewing/plugin-commands-listing: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/list': + specifier: workspace:* + version: link:../list + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../../workspace/filter-workspace-packages + '@pnpm/plugin-commands-installation': + specifier: workspace:* + version: link:../../pkg-manager/plugin-commands-installation + '@pnpm/plugin-commands-listing': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + strip-ansi: + specifier: ^6.0.1 + version: 6.0.1 + write-yaml-file: + specifier: ^4.2.0 + version: 4.2.0 + + reviewing/plugin-commands-outdated: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/colorize-semver-diff': + specifier: ^1.0.1 + version: 1.0.1 + '@pnpm/command': + specifier: workspace:* + version: link:../../cli/command + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/default-resolver': + specifier: workspace:* + version: link:../../resolving/default-resolver + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/matcher': + specifier: workspace:* + version: link:../../config/matcher + '@pnpm/modules-yaml': + specifier: workspace:* + version: link:../../pkg-manager/modules-yaml + '@pnpm/outdated': + specifier: workspace:* + version: link:../outdated + '@pnpm/semver-diff': + specifier: ^1.1.0 + version: 1.1.0 + '@pnpm/store-path': + specifier: workspace:* + version: link:../../store/store-path + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@zkochan/table': + specifier: ^1.0.0 + version: 1.0.0 + chalk: + specifier: ^4.1.2 + version: 4.1.2 + lru-cache: + specifier: ^7.14.1 + version: 7.14.1 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + strip-ansi: + specifier: ^6.0.1 + version: 6.0.1 + wrap-ansi: + specifier: ^7.0.0 + version: 7.0.0 + devDependencies: + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: link:../../workspace/filter-workspace-packages + '@pnpm/plugin-commands-installation': + specifier: workspace:* + version: link:../../pkg-manager/plugin-commands-installation + '@pnpm/plugin-commands-outdated': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@pnpm/test-fixtures': + specifier: workspace:* + version: link:../../privatePackages/test-fixtures + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/wrap-ansi': + specifier: ^3.0.0 + version: 3.0.0 + '@types/zkochan__table': + specifier: npm:@types/table@6.0.0 + version: /@types/table/6.0.0 + + store/cafs: + dependencies: + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../../fetching/fetcher-base + '@pnpm/graceful-fs': + specifier: workspace:* + version: link:../../fs/graceful-fs + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../store-controller-types + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + concat-stream: + specifier: ^2.0.0 + version: 2.0.0 + decompress-maybe: + specifier: ^1.0.0 + version: 1.0.0 + get-stream: + specifier: ^6.0.1 + version: 6.0.1 + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + path-temp: + specifier: ^2.0.0 + version: 2.0.0 + rename-overwrite: + specifier: ^4.0.3 + version: 4.0.3 + ssri: + specifier: ^9.0.1 + version: 9.0.1 + strip-bom: + specifier: ^4.0.0 + version: 4.0.0 + tar-stream: + specifier: ^2.2.0 + version: 2.2.0 + devDependencies: + '@pnpm/cafs': + specifier: workspace:* + version: 'link:' + '@pnpm/cafs-types': + specifier: workspace:* + version: link:../cafs-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@types/concat-stream': + specifier: ^2.0.0 + version: 2.0.0 + '@types/node': + specifier: ^14.18.33 + version: 14.18.33 + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + '@types/tar-stream': + specifier: ^2.2.2 + version: 2.2.2 + p-defer: + specifier: ^3.0.0 + version: 3.0.0 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + store/cafs-types: + devDependencies: + '@pnpm/cafs-types': + specifier: workspace:* + version: 'link:' + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + + store/create-cafs-store: + dependencies: + '@pnpm/cafs': + specifier: workspace:* + version: link:../cafs + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../../fetching/fetcher-base + '@pnpm/fs.indexed-pkg-importer': + specifier: workspace:* + version: link:../../fs/indexed-pkg-importer + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../store-controller-types + mem: + specifier: ^8.1.1 + version: 8.1.1 + path-temp: + specifier: ^2.0.0 + version: 2.0.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/cafs-types': + specifier: workspace:* + version: link:../cafs-types + '@pnpm/create-cafs-store': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + + store/package-store: + dependencies: + '@pnpm/cafs': + specifier: workspace:* + version: link:../cafs + '@pnpm/create-cafs-store': + specifier: workspace:* + version: link:../create-cafs-store + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../../fetching/fetcher-base + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/package-requester': + specifier: workspace:* + version: link:../../pkg-manager/package-requester + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../store-controller-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + ssri: + specifier: ^9.0.1 + version: 9.0.1 + write-json-file: + specifier: ^4.3.0 + version: 4.3.0 + devDependencies: + '@pnpm/client': + specifier: workspace:* + version: link:../../pkg-manager/client + '@pnpm/package-store': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + store/plugin-commands-server: + dependencies: + '@pnpm/cli-meta': + specifier: workspace:* + version: link:../../cli/cli-meta + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/common-cli-options-help': + specifier: workspace:* + version: link:../../cli/common-cli-options-help + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/server': + specifier: workspace:* + version: link:../server + '@pnpm/store-connection-manager': + specifier: workspace:* + version: link:../store-connection-manager + '@pnpm/store-path': + specifier: workspace:* + version: link:../store-path + '@zkochan/diable': + specifier: ^1.0.2 + version: 1.0.2 + delay: + specifier: ^5.0.0 + version: 5.0.0 + get-port: + specifier: ^5.1.1 + version: 5.1.1 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + process-exists: + specifier: ^4.1.0 + version: 4.1.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + signal-exit: + specifier: ^3.0.7 + version: 3.0.7 + tree-kill: + specifier: ^1.2.2 + version: 1.2.2 + devDependencies: + '@pnpm/plugin-commands-server': + specifier: workspace:* + version: 'link:' + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/signal-exit': + specifier: ^3.0.1 + version: 3.0.1 + + store/plugin-commands-store: + dependencies: + '@pnpm/cafs': + specifier: workspace:* + version: link:../cafs + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/get-context': + specifier: workspace:* + version: link:../../pkg-manager/get-context + '@pnpm/lockfile-utils': + specifier: workspace:* + version: link:../../lockfile/lockfile-utils + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/normalize-registries': + specifier: workspace:* + version: link:../../config/normalize-registries + '@pnpm/parse-wanted-dependency': + specifier: workspace:* + version: link:../../packages/parse-wanted-dependency + '@pnpm/pick-registry-for-package': + specifier: workspace:* + version: link:../../config/pick-registry-for-package + '@pnpm/store-connection-manager': + specifier: workspace:* + version: link:../store-connection-manager + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../store-controller-types + '@pnpm/store-path': + specifier: workspace:* + version: link:../store-path + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + archy: + specifier: ^1.0.0 + version: 1.0.0 + dependency-path: + specifier: workspace:* + version: link:../../packages/dependency-path + dint: + specifier: ^5.1.0 + version: 5.1.0 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + p-filter: + specifier: ^2.1.0 + version: 2.1.0 + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + render-help: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@pnpm/assert-store': + specifier: workspace:* + version: link:../../privatePackages/assert-store + '@pnpm/lockfile-file': + specifier: workspace:* + version: link:../../lockfile/lockfile-file + '@pnpm/plugin-commands-store': + specifier: workspace:* + version: 'link:' + '@pnpm/prepare': + specifier: workspace:* + version: link:../../privatePackages/prepare + '@pnpm/registry-mock': + specifier: 3.1.0 + version: 3.1.0_typanion@3.12.1 + '@types/archy': + specifier: 0.0.32 + version: 0.0.32 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/ssri': + specifier: ^7.1.1 + version: 7.1.1 + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + path-exists: + specifier: ^4.0.0 + version: 4.0.0 + ssri: + specifier: ^9.0.1 + version: 9.0.1 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + store/server: + dependencies: + '@pnpm/fetch': + specifier: workspace:* + version: link:../../network/fetch + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/store-controller-types': + specifier: workspace:* + version: link:../store-controller-types + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + p-limit: + specifier: ^3.1.0 + version: 3.1.0 + promise-share: + specifier: ^1.0.0 + version: 1.0.0 + uuid: + specifier: ^9.0.0 + version: 9.0.0 + devDependencies: + '@pnpm/client': + specifier: workspace:* + version: link:../../pkg-manager/client + '@pnpm/package-requester': + specifier: workspace:* + version: link:../../pkg-manager/package-requester + '@pnpm/package-store': + specifier: workspace:* + version: link:../package-store + '@pnpm/server': + specifier: workspace:* + version: 'link:' + '@types/mz': + specifier: ^2.7.4 + version: 2.7.4 + '@types/uuid': + specifier: ^8.3.4 + version: 8.3.4 + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + get-port: + specifier: ^5.1.1 + version: 5.1.1 + is-port-reachable: + specifier: 3.0.0 + version: 3.0.0 + load-json-file: + specifier: ^6.2.0 + version: 6.2.0 + node-fetch: + specifier: 3.0.0-beta.9 + version: 3.0.0-beta.9 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + + store/store-connection-manager: + dependencies: + '@pnpm/cli-meta': + specifier: workspace:* + version: link:../../cli/cli-meta + '@pnpm/client': + specifier: workspace:* + version: link:../../pkg-manager/client + '@pnpm/config': + specifier: workspace:* + version: link:../../config/config + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 + '@pnpm/package-store': + specifier: workspace:* + version: link:../package-store + '@pnpm/server': + specifier: workspace:* + version: link:../server + '@pnpm/store-path': + specifier: workspace:* + version: link:../store-path + '@zkochan/diable': + specifier: ^1.0.2 + version: 1.0.2 + delay: + specifier: ^5.0.0 + version: 5.0.0 + dir-is-case-sensitive: + specifier: ^2.0.0 + version: 2.0.0 + devDependencies: + '@pnpm/store-connection-manager': + specifier: workspace:* + version: 'link:' + + store/store-controller-types: + dependencies: + '@pnpm/fetcher-base': + specifier: workspace:* + version: link:../../fetching/fetcher-base + '@pnpm/resolver-base': + specifier: workspace:* + version: link:../../resolving/resolver-base + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + devDependencies: + '@pnpm/cafs-types': + specifier: workspace:* + version: link:../cafs-types + '@pnpm/store-controller-types': + specifier: workspace:* + version: 'link:' + + store/store-path: + dependencies: + '@zkochan/rimraf': + specifier: ^2.1.2 + version: 2.1.2 + can-link: + specifier: ^2.0.0 + version: 2.0.0 + path-absolute: + specifier: ^1.0.1 + version: 1.0.1 + path-temp: + specifier: ^2.0.0 + version: 2.0.0 + root-link-target: + specifier: ^3.1.0 + version: 3.1.0 + touch: + specifier: 3.1.0 + version: 3.1.0 + devDependencies: + '@pnpm/store-path': + specifier: workspace:* + version: 'link:' + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/node': + specifier: ^14.18.33 + version: 14.18.33 + '@types/rimraf': + specifier: ^3.0.2 + version: 3.0.2 + '@types/touch': + specifier: ^3.1.2 + version: 3.1.2 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 + typings: devDependencies: '@pnpm-private/typings': @@ -5663,6 +5525,153 @@ importers: specifier: workspace:* version: 'link:' + workspace/filter-workspace-packages: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + '@pnpm/find-workspace-packages': + specifier: workspace:* + version: link:../find-workspace-packages + '@pnpm/matcher': + specifier: workspace:* + version: link:../../config/matcher + execa: + specifier: npm:safe-execa@^0.1.2 + version: /safe-execa/0.1.2 + find-up: + specifier: ^5.0.0 + version: 5.0.0 + is-subdir: + specifier: ^1.2.0 + version: 1.2.0 + micromatch: + specifier: ^4.0.5 + version: 4.0.5 + pkgs-graph: + specifier: workspace:* + version: link:../pkgs-graph + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@pnpm/filter-workspace-packages': + specifier: workspace:* + version: 'link:' + '@types/is-ci': + specifier: ^3.0.0 + version: 3.0.0 + '@types/is-windows': + specifier: ^1.0.0 + version: 1.0.0 + '@types/micromatch': + specifier: ^4.0.2 + version: 4.0.2 + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + '@types/touch': + specifier: ^3.1.2 + version: 3.1.2 + is-ci: + specifier: ^3.0.1 + version: 3.0.1 + is-windows: + specifier: ^1.0.2 + version: 1.0.2 + tempy: + specifier: ^1.0.1 + version: 1.0.1 + touch: + specifier: 3.1.0 + version: 3.1.0 + + workspace/find-workspace-dir: + dependencies: + '@pnpm/error': + specifier: workspace:* + version: link:../../packages/error + find-up: + specifier: ^5.0.0 + version: 5.0.0 + devDependencies: + '@pnpm/find-workspace-dir': + specifier: workspace:* + version: 'link:' + + workspace/find-workspace-packages: + dependencies: + '@pnpm/cli-utils': + specifier: workspace:* + version: link:../../cli/cli-utils + '@pnpm/constants': + specifier: workspace:* + version: link:../../packages/constants + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + '@pnpm/util.lex-comparator': + specifier: 1.0.0 + version: 1.0.0 + find-packages: + specifier: workspace:* + version: link:../../fs/find-packages + read-yaml-file: + specifier: ^2.1.0 + version: 2.1.0 + devDependencies: + '@pnpm/find-workspace-packages': + specifier: workspace:* + version: 'link:' + + workspace/pkgs-graph: + dependencies: + '@pnpm/npm-package-arg': + specifier: ^1.0.0 + version: 1.0.0 + '@pnpm/resolve-workspace-range': + specifier: workspace:* + version: link:../resolve-workspace-range + ramda: + specifier: npm:@pnpm/ramda@0.28.1 + version: /@pnpm/ramda/0.28.1 + devDependencies: + '@types/ramda': + specifier: 0.28.15 + version: 0.28.15 + better-path-resolve: + specifier: 1.0.0 + version: 1.0.0 + pkgs-graph: + specifier: workspace:* + version: 'link:' + + workspace/resolve-workspace-range: + dependencies: + semver: + specifier: ^7.3.8 + version: 7.3.8 + devDependencies: + '@pnpm/resolve-workspace-range': + specifier: workspace:* + version: 'link:' + '@types/semver': + specifier: 7.3.13 + version: 7.3.13 + + workspace/sort-packages: + dependencies: + '@pnpm/graph-sequencer': + specifier: 1.0.0 + version: 1.0.0 + '@pnpm/types': + specifier: workspace:* + version: link:../../packages/types + devDependencies: + '@pnpm/sort-packages': + specifier: workspace:* + version: 'link:' + packages: /@ampproject/remapping/2.2.0: @@ -6130,19 +6139,11 @@ packages: - supports-color dev: true - /@babel/runtime/7.19.4: - resolution: {integrity: sha512-EXpLCrk55f+cYqmHsSR+yD/0gAIMxxA9QK9lnQWzhMCvt+YmoBN7Zx94s++Kv0+unHk39vxNO8t+CMA2WSS3wA==} - engines: {node: '>=6.9.0'} - dependencies: - regenerator-runtime: 0.13.9 - dev: false - /@babel/runtime/7.20.1: resolution: {integrity: sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.13.10 - dev: true /@babel/template/7.18.10: resolution: {integrity: sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==} @@ -7211,7 +7212,6 @@ packages: engines: {node: '>=14.6'} dependencies: rfc4648: 1.5.2 - dev: true /@pnpm/default-reporter/11.0.8_t6hceofxo263blh2tl245s3shq: resolution: {integrity: sha512-D/Pl8vPTkBT86DAvdiQdkQHZ/KbrAkg2JQOpUQWdZmi3yTMXoHi4Wyr42oaSjeRAJ7+Hj1E2tl6505+MO6eqFg==} @@ -7364,7 +7364,6 @@ packages: engines: {node: '>=14.6'} dependencies: execa: /safe-execa/0.1.2 - dev: true /@pnpm/graceful-fs/2.0.0: resolution: {integrity: sha512-ogUZCGf0/UILZt6d8PsO4gA4pXh7f0BumXeFkcCe4AQ65PXPKfAkHC0C30Lheh2EgFOpLZm3twDP1Eiww18gew==} @@ -7524,7 +7523,6 @@ packages: sort-keys: 4.2.0 strip-bom: 4.0.0 write-file-atomic: 4.0.2 - dev: true /@pnpm/lockfile-to-pnp/2.0.3_@pnpm+logger@5.0.0: resolution: {integrity: sha512-NGSOyTzGwRtnAZjkmxTd+QltEYd2s7uAkMLGU5TlrLFgiIF9fGRG8aD3zyZLGf11MuOC05Qp/KFqvj5E68RHaQ==} @@ -7547,7 +7545,6 @@ packages: engines: {node: '>=14.6'} dependencies: '@pnpm/types': 8.9.0 - dev: true /@pnpm/lockfile-utils/5.0.0: resolution: {integrity: sha512-jY5idWkuh4sXRS0PjHqSQ//ycsTYEzYPX0Uypp69NeDhw9Jdd+jY7SYrdd24QieuMlrdY9nKZEIKBbN+GSyOjg==} @@ -7604,7 +7601,6 @@ packages: comver-to-semver: 1.0.0 ramda: /@pnpm/ramda/0.28.1 semver: 7.3.8 - dev: true /@pnpm/meta-updater/0.2.2_typanion@3.12.1: resolution: {integrity: sha512-wh3LdQYM1aTl4vbuh+7Lv6amaDrQTu+iAIs0qsovIVnQfhHvRpwEdICHZTKC/xdthd4uGUmNZRvhoITzGLu1tg==} @@ -7984,7 +7980,7 @@ packages: read-yaml-file: 2.1.0 rimraf: 3.0.2 tempy: 1.0.1 - verdaccio: 5.15.4_typanion@3.12.1 + verdaccio: 5.16.3_typanion@3.12.1 write-yaml-file: 4.2.0 transitivePeerDependencies: - bufferutil @@ -8116,7 +8112,7 @@ packages: dependencies: debug: 4.3.4 enquirer: 2.3.6 - minimist: 1.2.6 + minimist: 1.2.7 untildify: 4.0.0 transitivePeerDependencies: - supports-color @@ -8125,7 +8121,6 @@ packages: /@pnpm/types/8.9.0: resolution: {integrity: sha512-3MYHYm8epnciApn6w5Fzx6sepawmsNU7l6lvIq+ER22/DPSrr83YMhU/EQWnf4lORn2YyiXFj0FJSyJzEtIGmw==} engines: {node: '>=14.6'} - dev: true /@pnpm/util.lex-comparator/1.0.0: resolution: {integrity: sha512-3aBQPHntVgk5AweBWZn+1I/fqZ9krK/w01197aYVkAJQGftb+BVWgEepxY5GChjSW12j52XX+CmfynYZ/p0DFQ==} @@ -8283,7 +8278,7 @@ packages: /@types/concat-stream/2.0.0: resolution: {integrity: sha512-t3YCerNM7NTVjLuICZo5gYAXYoDvpuuTceCcFQWcDQz26kxUR5uIWolxbIR5jRNIXpMqhOpW/b8imCR1LEmuJw==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: true /@types/cross-spawn/6.0.2: @@ -8324,7 +8319,7 @@ packages: /@types/is-ci/3.0.0: resolution: {integrity: sha512-Q0Op0hdWbYd1iahB+IFNQcWXFq4O0Q5MwQP7uN0souuQ4rPg1vEYcnIOfr1gY+M+6rc8FGoRaBO1mOOvL29sEQ==} dependencies: - ci-info: 3.5.0 + ci-info: 3.6.1 dev: true /@types/is-windows/1.0.0: @@ -8334,7 +8329,7 @@ packages: /@types/isexe/2.0.1: resolution: {integrity: sha512-leMb+b2fOo1s7NsCVGQr07/zXI/CNodvhHE3IMizhWVzoN/8+gSdyqlo/SWxL/zEoVcYdV6F8/RZHg5Hm+wrfw==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: true /@types/istanbul-lib-coverage/2.0.4: @@ -8501,7 +8496,7 @@ packages: /@types/tar-stream/2.2.2: resolution: {integrity: sha512-1AX+Yt3icFuU6kxwmPakaiGrJUwG44MpuiqPg4dSolRFk6jmvs4b3IbUol9wKDLIgU76gevn3EwE8y/DkSJCZQ==} dependencies: - '@types/node': 14.18.33 + '@types/node': 18.11.9 dev: true /@types/tar/6.1.3: @@ -8717,18 +8712,6 @@ packages: transitivePeerDependencies: - supports-color - /@verdaccio/readme/10.4.1: - resolution: {integrity: sha512-OZ6R+HF2bIU3WFFdPxgUgyglaIfZzGSqyUfM2m1TFNfDCK84qJvRIgQJ1HG/82KVOpGuz/nxVyw2ZyEZDkP1vA==} - dependencies: - dompurify: 2.3.9 - jsdom: 16.7.0 - marked: 4.0.18 - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - utf-8-validate - /@verdaccio/readme/10.4.2: resolution: {integrity: sha512-b5ABzEBee+up0apyExg9y/aGLoMbkSwnMOY2JWIsNnJf7EiXs1phJIzEEFaQGoor/yZQuPD0HqKUl40175srDQ==} dependencies: @@ -8740,18 +8723,13 @@ packages: - canvas - supports-color - utf-8-validate - dev: true /@verdaccio/streams/10.2.0: resolution: {integrity: sha512-FaIzCnDg0x0Js5kSQn1Le3YzDHl7XxrJ0QdIw5LrDUmLsH3VXNi4/NMlSHnw5RiTTMs4UbEf98V3RJRB8exqJA==} engines: {node: '>=8', npm: '>=5'} - /@verdaccio/ui-theme/6.0.0-6-next.48: - resolution: {integrity: sha512-1jls+cpfEXqXc1ZzqLGGNs6YCyG6B6QwDCezEkSvgKm+9A49FnSJ2n2dNIGcQYOszwHmd8EvwN98OEIx3Bbtrw==} - /@verdaccio/ui-theme/6.0.0-6-next.50: resolution: {integrity: sha512-hHku5x9weS0neJ5Qb+akibPoSCmlZqRtbmLqdGPdZANmcF1r6WLPu8zxPOwV5+FLofCN81JcIq8aAmvsrdWULg==} - dev: true /@yarnpkg/core/4.0.0-rc.14_typanion@3.12.1: resolution: {integrity: sha512-SWq+T56I7GiRMrMECGsvCJvQmbXi+pBexjX9sYICPj+OgTHbWDmIOh/OrSC8honE6WEE2ZzPNmwF4Y355NKgew==} @@ -8879,7 +8857,7 @@ packages: engines: {node: '>=14.15.0'} dependencies: js-yaml: 3.14.1 - tslib: 2.4.0 + tslib: 2.4.1 dev: false /@yarnpkg/parsers/3.0.0-rc.30: @@ -9092,14 +9070,6 @@ packages: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - /ajv/8.11.0: - resolution: {integrity: sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==} - dependencies: - fast-deep-equal: 3.1.3 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - uri-js: 4.4.1 - /ajv/8.11.2: resolution: {integrity: sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg==} dependencies: @@ -9107,7 +9077,6 @@ packages: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 uri-js: 4.4.1 - dev: true /all-module-paths/0.10.7: resolution: {integrity: sha512-NDEu5/flJbTf1KW8+juMKcPScMjZRrmAiq4QYnU8f085vNQMA1lZQnshibpTMYJpjvxrFWQvsFHc+umcNZbBuQ==} @@ -9211,14 +9180,9 @@ packages: picomatch: 2.3.1 dev: true - /apache-md5/1.1.7: - resolution: {integrity: sha512-JtHjzZmJxtzfTSjsCyHgPR155HBe5WGyUyHTaEkfy46qhwCFKx1Epm6nAxgUG3WfUZP1dWhGqj9Z2NOBeZ+uBw==} - engines: {node: '>=8'} - /apache-md5/1.1.8: resolution: {integrity: sha512-FCAJojipPn0bXjuEpjOOOMN8FZDkxfWWp4JGN9mifU2IhxvKyXZYqpzPHdnTSUpmPDy+tsslB6Z1g+Vg6nVbYA==} engines: {node: '>=8'} - dev: true /append-buffer/1.0.2: resolution: {integrity: sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==} @@ -9476,25 +9440,6 @@ packages: inherits: 2.0.4 readable-stream: 3.6.0 - /body-parser/1.20.0: - resolution: {integrity: sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==} - engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} - dependencies: - bytes: 3.1.2 - content-type: 1.0.4 - debug: 2.6.9 - depd: 2.0.0 - destroy: 1.2.0 - http-errors: 2.0.0 - iconv-lite: 0.4.24 - on-finished: 2.4.1 - qs: 6.10.3 - raw-body: 2.5.1 - type-is: 1.6.18 - unpipe: 1.0.0 - transitivePeerDependencies: - - supports-color - /body-parser/1.20.1: resolution: {integrity: sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -9513,7 +9458,6 @@ packages: unpipe: 1.0.0 transitivePeerDependencies: - supports-color - dev: true /bole/5.0.1: resolution: {integrity: sha512-1eK7/EWcuDYq3t7WpALEsIQGHXDMpLIxqUKG3rb1B9YVygEuLNnaVfZbcF1XxxLSEoOau8AWOONrWokMGVESiw==} @@ -9826,9 +9770,6 @@ packages: /ci-info/2.0.0: resolution: {integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==} - /ci-info/3.5.0: - resolution: {integrity: sha512-yH4RezKOGlOhxkmhbeNuC4eYZKAUsEaGtBuBzDDP1eFUKiccDWzBABxBfOx31IDwDIXMTxWuwAxUGModvkbuVw==} - /ci-info/3.6.1: resolution: {integrity: sha512-up5ggbaDqOqJ4UqLKZ2naVkyqSJQgJi5lwD6b6mM748ysrghDBX0bx/qJTUHzw7zu6Mq4gycviSF5hJnwceD8w==} engines: {node: '>=8'} @@ -10308,12 +10249,8 @@ packages: whatwg-mimetype: 2.3.0 whatwg-url: 8.7.0 - /dayjs/1.11.5: - resolution: {integrity: sha512-CAdX5Q3YW3Gclyo5Vpqkgpj8fSdLQcRuzfX6mC6Phy0nfJ0eGYOeS7m4mt2plDWLAtA4TqTakvbboHvUxfe4iA==} - /dayjs/1.11.6: resolution: {integrity: sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ==} - dev: true /debug/2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} @@ -10487,7 +10424,6 @@ packages: '@pnpm/types': 8.9.0 encode-registry: 3.0.0 semver: 7.3.8 - dev: true /destroy/1.2.0: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} @@ -10525,7 +10461,7 @@ packages: resolution: {integrity: sha512-Plha9WCF08aSGB39IsOhlk0AHecwcXtq/gMbHgylRNEv7JV3lnlt7akfdax7mnUHndEuuh57CmBaKSSXns7+YA==} engines: {node: '>=12.13'} dependencies: - '@babel/runtime': 7.19.4 + '@babel/runtime': 7.20.1 fastest-levenshtein: 1.0.16 lodash.deburr: 4.1.0 dev: false @@ -10584,12 +10520,8 @@ packages: dependencies: webidl-conversions: 5.0.0 - /dompurify/2.3.9: - resolution: {integrity: sha512-3zOnuTwup4lPV/GfGS6UzG4ub9nhSYagR/5tB3AvDEwqyy5dtyCM2dVjwGDCnrPerXifBKTYh/UWCGKK7ydhhw==} - /dompurify/2.4.0: resolution: {integrity: sha512-Be9tbQMZds4a3C6xTmz68NlMfeONA//4dOavl/1rNw50E+/QO0KVpbcU0PcaW0nsQxurXls9ZocqFxk8R2mWEA==} - dev: true /dot-prop/5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} @@ -11357,44 +11289,6 @@ packages: /express-rate-limit/5.5.1: resolution: {integrity: sha512-MTjE2eIbHv5DyfuFz4zLYWxpqVhEhkTiwFGuB74Q9CSou2WHO52nlE5y3Zlg6SIsiYUIPj6ifFxnkPz6O3sIUg==} - /express/4.18.1: - resolution: {integrity: sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q==} - engines: {node: '>= 0.10.0'} - dependencies: - accepts: 1.3.8 - array-flatten: 1.1.1 - body-parser: 1.20.0 - content-disposition: 0.5.4 - content-type: 1.0.4 - cookie: 0.5.0 - cookie-signature: 1.0.6 - debug: 2.6.9 - depd: 2.0.0 - encodeurl: 1.0.2 - escape-html: 1.0.3 - etag: 1.8.1 - finalhandler: 1.2.0 - fresh: 0.5.2 - http-errors: 2.0.0 - merge-descriptors: 1.0.1 - methods: 1.1.2 - on-finished: 2.4.1 - parseurl: 1.3.3 - path-to-regexp: 0.1.7 - proxy-addr: 2.0.7 - qs: 6.10.3 - range-parser: 1.2.1 - safe-buffer: 5.2.1 - send: 0.18.0 - serve-static: 1.15.0 - setprototypeof: 1.2.0 - statuses: 2.0.1 - type-is: 1.6.18 - utils-merge: 1.0.1 - vary: 1.1.2 - transitivePeerDependencies: - - supports-color - /express/4.18.2: resolution: {integrity: sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==} engines: {node: '>= 0.10.0'} @@ -11432,7 +11326,6 @@ packages: vary: 1.1.2 transitivePeerDependencies: - supports-color - dev: true /ext/1.7.0: resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==} @@ -12422,7 +12315,7 @@ packages: resolution: {integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==} hasBin: true dependencies: - ci-info: 3.5.0 + ci-info: 3.6.1 /is-core-module/2.10.0: resolution: {integrity: sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==} @@ -13096,7 +12989,7 @@ packages: '@jest/types': 29.1.2 '@types/node': 18.11.9 chalk: 4.1.2 - ci-info: 3.5.0 + ci-info: 3.6.1 graceful-fs: 4.2.10 picomatch: 2.3.1 dev: true @@ -13714,21 +13607,10 @@ packages: resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} engines: {node: '>=8'} - /marked/4.0.18: - resolution: {integrity: sha512-wbLDJ7Zh0sqA0Vdg6aqlbT+yPxqLblpAZh1mK2+AO2twQkPywvvqQNfEPVwSSRjZ7dZcdeVBIAgiO7MMp3Dszw==} - engines: {node: '>= 12'} - hasBin: true - - /marked/4.1.0: - resolution: {integrity: sha512-+Z6KDjSPa6/723PQYyc1axYZpYYpDnECDaU6hkaf5gqBieBkMKYReL5hteF2QizhlMbgbo8umXl/clZ67+GlsA==} - engines: {node: '>= 12'} - hasBin: true - /marked/4.2.2: resolution: {integrity: sha512-JjBTFTAvuTgANXx82a5vzK9JLSMoV6V3LBVn4Uhdso6t7vXrGx7g1Cd2r6NYSsxrYbQGFCMqBDhFHyK5q2UvcQ==} engines: {node: '>= 12'} hasBin: true - dev: true /mdast-util-from-markdown/0.8.5: resolution: {integrity: sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ==} @@ -15139,18 +15021,11 @@ packages: engines: {node: '>=0.6.0', teleport: '>=0.2.0'} dev: true - /qs/6.10.3: - resolution: {integrity: sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==} - engines: {node: '>=0.6'} - dependencies: - side-channel: 1.0.4 - /qs/6.11.0: resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==} engines: {node: '>=0.6'} dependencies: side-channel: 1.0.4 - dev: true /qs/6.5.3: resolution: {integrity: sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==} @@ -15327,11 +15202,6 @@ packages: /regenerator-runtime/0.13.10: resolution: {integrity: sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw==} - dev: true - - /regenerator-runtime/0.13.9: - resolution: {integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==} - dev: false /regexp.prototype.flags/1.4.3: resolution: {integrity: sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==} @@ -16271,7 +16141,7 @@ packages: resolution: {integrity: sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==} engines: {node: '>=10.0.0'} dependencies: - ajv: 8.11.0 + ajv: 8.11.2 lodash.truncate: 4.4.2 slice-ansi: 4.0.0 string-width: 4.2.3 @@ -16583,10 +16453,6 @@ packages: /tslib/1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - /tslib/2.4.0: - resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==} - dev: false - /tslib/2.4.1: resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==} @@ -16920,18 +16786,6 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} - /verdaccio-audit/10.2.2: - resolution: {integrity: sha512-f2uZlKD7vi0yEB0wN8WOf+eA/3SCyKD9cvK17Hh7Wm8f/bl7k1B3hHOTtUCn/yu85DGsj2pcNzrAfp2wMVgz9Q==} - engines: {node: '>=8'} - dependencies: - body-parser: 1.20.0 - express: 4.18.1 - https-proxy-agent: 5.0.1 - node-fetch: 2.6.7 - transitivePeerDependencies: - - encoding - - supports-color - /verdaccio-audit/10.2.3: resolution: {integrity: sha512-mXOT6EiB9hK5dMjRTtJlL+hu2YswXuGSw28xOAPyZLWLTASDJy6Zs++o4P/6FyQ03yB0peK2KX7gHZ7APGZk2Q==} engines: {node: '>=8'} @@ -16943,17 +16797,6 @@ packages: transitivePeerDependencies: - encoding - supports-color - dev: true - - /verdaccio-htpasswd/10.5.0: - resolution: {integrity: sha512-olBsT3uy1TT2ZqmMCJUsMHrztJzoEpa8pxxvYrDZdWnEksl6mHV10lTeLbH9BUwbEheOeKkkdsERqUOs+if0jg==} - engines: {node: '>=8'} - dependencies: - '@verdaccio/file-locking': 10.3.0 - apache-md5: 1.1.7 - bcryptjs: 2.4.3 - http-errors: 2.0.0 - unix-crypt-td-js: 1.1.4 /verdaccio-htpasswd/10.5.1: resolution: {integrity: sha512-DCUOITs+Ta4Hep429BjopYrUw9hEJsJ1mbMP0l9Glan1S2YvTPanhtm5Ahw/joljUlt3xawKz9Gmt1QJujfMew==} @@ -16964,62 +16807,6 @@ packages: bcryptjs: 2.4.3 http-errors: 2.0.0 unix-crypt-td-js: 1.1.4 - dev: true - - /verdaccio/5.15.4_typanion@3.12.1: - resolution: {integrity: sha512-yYMqpEQCv/BfYW5K/Nq57dbx68ICP1GfK7RJ0A3SlhKgl6idT8x4cJyLjH7C4k1Tln3LIQk1/X6ZtSl7xhzwOg==} - engines: {node: '>=12', npm: '>=6'} - hasBin: true - dependencies: - '@verdaccio/commons-api': 10.2.0 - '@verdaccio/local-storage': 10.3.1 - '@verdaccio/readme': 10.4.1 - '@verdaccio/streams': 10.2.0 - '@verdaccio/ui-theme': 6.0.0-6-next.48 - JSONStream: 1.3.5 - async: 3.2.4 - body-parser: 1.20.0 - clipanion: 3.2.0-rc.6_typanion@3.12.1 - compression: 1.7.4 - cookies: 0.8.0 - cors: 2.8.5 - dayjs: 1.11.5 - debug: 4.3.4 - envinfo: 7.8.1 - eslint-import-resolver-node: 0.3.6 - express: 4.18.1 - express-rate-limit: 5.5.1 - fast-safe-stringify: 2.1.1 - handlebars: 4.7.7 - http-errors: 2.0.0 - js-yaml: /@zkochan/js-yaml/0.0.6 - jsonwebtoken: 8.5.1 - kleur: 4.1.5 - lodash: 4.17.21 - lru-cache: 7.14.0 - lunr-mutable-indexes: 2.3.2 - marked: 4.1.0 - memoizee: 0.4.15 - mime: 3.0.0 - minimatch: 5.1.0 - mkdirp: 1.0.4 - mv: 2.1.1 - pino: 6.14.0 - pkginfo: 0.4.1 - prettier-bytes: 1.0.4 - pretty-ms: 7.0.1 - request: 2.88.0 - semver: 7.3.7 - validator: 13.7.0 - verdaccio-audit: 10.2.2 - verdaccio-htpasswd: 10.5.0 - transitivePeerDependencies: - - bufferutil - - canvas - - encoding - - supports-color - - typanion - - utf-8-validate /verdaccio/5.16.3_typanion@3.12.1: resolution: {integrity: sha512-2MWGcInH4wR1zSWQpsr51sAZjOzAMvtbi5IrqD4+1VCU2VB1VI5kAwte+ic8DA09thX1xaKGQgOsjMdT6p3jNQ==} @@ -17075,7 +16862,6 @@ packages: - supports-color - typanion - utf-8-validate - dev: true /verror/1.10.0: resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==} @@ -17542,6 +17328,7 @@ time: /@pnpm/config.env-replace/1.0.0: '2022-11-11T20:22:17.274Z' /@pnpm/exec/2.0.0: '2020-10-29T23:51:01.271Z' /@pnpm/graph-sequencer/1.0.0: '2022-03-20T20:48:58.797Z' + /@pnpm/lockfile-file/6.0.2: '2022-11-09T23:11:04.131Z' /@pnpm/logger/5.0.0: '2022-10-14T13:56:04.285Z' /@pnpm/meta-updater/0.2.2: '2022-11-18T12:00:42.706Z' /@pnpm/network.agent/0.0.3: '2022-06-12T19:51:53.044Z' @@ -17554,6 +17341,7 @@ time: /@pnpm/registry-mock/3.1.0: '2022-10-13T19:59:17.408Z' /@pnpm/semver-diff/1.1.0: '2021-11-16T12:40:59.941Z' /@pnpm/tabtab/0.1.2: '2021-03-05T17:31:19.932Z' + /@pnpm/types/8.9.0: '2022-11-09T23:07:02.862Z' /@pnpm/util.lex-comparator/1.0.0: '2022-11-04T01:03:46.134Z' /@types/adm-zip/0.4.34: '2021-04-04T18:01:23.318Z' /@types/archy/0.0.32: '2021-07-06T18:11:33.301Z' diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4310a8e897..bc7bed605c 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,23 @@ packages: + - cli/* + - config/* + - env/* + - exec/* + - fetching/* + - fs/* + - lockfile/* + - network/* + - hooks/* + - pnpm + - pnpm/artifacts/* + - pkg-manager/* + - pkg-manifest/* + - resolving/* + - releasing/* + - reviewing/* + - store/* + - workspace/* - packages/* - - packages/artifacts/* - privatePackages/* - typings - .meta-updater diff --git a/packages/pnpm/.gitignore b/pnpm/.gitignore similarity index 100% rename from packages/pnpm/.gitignore rename to pnpm/.gitignore diff --git a/packages/pnpm/CHANGELOG.md b/pnpm/CHANGELOG.md similarity index 100% rename from packages/pnpm/CHANGELOG.md rename to pnpm/CHANGELOG.md diff --git a/packages/pnpm/LICENSE b/pnpm/LICENSE similarity index 100% rename from packages/pnpm/LICENSE rename to pnpm/LICENSE diff --git a/packages/pnpm/README.md b/pnpm/README.md similarity index 100% rename from packages/pnpm/README.md rename to pnpm/README.md diff --git a/packages/artifacts/.gitignore b/pnpm/artifacts/.gitignore similarity index 100% rename from packages/artifacts/.gitignore rename to pnpm/artifacts/.gitignore diff --git a/packages/exe/.npmignore b/pnpm/artifacts/exe/.npmignore similarity index 100% rename from packages/exe/.npmignore rename to pnpm/artifacts/exe/.npmignore diff --git a/packages/exe/CHANGELOG.md b/pnpm/artifacts/exe/CHANGELOG.md similarity index 100% rename from packages/exe/CHANGELOG.md rename to pnpm/artifacts/exe/CHANGELOG.md diff --git a/packages/exe/NOTES.md b/pnpm/artifacts/exe/NOTES.md similarity index 100% rename from packages/exe/NOTES.md rename to pnpm/artifacts/exe/NOTES.md diff --git a/packages/exe/README.md b/pnpm/artifacts/exe/README.md similarity index 100% rename from packages/exe/README.md rename to pnpm/artifacts/exe/README.md diff --git a/packages/exe/package.json b/pnpm/artifacts/exe/package.json similarity index 100% rename from packages/exe/package.json rename to pnpm/artifacts/exe/package.json diff --git a/packages/exe/pnpm b/pnpm/artifacts/exe/pnpm similarity index 100% rename from packages/exe/pnpm rename to pnpm/artifacts/exe/pnpm diff --git a/packages/exe/prepare.js b/pnpm/artifacts/exe/prepare.js similarity index 100% rename from packages/exe/prepare.js rename to pnpm/artifacts/exe/prepare.js diff --git a/packages/exe/scripts/build-artifacts.ts b/pnpm/artifacts/exe/scripts/build-artifacts.ts similarity index 82% rename from packages/exe/scripts/build-artifacts.ts rename to pnpm/artifacts/exe/scripts/build-artifacts.ts index 141cdd0671..b3d2cd43ff 100644 --- a/packages/exe/scripts/build-artifacts.ts +++ b/pnpm/artifacts/exe/scripts/build-artifacts.ts @@ -2,7 +2,7 @@ import * as execa from 'execa' import fs from 'fs' import path from 'path' -const artifactsDir = path.join(__dirname, '../../artifacts') +const artifactsDir = path.join(__dirname, '../..') function build (target: string) { let artifactFile = path.join(artifactsDir, target, 'pnpm') @@ -12,7 +12,7 @@ function build (target: string) { try { fs.unlinkSync(artifactFile) } catch (err) {} - execa.sync('pkg', ['../pnpm/dist/pnpm.cjs', `--config=../pnpm/package-${target}.json`], { + execa.sync('pkg', ['../../dist/pnpm.cjs', `--config=../../package-${target}.json`], { cwd: path.join(__dirname, '..'), stdio: 'inherit', }) diff --git a/packages/exe/setup.js b/pnpm/artifacts/exe/setup.js similarity index 100% rename from packages/exe/setup.js rename to pnpm/artifacts/exe/setup.js diff --git a/packages/artifacts/linux-arm64/.gitignore b/pnpm/artifacts/linux-arm64/.gitignore similarity index 100% rename from packages/artifacts/linux-arm64/.gitignore rename to pnpm/artifacts/linux-arm64/.gitignore diff --git a/packages/artifacts/linux-arm64/.npmignore b/pnpm/artifacts/linux-arm64/.npmignore similarity index 100% rename from packages/artifacts/linux-arm64/.npmignore rename to pnpm/artifacts/linux-arm64/.npmignore diff --git a/packages/artifacts/linux-arm64/CHANGELOG.md b/pnpm/artifacts/linux-arm64/CHANGELOG.md similarity index 100% rename from packages/artifacts/linux-arm64/CHANGELOG.md rename to pnpm/artifacts/linux-arm64/CHANGELOG.md diff --git a/packages/artifacts/linux-arm64/README.md b/pnpm/artifacts/linux-arm64/README.md similarity index 100% rename from packages/artifacts/linux-arm64/README.md rename to pnpm/artifacts/linux-arm64/README.md diff --git a/packages/artifacts/linux-arm64/package.json b/pnpm/artifacts/linux-arm64/package.json similarity index 100% rename from packages/artifacts/linux-arm64/package.json rename to pnpm/artifacts/linux-arm64/package.json diff --git a/packages/artifacts/linux-x64/.gitignore b/pnpm/artifacts/linux-x64/.gitignore similarity index 100% rename from packages/artifacts/linux-x64/.gitignore rename to pnpm/artifacts/linux-x64/.gitignore diff --git a/packages/artifacts/linux-x64/.npmignore b/pnpm/artifacts/linux-x64/.npmignore similarity index 100% rename from packages/artifacts/linux-x64/.npmignore rename to pnpm/artifacts/linux-x64/.npmignore diff --git a/packages/artifacts/linux-x64/CHANGELOG.md b/pnpm/artifacts/linux-x64/CHANGELOG.md similarity index 100% rename from packages/artifacts/linux-x64/CHANGELOG.md rename to pnpm/artifacts/linux-x64/CHANGELOG.md diff --git a/packages/artifacts/linux-x64/README.md b/pnpm/artifacts/linux-x64/README.md similarity index 100% rename from packages/artifacts/linux-x64/README.md rename to pnpm/artifacts/linux-x64/README.md diff --git a/packages/artifacts/linux-x64/package.json b/pnpm/artifacts/linux-x64/package.json similarity index 100% rename from packages/artifacts/linux-x64/package.json rename to pnpm/artifacts/linux-x64/package.json diff --git a/packages/artifacts/macos-arm64/.gitignore b/pnpm/artifacts/linuxstatic-arm64/.gitignore similarity index 100% rename from packages/artifacts/macos-arm64/.gitignore rename to pnpm/artifacts/linuxstatic-arm64/.gitignore diff --git a/packages/artifacts/macos-x64/.gitignore b/pnpm/artifacts/macos-arm64/.gitignore similarity index 100% rename from packages/artifacts/macos-x64/.gitignore rename to pnpm/artifacts/macos-arm64/.gitignore diff --git a/packages/artifacts/macos-arm64/.npmignore b/pnpm/artifacts/macos-arm64/.npmignore similarity index 100% rename from packages/artifacts/macos-arm64/.npmignore rename to pnpm/artifacts/macos-arm64/.npmignore diff --git a/packages/artifacts/macos-arm64/CHANGELOG.md b/pnpm/artifacts/macos-arm64/CHANGELOG.md similarity index 100% rename from packages/artifacts/macos-arm64/CHANGELOG.md rename to pnpm/artifacts/macos-arm64/CHANGELOG.md diff --git a/packages/artifacts/macos-arm64/README.md b/pnpm/artifacts/macos-arm64/README.md similarity index 100% rename from packages/artifacts/macos-arm64/README.md rename to pnpm/artifacts/macos-arm64/README.md diff --git a/packages/artifacts/macos-arm64/package.json b/pnpm/artifacts/macos-arm64/package.json similarity index 100% rename from packages/artifacts/macos-arm64/package.json rename to pnpm/artifacts/macos-arm64/package.json diff --git a/pnpm/artifacts/macos-x64/.gitignore b/pnpm/artifacts/macos-x64/.gitignore new file mode 100644 index 0000000000..adcdaedec6 --- /dev/null +++ b/pnpm/artifacts/macos-x64/.gitignore @@ -0,0 +1 @@ +pnpm diff --git a/packages/artifacts/macos-x64/.npmignore b/pnpm/artifacts/macos-x64/.npmignore similarity index 100% rename from packages/artifacts/macos-x64/.npmignore rename to pnpm/artifacts/macos-x64/.npmignore diff --git a/packages/artifacts/macos-x64/CHANGELOG.md b/pnpm/artifacts/macos-x64/CHANGELOG.md similarity index 100% rename from packages/artifacts/macos-x64/CHANGELOG.md rename to pnpm/artifacts/macos-x64/CHANGELOG.md diff --git a/packages/artifacts/macos-x64/README.md b/pnpm/artifacts/macos-x64/README.md similarity index 100% rename from packages/artifacts/macos-x64/README.md rename to pnpm/artifacts/macos-x64/README.md diff --git a/packages/artifacts/macos-x64/package.json b/pnpm/artifacts/macos-x64/package.json similarity index 100% rename from packages/artifacts/macos-x64/package.json rename to pnpm/artifacts/macos-x64/package.json diff --git a/packages/artifacts/win-x64/.gitignore b/pnpm/artifacts/win-x64/.gitignore similarity index 100% rename from packages/artifacts/win-x64/.gitignore rename to pnpm/artifacts/win-x64/.gitignore diff --git a/packages/artifacts/win-x64/.npmignore b/pnpm/artifacts/win-x64/.npmignore similarity index 100% rename from packages/artifacts/win-x64/.npmignore rename to pnpm/artifacts/win-x64/.npmignore diff --git a/packages/artifacts/win-x64/CHANGELOG.md b/pnpm/artifacts/win-x64/CHANGELOG.md similarity index 100% rename from packages/artifacts/win-x64/CHANGELOG.md rename to pnpm/artifacts/win-x64/CHANGELOG.md diff --git a/packages/artifacts/win-x64/README.md b/pnpm/artifacts/win-x64/README.md similarity index 100% rename from packages/artifacts/win-x64/README.md rename to pnpm/artifacts/win-x64/README.md diff --git a/packages/artifacts/win-x64/package.json b/pnpm/artifacts/win-x64/package.json similarity index 100% rename from packages/artifacts/win-x64/package.json rename to pnpm/artifacts/win-x64/package.json diff --git a/packages/pnpm/bin/pnpm.cjs b/pnpm/bin/pnpm.cjs similarity index 100% rename from packages/pnpm/bin/pnpm.cjs rename to pnpm/bin/pnpm.cjs diff --git a/packages/pnpm/bin/pnpx.cjs b/pnpm/bin/pnpx.cjs similarity index 100% rename from packages/pnpm/bin/pnpx.cjs rename to pnpm/bin/pnpx.cjs diff --git a/packages/pnpm/dev/package.json b/pnpm/dev/package.json similarity index 100% rename from packages/pnpm/dev/package.json rename to pnpm/dev/package.json diff --git a/packages/pnpm/dev/pd.js b/pnpm/dev/pd.js similarity index 100% rename from packages/pnpm/dev/pd.js rename to pnpm/dev/pd.js diff --git a/pnpm/jest.config.js b/pnpm/jest.config.js new file mode 100644 index 0000000000..5ec74cdfa8 --- /dev/null +++ b/pnpm/jest.config.js @@ -0,0 +1 @@ +module.exports = require('../jest.config.js') diff --git a/packages/pnpm/node-gyp-bin/node-gyp b/pnpm/node-gyp-bin/node-gyp similarity index 100% rename from packages/pnpm/node-gyp-bin/node-gyp rename to pnpm/node-gyp-bin/node-gyp diff --git a/packages/pnpm/node-gyp-bin/node-gyp.cmd b/pnpm/node-gyp-bin/node-gyp.cmd similarity index 100% rename from packages/pnpm/node-gyp-bin/node-gyp.cmd rename to pnpm/node-gyp-bin/node-gyp.cmd diff --git a/packages/pnpm/package-linux-arm64.json b/pnpm/package-linux-arm64.json similarity index 70% rename from packages/pnpm/package-linux-arm64.json rename to pnpm/package-linux-arm64.json index 542c35cf9e..ea4ce5dd80 100644 --- a/packages/pnpm/package-linux-arm64.json +++ b/pnpm/package-linux-arm64.json @@ -2,6 +2,6 @@ "pkg": { "assets": ["dist/pnpmrc", "dist/scripts/*"], "targets": ["node14-linux-arm64"], - "outputPath": "../artifacts/linux-arm64" + "outputPath": "../linux-arm64" } } diff --git a/packages/pnpm/package-linux-x64.json b/pnpm/package-linux-x64.json similarity index 70% rename from packages/pnpm/package-linux-x64.json rename to pnpm/package-linux-x64.json index 055ecfda54..25a39a1186 100644 --- a/packages/pnpm/package-linux-x64.json +++ b/pnpm/package-linux-x64.json @@ -2,6 +2,6 @@ "pkg": { "assets": ["dist/pnpmrc", "dist/scripts/*"], "targets": ["node14-linux-x64"], - "outputPath": "../artifacts/linux-x64" + "outputPath": "../linux-x64" } } diff --git a/packages/pnpm/package-linuxstatic-arm64.json b/pnpm/package-linuxstatic-arm64.json similarity index 68% rename from packages/pnpm/package-linuxstatic-arm64.json rename to pnpm/package-linuxstatic-arm64.json index 569c099495..0f3eccf08f 100644 --- a/packages/pnpm/package-linuxstatic-arm64.json +++ b/pnpm/package-linuxstatic-arm64.json @@ -2,6 +2,6 @@ "pkg": { "assets": ["dist/pnpmrc", "dist/scripts/*"], "targets": ["node14-linuxstatic-arm64"], - "outputPath": "../artifacts/linuxstatic-arm64" + "outputPath": "../linuxstatic-arm64" } } diff --git a/packages/pnpm/package-linuxstatic-x64.json b/pnpm/package-linuxstatic-x64.json similarity index 69% rename from packages/pnpm/package-linuxstatic-x64.json rename to pnpm/package-linuxstatic-x64.json index d01e9fb998..21dbc1563b 100644 --- a/packages/pnpm/package-linuxstatic-x64.json +++ b/pnpm/package-linuxstatic-x64.json @@ -2,6 +2,6 @@ "pkg": { "assets": ["dist/pnpmrc", "dist/scripts/*"], "targets": ["node14-linuxstatic-x64"], - "outputPath": "../artifacts/linuxstatic-x64" + "outputPath": "../linuxstatic-x64" } } diff --git a/packages/pnpm/package-macos-arm64.json b/pnpm/package-macos-arm64.json similarity index 70% rename from packages/pnpm/package-macos-arm64.json rename to pnpm/package-macos-arm64.json index f77262e5c9..918ce9131b 100644 --- a/packages/pnpm/package-macos-arm64.json +++ b/pnpm/package-macos-arm64.json @@ -2,6 +2,6 @@ "pkg": { "assets": ["dist/pnpmrc", "dist/scripts/*"], "targets": ["node14-macos-arm64"], - "outputPath": "../artifacts/macos-arm64" + "outputPath": "../macos-arm64" } } diff --git a/packages/pnpm/package-macos-x64.json b/pnpm/package-macos-x64.json similarity index 70% rename from packages/pnpm/package-macos-x64.json rename to pnpm/package-macos-x64.json index 6989981d0d..7f3f23c78a 100644 --- a/packages/pnpm/package-macos-x64.json +++ b/pnpm/package-macos-x64.json @@ -2,6 +2,6 @@ "pkg": { "assets": ["dist/pnpmrc", "dist/scripts/*"], "targets": ["node14-macos-x64"], - "outputPath": "../artifacts/macos-x64" + "outputPath": "../macos-x64" } } diff --git a/packages/pnpm/package-win-x64.json b/pnpm/package-win-x64.json similarity index 71% rename from packages/pnpm/package-win-x64.json rename to pnpm/package-win-x64.json index cb7dedcc8f..7c1768b570 100644 --- a/packages/pnpm/package-win-x64.json +++ b/pnpm/package-win-x64.json @@ -2,6 +2,6 @@ "pkg": { "assets": ["dist/pnpmrc", "dist/scripts/*"], "targets": ["node14-win-x64"], - "outputPath": "../artifacts/win-x64" + "outputPath": "../win-x64" } } diff --git a/packages/pnpm/package.json b/pnpm/package.json similarity index 93% rename from packages/pnpm/package.json rename to pnpm/package.json index 3564b2d5dd..e310c56cb4 100644 --- a/packages/pnpm/package.json +++ b/pnpm/package.json @@ -61,6 +61,7 @@ "@pnpm/registry-mock": "3.1.0", "@pnpm/run-npm": "workspace:*", "@pnpm/tabtab": "^0.1.2", + "@pnpm/test-fixtures": "workspace:*", "@pnpm/types": "workspace:*", "@pnpm/write-project-manifest": "workspace:*", "@types/cross-spawn": "^6.0.2", @@ -148,15 +149,14 @@ "url": "git+https://github.com/pnpm/pnpm.git" }, "scripts": { - "bundle:pnpm": "cross-var esbuild lib/pnpm.js --bundle --platform=node --outfile=dist/pnpm.cjs --external:node-gyp --define:process.env.npm_package_name=\\\"$npm_package_name\\\" --define:process.env.npm_package_version=\\\"$npm_package_version\\\"", - "bundle": "pnpm bundle:pnpm", + "bundle": "cross-var esbuild lib/pnpm.js --bundle --platform=node --outfile=dist/pnpm.cjs --external:node-gyp --define:process.env.npm_package_name=\\\"$npm_package_name\\\" --define:process.env.npm_package_version=\\\"$npm_package_version\\\"", "start": "tsc --watch", "lint": "eslint src/**/*.ts test/**/*.ts", "registry-mock": "registry-mock", "test:jest": "jest", "pretest:e2e": "rimraf node_modules/.bin/pnpm", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7782 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7776 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm compile && npm cache clear --force && publish-packed --prune --npm-client=pnpm --dest=dist", "postpublish": "publish-packed", diff --git a/packages/pnpm/pnpmrc b/pnpm/pnpmrc similarity index 100% rename from packages/pnpm/pnpmrc rename to pnpm/pnpmrc diff --git a/packages/pnpm/src/checkForUpdates.test.ts b/pnpm/src/checkForUpdates.test.ts similarity index 100% rename from packages/pnpm/src/checkForUpdates.test.ts rename to pnpm/src/checkForUpdates.test.ts diff --git a/packages/pnpm/src/checkForUpdates.ts b/pnpm/src/checkForUpdates.ts similarity index 100% rename from packages/pnpm/src/checkForUpdates.ts rename to pnpm/src/checkForUpdates.ts diff --git a/packages/pnpm/src/cmd/bin.ts b/pnpm/src/cmd/bin.ts similarity index 100% rename from packages/pnpm/src/cmd/bin.ts rename to pnpm/src/cmd/bin.ts diff --git a/packages/pnpm/src/cmd/complete.ts b/pnpm/src/cmd/complete.ts similarity index 100% rename from packages/pnpm/src/cmd/complete.ts rename to pnpm/src/cmd/complete.ts diff --git a/packages/pnpm/src/cmd/completion.ts b/pnpm/src/cmd/completion.ts similarity index 100% rename from packages/pnpm/src/cmd/completion.ts rename to pnpm/src/cmd/completion.ts diff --git a/packages/pnpm/src/cmd/help.ts b/pnpm/src/cmd/help.ts similarity index 100% rename from packages/pnpm/src/cmd/help.ts rename to pnpm/src/cmd/help.ts diff --git a/packages/pnpm/src/cmd/index.ts b/pnpm/src/cmd/index.ts similarity index 100% rename from packages/pnpm/src/cmd/index.ts rename to pnpm/src/cmd/index.ts diff --git a/packages/pnpm/src/cmd/installTest.ts b/pnpm/src/cmd/installTest.ts similarity index 100% rename from packages/pnpm/src/cmd/installTest.ts rename to pnpm/src/cmd/installTest.ts diff --git a/packages/pnpm/src/cmd/recursive.ts b/pnpm/src/cmd/recursive.ts similarity index 100% rename from packages/pnpm/src/cmd/recursive.ts rename to pnpm/src/cmd/recursive.ts diff --git a/packages/pnpm/src/cmd/root.ts b/pnpm/src/cmd/root.ts similarity index 100% rename from packages/pnpm/src/cmd/root.ts rename to pnpm/src/cmd/root.ts diff --git a/packages/pnpm/src/errorHandler.ts b/pnpm/src/errorHandler.ts similarity index 100% rename from packages/pnpm/src/errorHandler.ts rename to pnpm/src/errorHandler.ts diff --git a/packages/pnpm/src/formatError.ts b/pnpm/src/formatError.ts similarity index 100% rename from packages/pnpm/src/formatError.ts rename to pnpm/src/formatError.ts diff --git a/packages/pnpm/src/getOptionType.ts b/pnpm/src/getOptionType.ts similarity index 100% rename from packages/pnpm/src/getOptionType.ts rename to pnpm/src/getOptionType.ts diff --git a/packages/pnpm/src/main.ts b/pnpm/src/main.ts similarity index 100% rename from packages/pnpm/src/main.ts rename to pnpm/src/main.ts diff --git a/packages/pnpm/src/optionTypesToCompletions.ts b/pnpm/src/optionTypesToCompletions.ts similarity index 100% rename from packages/pnpm/src/optionTypesToCompletions.ts rename to pnpm/src/optionTypesToCompletions.ts diff --git a/packages/pnpm/src/parseCliArgs.ts b/pnpm/src/parseCliArgs.ts similarity index 100% rename from packages/pnpm/src/parseCliArgs.ts rename to pnpm/src/parseCliArgs.ts diff --git a/packages/pnpm/src/pnpm.ts b/pnpm/src/pnpm.ts similarity index 100% rename from packages/pnpm/src/pnpm.ts rename to pnpm/src/pnpm.ts diff --git a/packages/pnpm/src/reporter/index.ts b/pnpm/src/reporter/index.ts similarity index 100% rename from packages/pnpm/src/reporter/index.ts rename to pnpm/src/reporter/index.ts diff --git a/packages/pnpm/src/reporter/silentReporter.ts b/pnpm/src/reporter/silentReporter.ts similarity index 100% rename from packages/pnpm/src/reporter/silentReporter.ts rename to pnpm/src/reporter/silentReporter.ts diff --git a/packages/pnpm/src/runNpm.ts b/pnpm/src/runNpm.ts similarity index 100% rename from packages/pnpm/src/runNpm.ts rename to pnpm/src/runNpm.ts diff --git a/packages/pnpm/src/shorthands.ts b/pnpm/src/shorthands.ts similarity index 100% rename from packages/pnpm/src/shorthands.ts rename to pnpm/src/shorthands.ts diff --git a/packages/pnpm/src/types.ts b/pnpm/src/types.ts similarity index 100% rename from packages/pnpm/src/types.ts rename to pnpm/src/types.ts diff --git a/packages/pnpm/test/bin.ts b/pnpm/test/bin.ts similarity index 100% rename from packages/pnpm/test/bin.ts rename to pnpm/test/bin.ts diff --git a/packages/pnpm/test/cli.ts b/pnpm/test/cli.ts similarity index 97% rename from packages/pnpm/test/cli.ts rename to pnpm/test/cli.ts index d32c80f0f7..fdd0ef0e44 100644 --- a/packages/pnpm/test/cli.ts +++ b/pnpm/test/cli.ts @@ -2,6 +2,7 @@ import { createReadStream, promises as fs, mkdirSync } from 'fs' import path from 'path' import PATH_NAME from 'path-name' import { prepare, prepareEmpty } from '@pnpm/prepare' +import { fixtures } from '@pnpm/test-fixtures' import rimraf from '@zkochan/rimraf' import execa from 'execa' import loadJsonFile from 'load-json-file' @@ -11,8 +12,8 @@ import { execPnpxSync, } from './utils' -const fixtures = path.join(__dirname, '../../../fixtures') -const hasOutdatedDepsFixture = path.join(fixtures, 'has-outdated-deps') +const f = fixtures(__dirname) +const hasOutdatedDepsFixture = f.find('has-outdated-deps') test('some commands pass through to npm', () => { const result = execPnpmSync(['dist-tag', 'ls', 'is-positive']) diff --git a/packages/pnpm/test/complete.test.ts b/pnpm/test/complete.test.ts similarity index 100% rename from packages/pnpm/test/complete.test.ts rename to pnpm/test/complete.test.ts diff --git a/packages/pnpm/test/filterProd.test.ts b/pnpm/test/filterProd.test.ts similarity index 100% rename from packages/pnpm/test/filterProd.test.ts rename to pnpm/test/filterProd.test.ts diff --git a/packages/pnpm/test/formatError.test.ts b/pnpm/test/formatError.test.ts similarity index 100% rename from packages/pnpm/test/formatError.test.ts rename to pnpm/test/formatError.test.ts diff --git a/packages/pnpm/test/getOptionType.test.ts b/pnpm/test/getOptionType.test.ts similarity index 100% rename from packages/pnpm/test/getOptionType.test.ts rename to pnpm/test/getOptionType.test.ts diff --git a/packages/pnpm/test/help.spec.ts b/pnpm/test/help.spec.ts similarity index 100% rename from packages/pnpm/test/help.spec.ts rename to pnpm/test/help.spec.ts diff --git a/packages/pnpm/test/hooks.ts b/pnpm/test/hooks.ts similarity index 96% rename from packages/pnpm/test/hooks.ts rename to pnpm/test/hooks.ts index 1e246044ee..7ed6e99b42 100644 --- a/packages/pnpm/test/hooks.ts +++ b/pnpm/test/hooks.ts @@ -2,6 +2,7 @@ import { promises as fs } from 'fs' import path from 'path' import { PackageManifest } from '@pnpm/types' import { prepare, preparePackages } from '@pnpm/prepare' +import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock' import loadJsonFile from 'load-json-file' import writeYamlFile from 'write-yaml-file' import { execPnpm, execPnpmSync } from './utils' @@ -193,8 +194,8 @@ test('custom fetcher can call default fetcher', async () => { expect(args.resolution).toEqual({ integrity: 'sha512-xxzPGZ4P2uN6rROUa5N9Z7zTX6ERuE0hs6GUOc/cKBLF2NqKc16UwqHMt3tFg4CO6EBTE5UecUasg+3jZx3Ckg==', - registry: 'http://localhost:7782/', - tarball: 'http://localhost:7782/is-positive/-/is-positive-1.0.0.tgz', + registry: `http://localhost:${REGISTRY_MOCK_PORT}/`, + tarball: `http://localhost:${REGISTRY_MOCK_PORT}/is-positive/-/is-positive-1.0.0.tgz`, }) expect(args.opts).toBeDefined() diff --git a/packages/pnpm/test/install/global.ts b/pnpm/test/install/global.ts similarity index 100% rename from packages/pnpm/test/install/global.ts rename to pnpm/test/install/global.ts diff --git a/packages/pnpm/test/install/hoist.ts b/pnpm/test/install/hoist.ts similarity index 100% rename from packages/pnpm/test/install/hoist.ts rename to pnpm/test/install/hoist.ts diff --git a/packages/pnpm/test/install/hooks.ts b/pnpm/test/install/hooks.ts similarity index 100% rename from packages/pnpm/test/install/hooks.ts rename to pnpm/test/install/hooks.ts diff --git a/packages/pnpm/test/install/lifecycleScripts.ts b/pnpm/test/install/lifecycleScripts.ts similarity index 100% rename from packages/pnpm/test/install/lifecycleScripts.ts rename to pnpm/test/install/lifecycleScripts.ts diff --git a/packages/pnpm/test/install/misc.ts b/pnpm/test/install/misc.ts similarity index 100% rename from packages/pnpm/test/install/misc.ts rename to pnpm/test/install/misc.ts diff --git a/packages/pnpm/test/install/only.ts b/pnpm/test/install/only.ts similarity index 100% rename from packages/pnpm/test/install/only.ts rename to pnpm/test/install/only.ts diff --git a/packages/pnpm/test/install/optional.ts b/pnpm/test/install/optional.ts similarity index 100% rename from packages/pnpm/test/install/optional.ts rename to pnpm/test/install/optional.ts diff --git a/packages/pnpm/test/install/preferOffline.ts b/pnpm/test/install/preferOffline.ts similarity index 100% rename from packages/pnpm/test/install/preferOffline.ts rename to pnpm/test/install/preferOffline.ts diff --git a/packages/pnpm/test/install/selfUpdate.ts b/pnpm/test/install/selfUpdate.ts similarity index 100% rename from packages/pnpm/test/install/selfUpdate.ts rename to pnpm/test/install/selfUpdate.ts diff --git a/packages/pnpm/test/install/sideEffects.ts b/pnpm/test/install/sideEffects.ts similarity index 100% rename from packages/pnpm/test/install/sideEffects.ts rename to pnpm/test/install/sideEffects.ts diff --git a/packages/pnpm/test/monorepo/index.ts b/pnpm/test/monorepo/index.ts similarity index 100% rename from packages/pnpm/test/monorepo/index.ts rename to pnpm/test/monorepo/index.ts diff --git a/packages/pnpm/test/optionTypesToCompletions.test.ts b/pnpm/test/optionTypesToCompletions.test.ts similarity index 100% rename from packages/pnpm/test/optionTypesToCompletions.test.ts rename to pnpm/test/optionTypesToCompletions.test.ts diff --git a/packages/pnpm/test/recursive/misc.ts b/pnpm/test/recursive/misc.ts similarity index 100% rename from packages/pnpm/test/recursive/misc.ts rename to pnpm/test/recursive/misc.ts diff --git a/packages/pnpm/test/recursive/rebuild.ts b/pnpm/test/recursive/rebuild.ts similarity index 100% rename from packages/pnpm/test/recursive/rebuild.ts rename to pnpm/test/recursive/rebuild.ts diff --git a/packages/pnpm/test/recursive/run.ts b/pnpm/test/recursive/run.ts similarity index 100% rename from packages/pnpm/test/recursive/run.ts rename to pnpm/test/recursive/run.ts diff --git a/packages/pnpm/test/recursive/update.ts b/pnpm/test/recursive/update.ts similarity index 100% rename from packages/pnpm/test/recursive/update.ts rename to pnpm/test/recursive/update.ts diff --git a/packages/pnpm/test/root.ts b/pnpm/test/root.ts similarity index 100% rename from packages/pnpm/test/root.ts rename to pnpm/test/root.ts diff --git a/packages/pnpm/test/run.ts b/pnpm/test/run.ts similarity index 100% rename from packages/pnpm/test/run.ts rename to pnpm/test/run.ts diff --git a/packages/pnpm/test/server.ts b/pnpm/test/server.ts similarity index 100% rename from packages/pnpm/test/server.ts rename to pnpm/test/server.ts diff --git a/packages/pnpm/test/uninstall.ts b/pnpm/test/uninstall.ts similarity index 100% rename from packages/pnpm/test/uninstall.ts rename to pnpm/test/uninstall.ts diff --git a/packages/pnpm/test/update.ts b/pnpm/test/update.ts similarity index 100% rename from packages/pnpm/test/update.ts rename to pnpm/test/update.ts diff --git a/packages/pnpm/test/utils/distTags.ts b/pnpm/test/utils/distTags.ts similarity index 100% rename from packages/pnpm/test/utils/distTags.ts rename to pnpm/test/utils/distTags.ts diff --git a/packages/pnpm/test/utils/execPnpm.ts b/pnpm/test/utils/execPnpm.ts similarity index 100% rename from packages/pnpm/test/utils/execPnpm.ts rename to pnpm/test/utils/execPnpm.ts diff --git a/packages/pnpm/test/utils/index.ts b/pnpm/test/utils/index.ts similarity index 100% rename from packages/pnpm/test/utils/index.ts rename to pnpm/test/utils/index.ts diff --git a/packages/pnpm/test/utils/localPkg.ts b/pnpm/test/utils/localPkg.ts similarity index 100% rename from packages/pnpm/test/utils/localPkg.ts rename to pnpm/test/utils/localPkg.ts diff --git a/packages/pnpm/test/utils/retryLoadJsonFile.ts b/pnpm/test/utils/retryLoadJsonFile.ts similarity index 100% rename from packages/pnpm/test/utils/retryLoadJsonFile.ts rename to pnpm/test/utils/retryLoadJsonFile.ts diff --git a/packages/pnpm/test/utils/simple-package.json b/pnpm/test/utils/simple-package.json similarity index 100% rename from packages/pnpm/test/utils/simple-package.json rename to pnpm/test/utils/simple-package.json diff --git a/packages/pnpm/test/utils/testDefaults.ts b/pnpm/test/utils/testDefaults.ts similarity index 100% rename from packages/pnpm/test/utils/testDefaults.ts rename to pnpm/test/utils/testDefaults.ts diff --git a/pnpm/tsconfig.json b/pnpm/tsconfig.json new file mode 100644 index 0000000000..25c2bff193 --- /dev/null +++ b/pnpm/tsconfig.json @@ -0,0 +1,142 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "composite": false, + "declaration": false, + "outDir": "lib", + "sourceMap": false, + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../cli/cli-meta" + }, + { + "path": "../cli/cli-utils" + }, + { + "path": "../cli/command" + }, + { + "path": "../cli/common-cli-options-help" + }, + { + "path": "../cli/default-reporter" + }, + { + "path": "../cli/parse-cli-args" + }, + { + "path": "../config/config" + }, + { + "path": "../config/pick-registry-for-package" + }, + { + "path": "../env/plugin-commands-env" + }, + { + "path": "../exec/plugin-commands-rebuild" + }, + { + "path": "../exec/plugin-commands-script-runners" + }, + { + "path": "../exec/run-npm" + }, + { + "path": "../lockfile/lockfile-types" + }, + { + "path": "../lockfile/plugin-commands-audit" + }, + { + "path": "../packages/constants" + }, + { + "path": "../packages/core-loggers" + }, + { + "path": "../packages/dependency-path" + }, + { + "path": "../packages/plugin-commands-doctor" + }, + { + "path": "../packages/plugin-commands-init" + }, + { + "path": "../packages/plugin-commands-patching" + }, + { + "path": "../packages/plugin-commands-setup" + }, + { + "path": "../packages/types" + }, + { + "path": "../pkg-manager/client" + }, + { + "path": "../pkg-manager/modules-yaml" + }, + { + "path": "../pkg-manager/plugin-commands-installation" + }, + { + "path": "../pkg-manifest/read-package-json" + }, + { + "path": "../pkg-manifest/read-project-manifest" + }, + { + "path": "../pkg-manifest/write-project-manifest" + }, + { + "path": "../privatePackages/assert-project" + }, + { + "path": "../privatePackages/prepare" + }, + { + "path": "../privatePackages/test-fixtures" + }, + { + "path": "../releasing/plugin-commands-deploy" + }, + { + "path": "../releasing/plugin-commands-publishing" + }, + { + "path": "../reviewing/plugin-commands-licenses" + }, + { + "path": "../reviewing/plugin-commands-listing" + }, + { + "path": "../reviewing/plugin-commands-outdated" + }, + { + "path": "../store/plugin-commands-server" + }, + { + "path": "../store/plugin-commands-store" + }, + { + "path": "../workspace/filter-workspace-packages" + }, + { + "path": "../workspace/find-workspace-dir" + }, + { + "path": "../workspace/find-workspace-packages" + }, + { + "path": "../workspace/pkgs-graph" + } + ] +} diff --git a/packages/plugin-commands-installation/tsconfig.lint.json b/pnpm/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-installation/tsconfig.lint.json rename to pnpm/tsconfig.lint.json diff --git a/privatePackages/assert-project/tsconfig.json b/privatePackages/assert-project/tsconfig.json index 9a22159d1d..9d73509d97 100644 --- a/privatePackages/assert-project/tsconfig.json +++ b/privatePackages/assert-project/tsconfig.json @@ -9,18 +9,18 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../lockfile/lockfile-types" + }, { "path": "../../packages/constants" }, - { - "path": "../../packages/lockfile-types" - }, - { - "path": "../../packages/modules-yaml" - }, { "path": "../../packages/types" }, + { + "path": "../../pkg-manager/modules-yaml" + }, { "path": "../assert-store" } diff --git a/privatePackages/assert-store/tsconfig.json b/privatePackages/assert-store/tsconfig.json index c416da7cb7..aa90180149 100644 --- a/privatePackages/assert-store/tsconfig.json +++ b/privatePackages/assert-store/tsconfig.json @@ -10,7 +10,7 @@ ], "references": [ { - "path": "../../packages/cafs" + "path": "../../store/cafs" } ] } diff --git a/privatePackages/test-fixtures/src/index.ts b/privatePackages/test-fixtures/src/index.ts index 362231269c..30d6b2d496 100644 --- a/privatePackages/test-fixtures/src/index.ts +++ b/privatePackages/test-fixtures/src/index.ts @@ -26,7 +26,9 @@ function copyFixture (searchFromDir: string, name: string, dest: string): void { function findFixture (dir: string, name: string): string { const { root } = path.parse(dir) while (true) { - const checkDir = path.join(dir, 'fixtures', name) + let checkDir = path.join(dir, 'fixtures', name) + if (fs.existsSync(checkDir)) return checkDir + checkDir = path.join(dir, '__fixtures__', name) if (fs.existsSync(checkDir)) return checkDir if (dir === root) throw new Error(`Local package "${name}" not found`) dir = path.dirname(dir) diff --git a/packages/plugin-commands-deploy/CHANGELOG.md b/releasing/plugin-commands-deploy/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-deploy/CHANGELOG.md rename to releasing/plugin-commands-deploy/CHANGELOG.md diff --git a/packages/plugin-commands-deploy/README.md b/releasing/plugin-commands-deploy/README.md similarity index 100% rename from packages/plugin-commands-deploy/README.md rename to releasing/plugin-commands-deploy/README.md diff --git a/packages/plugin-commands-installation/jest.config.js b/releasing/plugin-commands-deploy/jest.config.js similarity index 100% rename from packages/plugin-commands-installation/jest.config.js rename to releasing/plugin-commands-deploy/jest.config.js diff --git a/packages/plugin-commands-deploy/package.json b/releasing/plugin-commands-deploy/package.json similarity index 86% rename from packages/plugin-commands-deploy/package.json rename to releasing/plugin-commands-deploy/package.json index 87c86a96ff..b6abb5fe49 100644 --- a/packages/plugin-commands-deploy/package.json +++ b/releasing/plugin-commands-deploy/package.json @@ -21,12 +21,12 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7773 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7777 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-deploy", + "repository": "https://github.com/pnpm/pnpm/blob/main/releasing/plugin-commands-deploy", "keywords": [ "pnpm7", "pnpm" @@ -35,7 +35,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-deploy#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/releasing/plugin-commands-deploy#readme", "devDependencies": { "@pnpm/assert-project": "workspace:*", "@pnpm/filter-workspace-packages": "workspace:*", diff --git a/packages/plugin-commands-deploy/src/deploy.ts b/releasing/plugin-commands-deploy/src/deploy.ts similarity index 100% rename from packages/plugin-commands-deploy/src/deploy.ts rename to releasing/plugin-commands-deploy/src/deploy.ts diff --git a/packages/plugin-commands-deploy/src/deployHook.ts b/releasing/plugin-commands-deploy/src/deployHook.ts similarity index 100% rename from packages/plugin-commands-deploy/src/deployHook.ts rename to releasing/plugin-commands-deploy/src/deployHook.ts diff --git a/packages/plugin-commands-deploy/src/index.ts b/releasing/plugin-commands-deploy/src/index.ts similarity index 100% rename from packages/plugin-commands-deploy/src/index.ts rename to releasing/plugin-commands-deploy/src/index.ts diff --git a/packages/plugin-commands-deploy/test/deploy.test.ts b/releasing/plugin-commands-deploy/test/deploy.test.ts similarity index 100% rename from packages/plugin-commands-deploy/test/deploy.test.ts rename to releasing/plugin-commands-deploy/test/deploy.test.ts diff --git a/packages/plugin-commands-deploy/test/deployHook.test.ts b/releasing/plugin-commands-deploy/test/deployHook.test.ts similarity index 100% rename from packages/plugin-commands-deploy/test/deployHook.test.ts rename to releasing/plugin-commands-deploy/test/deployHook.test.ts diff --git a/packages/plugin-commands-installation/test/utils/index.ts b/releasing/plugin-commands-deploy/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-installation/test/utils/index.ts rename to releasing/plugin-commands-deploy/test/utils/index.ts diff --git a/packages/plugin-commands-deploy/tsconfig.json b/releasing/plugin-commands-deploy/tsconfig.json similarity index 53% rename from packages/plugin-commands-deploy/tsconfig.json rename to releasing/plugin-commands-deploy/tsconfig.json index 5f2d32486a..b2c53e32c7 100644 --- a/packages/plugin-commands-deploy/tsconfig.json +++ b/releasing/plugin-commands-deploy/tsconfig.json @@ -9,6 +9,27 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../fetching/directory-fetcher" + }, + { + "path": "../../fs/indexed-pkg-importer" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/plugin-commands-installation" + }, { "path": "../../privatePackages/assert-project" }, @@ -16,28 +37,7 @@ "path": "../../privatePackages/prepare" }, { - "path": "../cli-utils" - }, - { - "path": "../directory-fetcher" - }, - { - "path": "../error" - }, - { - "path": "../filter-workspace-packages" - }, - { - "path": "../fs.indexed-pkg-importer" - }, - { - "path": "../lockfile-types" - }, - { - "path": "../plugin-commands-installation" - }, - { - "path": "../types" + "path": "../../workspace/filter-workspace-packages" } ] } diff --git a/packages/plugin-commands-licenses/tsconfig.lint.json b/releasing/plugin-commands-deploy/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-licenses/tsconfig.lint.json rename to releasing/plugin-commands-deploy/tsconfig.lint.json diff --git a/packages/plugin-commands-publishing/CHANGELOG.md b/releasing/plugin-commands-publishing/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-publishing/CHANGELOG.md rename to releasing/plugin-commands-publishing/CHANGELOG.md diff --git a/packages/plugin-commands-publishing/README.md b/releasing/plugin-commands-publishing/README.md similarity index 100% rename from packages/plugin-commands-publishing/README.md rename to releasing/plugin-commands-publishing/README.md diff --git a/packages/plugin-commands-publishing/fixtures/has-bin/exec b/releasing/plugin-commands-publishing/fixtures/has-bin/exec similarity index 100% rename from packages/plugin-commands-publishing/fixtures/has-bin/exec rename to releasing/plugin-commands-publishing/fixtures/has-bin/exec diff --git a/packages/plugin-commands-publishing/fixtures/has-bin/index.js b/releasing/plugin-commands-publishing/fixtures/has-bin/index.js similarity index 100% rename from packages/plugin-commands-publishing/fixtures/has-bin/index.js rename to releasing/plugin-commands-publishing/fixtures/has-bin/index.js diff --git a/packages/plugin-commands-publishing/fixtures/has-bin/other-exec b/releasing/plugin-commands-publishing/fixtures/has-bin/other-exec similarity index 100% rename from packages/plugin-commands-publishing/fixtures/has-bin/other-exec rename to releasing/plugin-commands-publishing/fixtures/has-bin/other-exec diff --git a/packages/plugin-commands-publishing/fixtures/has-bin/package.json b/releasing/plugin-commands-publishing/fixtures/has-bin/package.json similarity index 100% rename from packages/plugin-commands-publishing/fixtures/has-bin/package.json rename to releasing/plugin-commands-publishing/fixtures/has-bin/package.json diff --git a/packages/plugin-commands-publishing/fixtures/readme/README.md b/releasing/plugin-commands-publishing/fixtures/readme/README.md similarity index 100% rename from packages/plugin-commands-publishing/fixtures/readme/README.md rename to releasing/plugin-commands-publishing/fixtures/readme/README.md diff --git a/packages/plugin-commands-publishing/fixtures/readme/package.json b/releasing/plugin-commands-publishing/fixtures/readme/package.json similarity index 100% rename from packages/plugin-commands-publishing/fixtures/readme/package.json rename to releasing/plugin-commands-publishing/fixtures/readme/package.json diff --git a/packages/plugin-commands-licenses/jest.config.js b/releasing/plugin-commands-publishing/jest.config.js similarity index 100% rename from packages/plugin-commands-licenses/jest.config.js rename to releasing/plugin-commands-publishing/jest.config.js diff --git a/packages/plugin-commands-publishing/package.json b/releasing/plugin-commands-publishing/package.json similarity index 93% rename from packages/plugin-commands-publishing/package.json rename to releasing/plugin-commands-publishing/package.json index 20d33014a5..0930f5ef42 100644 --- a/packages/plugin-commands-publishing/package.json +++ b/releasing/plugin-commands-publishing/package.json @@ -22,7 +22,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-publishing", + "repository": "https://github.com/pnpm/pnpm/blob/main/releasing/plugin-commands-publishing", "keywords": [ "pnpm7", "pnpm", @@ -33,7 +33,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-publishing#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/releasing/plugin-commands-publishing#readme", "devDependencies": { "@pnpm/filter-workspace-packages": "workspace:*", "@pnpm/plugin-commands-publishing": "workspace:*", diff --git a/packages/plugin-commands-publishing/src/index.ts b/releasing/plugin-commands-publishing/src/index.ts similarity index 100% rename from packages/plugin-commands-publishing/src/index.ts rename to releasing/plugin-commands-publishing/src/index.ts diff --git a/packages/plugin-commands-publishing/src/pack.ts b/releasing/plugin-commands-publishing/src/pack.ts similarity index 100% rename from packages/plugin-commands-publishing/src/pack.ts rename to releasing/plugin-commands-publishing/src/pack.ts diff --git a/packages/plugin-commands-publishing/src/publish.ts b/releasing/plugin-commands-publishing/src/publish.ts similarity index 100% rename from packages/plugin-commands-publishing/src/publish.ts rename to releasing/plugin-commands-publishing/src/publish.ts diff --git a/packages/plugin-commands-publishing/src/recursivePublish.ts b/releasing/plugin-commands-publishing/src/recursivePublish.ts similarity index 100% rename from packages/plugin-commands-publishing/src/recursivePublish.ts rename to releasing/plugin-commands-publishing/src/recursivePublish.ts diff --git a/packages/plugin-commands-publishing/test/__snapshots__/recursivePublish.ts.snap b/releasing/plugin-commands-publishing/test/__snapshots__/recursivePublish.ts.snap similarity index 100% rename from packages/plugin-commands-publishing/test/__snapshots__/recursivePublish.ts.snap rename to releasing/plugin-commands-publishing/test/__snapshots__/recursivePublish.ts.snap diff --git a/packages/plugin-commands-publishing/test/gitChecks.ts b/releasing/plugin-commands-publishing/test/gitChecks.ts similarity index 100% rename from packages/plugin-commands-publishing/test/gitChecks.ts rename to releasing/plugin-commands-publishing/test/gitChecks.ts diff --git a/packages/plugin-commands-publishing/test/pack.ts b/releasing/plugin-commands-publishing/test/pack.ts similarity index 100% rename from packages/plugin-commands-publishing/test/pack.ts rename to releasing/plugin-commands-publishing/test/pack.ts diff --git a/packages/plugin-commands-publishing/test/publish.ts b/releasing/plugin-commands-publishing/test/publish.ts similarity index 99% rename from packages/plugin-commands-publishing/test/publish.ts rename to releasing/plugin-commands-publishing/test/publish.ts index 38e2dec64d..0ead0720ee 100644 --- a/packages/plugin-commands-publishing/test/publish.ts +++ b/releasing/plugin-commands-publishing/test/publish.ts @@ -19,7 +19,7 @@ const CREDENTIALS = [ `--//localhost:${REGISTRY_MOCK_PORT}/:_password=${Buffer.from('password').toString('base64')}`, `--//localhost:${REGISTRY_MOCK_PORT}/:email=foo@bar.net`, ] -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('publish: package with package.json', async () => { prepare({ diff --git a/packages/plugin-commands-publishing/test/recursivePublish.ts b/releasing/plugin-commands-publishing/test/recursivePublish.ts similarity index 100% rename from packages/plugin-commands-publishing/test/recursivePublish.ts rename to releasing/plugin-commands-publishing/test/recursivePublish.ts diff --git a/packages/plugin-commands-publishing/test/utils/index.ts b/releasing/plugin-commands-publishing/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-publishing/test/utils/index.ts rename to releasing/plugin-commands-publishing/test/utils/index.ts diff --git a/releasing/plugin-commands-publishing/tsconfig.json b/releasing/plugin-commands-publishing/tsconfig.json new file mode 100644 index 0000000000..3a6fc8dc7d --- /dev/null +++ b/releasing/plugin-commands-publishing/tsconfig.json @@ -0,0 +1,61 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../config/config" + }, + { + "path": "../../config/pick-registry-for-package" + }, + { + "path": "../../exec/lifecycle" + }, + { + "path": "../../exec/run-npm" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/git-utils" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/client" + }, + { + "path": "../../pkg-manager/package-bins" + }, + { + "path": "../../pkg-manifest/exportable-manifest" + }, + { + "path": "../../privatePackages/prepare" + }, + { + "path": "../../resolving/resolver-base" + }, + { + "path": "../../workspace/filter-workspace-packages" + }, + { + "path": "../../workspace/sort-packages" + } + ] +} diff --git a/packages/plugin-commands-listing/tsconfig.lint.json b/releasing/plugin-commands-publishing/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-listing/tsconfig.lint.json rename to releasing/plugin-commands-publishing/tsconfig.lint.json diff --git a/packages/default-resolver/CHANGELOG.md b/resolving/default-resolver/CHANGELOG.md similarity index 100% rename from packages/default-resolver/CHANGELOG.md rename to resolving/default-resolver/CHANGELOG.md diff --git a/packages/default-resolver/README.md b/resolving/default-resolver/README.md similarity index 100% rename from packages/default-resolver/README.md rename to resolving/default-resolver/README.md diff --git a/packages/graceful-fs/jest.config.js b/resolving/default-resolver/jest.config.js similarity index 100% rename from packages/graceful-fs/jest.config.js rename to resolving/default-resolver/jest.config.js diff --git a/packages/default-resolver/package.json b/resolving/default-resolver/package.json similarity index 86% rename from packages/default-resolver/package.json rename to resolving/default-resolver/package.json index 5c95a513ef..5569c301b0 100644 --- a/packages/default-resolver/package.json +++ b/resolving/default-resolver/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/default-resolver", + "repository": "https://github.com/pnpm/pnpm/blob/main/resolving/default-resolver", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/default-resolver#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/resolving/default-resolver#readme", "dependencies": { "@pnpm/error": "workspace:*", "@pnpm/fetching-types": "workspace:*", diff --git a/packages/default-resolver/src/index.ts b/resolving/default-resolver/src/index.ts similarity index 100% rename from packages/default-resolver/src/index.ts rename to resolving/default-resolver/src/index.ts diff --git a/packages/default-resolver/test/index.ts b/resolving/default-resolver/test/index.ts similarity index 100% rename from packages/default-resolver/test/index.ts rename to resolving/default-resolver/test/index.ts diff --git a/packages/default-resolver/tsconfig.json b/resolving/default-resolver/tsconfig.json similarity index 79% rename from packages/default-resolver/tsconfig.json rename to resolving/default-resolver/tsconfig.json index 498e91af67..7e961a398a 100644 --- a/packages/default-resolver/tsconfig.json +++ b/resolving/default-resolver/tsconfig.json @@ -10,13 +10,13 @@ ], "references": [ { - "path": "../error" + "path": "../../network/fetch" }, { - "path": "../fetch" + "path": "../../network/fetching-types" }, { - "path": "../fetching-types" + "path": "../../packages/error" }, { "path": "../git-resolver" diff --git a/packages/plugin-commands-outdated/tsconfig.lint.json b/resolving/default-resolver/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-outdated/tsconfig.lint.json rename to resolving/default-resolver/tsconfig.lint.json diff --git a/packages/git-resolver/CHANGELOG.md b/resolving/git-resolver/CHANGELOG.md similarity index 100% rename from packages/git-resolver/CHANGELOG.md rename to resolving/git-resolver/CHANGELOG.md diff --git a/packages/git-resolver/README.md b/resolving/git-resolver/README.md similarity index 100% rename from packages/git-resolver/README.md rename to resolving/git-resolver/README.md diff --git a/packages/git-resolver/__mocks__/graceful-git.js b/resolving/git-resolver/__mocks__/graceful-git.js similarity index 100% rename from packages/git-resolver/__mocks__/graceful-git.js rename to resolving/git-resolver/__mocks__/graceful-git.js diff --git a/packages/git-resolver/example.js b/resolving/git-resolver/example.js similarity index 100% rename from packages/git-resolver/example.js rename to resolving/git-resolver/example.js diff --git a/packages/plugin-commands-listing/jest.config.js b/resolving/git-resolver/jest.config.js similarity index 100% rename from packages/plugin-commands-listing/jest.config.js rename to resolving/git-resolver/jest.config.js diff --git a/packages/git-resolver/package.json b/resolving/git-resolver/package.json similarity index 87% rename from packages/git-resolver/package.json rename to resolving/git-resolver/package.json index 63cb7d9903..accc26f76d 100644 --- a/packages/git-resolver/package.json +++ b/resolving/git-resolver/package.json @@ -19,7 +19,7 @@ "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/git-resolver", + "repository": "https://github.com/pnpm/pnpm/blob/main/resolving/git-resolver", "keywords": [ "pnpm7", "pnpm", @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/git-resolver#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/resolving/git-resolver#readme", "dependencies": { "@pnpm/fetch": "workspace:*", "@pnpm/resolver-base": "workspace:*", diff --git a/packages/git-resolver/src/index.ts b/resolving/git-resolver/src/index.ts similarity index 100% rename from packages/git-resolver/src/index.ts rename to resolving/git-resolver/src/index.ts diff --git a/packages/git-resolver/src/parsePref.ts b/resolving/git-resolver/src/parsePref.ts similarity index 100% rename from packages/git-resolver/src/parsePref.ts rename to resolving/git-resolver/src/parsePref.ts diff --git a/packages/git-resolver/test/index.ts b/resolving/git-resolver/test/index.ts similarity index 100% rename from packages/git-resolver/test/index.ts rename to resolving/git-resolver/test/index.ts diff --git a/packages/git-resolver/test/parsePref.test.ts b/resolving/git-resolver/test/parsePref.test.ts similarity index 100% rename from packages/git-resolver/test/parsePref.test.ts rename to resolving/git-resolver/test/parsePref.test.ts diff --git a/packages/git-resolver/tsconfig.json b/resolving/git-resolver/tsconfig.json similarity index 87% rename from packages/git-resolver/tsconfig.json rename to resolving/git-resolver/tsconfig.json index 3ee8e92943..15fb900895 100644 --- a/packages/git-resolver/tsconfig.json +++ b/resolving/git-resolver/tsconfig.json @@ -10,7 +10,7 @@ ], "references": [ { - "path": "../fetch" + "path": "../../network/fetch" }, { "path": "../resolver-base" diff --git a/packages/plugin-commands-publishing/tsconfig.lint.json b/resolving/git-resolver/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-publishing/tsconfig.lint.json rename to resolving/git-resolver/tsconfig.lint.json diff --git a/packages/local-resolver/CHANGELOG.md b/resolving/local-resolver/CHANGELOG.md similarity index 100% rename from packages/local-resolver/CHANGELOG.md rename to resolving/local-resolver/CHANGELOG.md diff --git a/packages/local-resolver/README.md b/resolving/local-resolver/README.md similarity index 100% rename from packages/local-resolver/README.md rename to resolving/local-resolver/README.md diff --git a/packages/local-resolver/example-package/README.md b/resolving/local-resolver/example-package/README.md similarity index 100% rename from packages/local-resolver/example-package/README.md rename to resolving/local-resolver/example-package/README.md diff --git a/packages/read-project-manifest/fixtures/package-json/package.json b/resolving/local-resolver/example-package/package.json similarity index 100% rename from packages/read-project-manifest/fixtures/package-json/package.json rename to resolving/local-resolver/example-package/package.json diff --git a/packages/local-resolver/example.js b/resolving/local-resolver/example.js similarity index 100% rename from packages/local-resolver/example.js rename to resolving/local-resolver/example.js diff --git a/packages/modules-yaml/jest.config.js b/resolving/local-resolver/jest.config.js similarity index 100% rename from packages/modules-yaml/jest.config.js rename to resolving/local-resolver/jest.config.js diff --git a/packages/local-resolver/package.json b/resolving/local-resolver/package.json similarity index 87% rename from packages/local-resolver/package.json rename to resolving/local-resolver/package.json index 0aae04ae26..94954aa18f 100644 --- a/packages/local-resolver/package.json +++ b/resolving/local-resolver/package.json @@ -19,7 +19,7 @@ "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/local-resolver", + "repository": "https://github.com/pnpm/pnpm/blob/main/resolving/local-resolver", "keywords": [ "pnpm7", "pnpm", @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/local-resolver#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/resolving/local-resolver#readme", "dependencies": { "@pnpm/error": "workspace:*", "@pnpm/graceful-fs": "workspace:*", diff --git a/packages/local-resolver/src/index.ts b/resolving/local-resolver/src/index.ts similarity index 100% rename from packages/local-resolver/src/index.ts rename to resolving/local-resolver/src/index.ts diff --git a/packages/local-resolver/src/parsePref.ts b/resolving/local-resolver/src/parsePref.ts similarity index 100% rename from packages/local-resolver/src/parsePref.ts rename to resolving/local-resolver/src/parsePref.ts diff --git a/packages/local-resolver/test/index.ts b/resolving/local-resolver/test/index.ts similarity index 100% rename from packages/local-resolver/test/index.ts rename to resolving/local-resolver/test/index.ts diff --git a/packages/local-resolver/test/pnpm-local-resolver-0.1.1.tgz b/resolving/local-resolver/test/pnpm-local-resolver-0.1.1.tgz similarity index 100% rename from packages/local-resolver/test/pnpm-local-resolver-0.1.1.tgz rename to resolving/local-resolver/test/pnpm-local-resolver-0.1.1.tgz diff --git a/packages/local-resolver/tsconfig.json b/resolving/local-resolver/tsconfig.json similarity index 63% rename from packages/local-resolver/tsconfig.json rename to resolving/local-resolver/tsconfig.json index 3c33073112..4d26e64dd2 100644 --- a/packages/local-resolver/tsconfig.json +++ b/resolving/local-resolver/tsconfig.json @@ -10,19 +10,19 @@ ], "references": [ { - "path": "../error" + "path": "../../fs/graceful-fs" }, { - "path": "../graceful-fs" + "path": "../../packages/error" }, { - "path": "../read-project-manifest" + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-project-manifest" }, { "path": "../resolver-base" - }, - { - "path": "../types" } ] } diff --git a/packages/plugin-commands-rebuild/tsconfig.lint.json b/resolving/local-resolver/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-rebuild/tsconfig.lint.json rename to resolving/local-resolver/tsconfig.lint.json diff --git a/packages/npm-resolver/CHANGELOG.md b/resolving/npm-resolver/CHANGELOG.md similarity index 100% rename from packages/npm-resolver/CHANGELOG.md rename to resolving/npm-resolver/CHANGELOG.md diff --git a/packages/npm-resolver/README.md b/resolving/npm-resolver/README.md similarity index 100% rename from packages/npm-resolver/README.md rename to resolving/npm-resolver/README.md diff --git a/packages/npm-resolver/example.js b/resolving/npm-resolver/example.js similarity index 100% rename from packages/npm-resolver/example.js rename to resolving/npm-resolver/example.js diff --git a/packages/tarball-resolver/jest.config.js b/resolving/npm-resolver/jest.config.js similarity index 100% rename from packages/tarball-resolver/jest.config.js rename to resolving/npm-resolver/jest.config.js diff --git a/packages/npm-resolver/package.json b/resolving/npm-resolver/package.json similarity index 91% rename from packages/npm-resolver/package.json rename to resolving/npm-resolver/package.json index b8513ac154..d627659275 100644 --- a/packages/npm-resolver/package.json +++ b/resolving/npm-resolver/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/npm-resolver", + "repository": "https://github.com/pnpm/pnpm/blob/main/resolving/npm-resolver", "keywords": [ "pnpm7", "pnpm", @@ -29,7 +29,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/npm-resolver#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/resolving/npm-resolver#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/npm-resolver/src/createNpmPkgId.ts b/resolving/npm-resolver/src/createNpmPkgId.ts similarity index 100% rename from packages/npm-resolver/src/createNpmPkgId.ts rename to resolving/npm-resolver/src/createNpmPkgId.ts diff --git a/packages/npm-resolver/src/fetch.ts b/resolving/npm-resolver/src/fetch.ts similarity index 100% rename from packages/npm-resolver/src/fetch.ts rename to resolving/npm-resolver/src/fetch.ts diff --git a/packages/npm-resolver/src/index.ts b/resolving/npm-resolver/src/index.ts similarity index 100% rename from packages/npm-resolver/src/index.ts rename to resolving/npm-resolver/src/index.ts diff --git a/packages/npm-resolver/src/parsePref.ts b/resolving/npm-resolver/src/parsePref.ts similarity index 100% rename from packages/npm-resolver/src/parsePref.ts rename to resolving/npm-resolver/src/parsePref.ts diff --git a/packages/npm-resolver/src/pickPackage.ts b/resolving/npm-resolver/src/pickPackage.ts similarity index 100% rename from packages/npm-resolver/src/pickPackage.ts rename to resolving/npm-resolver/src/pickPackage.ts diff --git a/packages/npm-resolver/src/pickPackageFromMeta.ts b/resolving/npm-resolver/src/pickPackageFromMeta.ts similarity index 100% rename from packages/npm-resolver/src/pickPackageFromMeta.ts rename to resolving/npm-resolver/src/pickPackageFromMeta.ts diff --git a/packages/npm-resolver/src/toRaw.ts b/resolving/npm-resolver/src/toRaw.ts similarity index 100% rename from packages/npm-resolver/src/toRaw.ts rename to resolving/npm-resolver/src/toRaw.ts diff --git a/packages/npm-resolver/src/workspacePrefToNpm.ts b/resolving/npm-resolver/src/workspacePrefToNpm.ts similarity index 100% rename from packages/npm-resolver/src/workspacePrefToNpm.ts rename to resolving/npm-resolver/src/workspacePrefToNpm.ts diff --git a/packages/npm-resolver/test/fixtures/JSON.json b/resolving/npm-resolver/test/fixtures/JSON.json similarity index 100% rename from packages/npm-resolver/test/fixtures/JSON.json rename to resolving/npm-resolver/test/fixtures/JSON.json diff --git a/packages/npm-resolver/test/fixtures/bad-dates.json b/resolving/npm-resolver/test/fixtures/bad-dates.json similarity index 100% rename from packages/npm-resolver/test/fixtures/bad-dates.json rename to resolving/npm-resolver/test/fixtures/bad-dates.json diff --git a/packages/npm-resolver/test/fixtures/broken-integrity.json b/resolving/npm-resolver/test/fixtures/broken-integrity.json similarity index 100% rename from packages/npm-resolver/test/fixtures/broken-integrity.json rename to resolving/npm-resolver/test/fixtures/broken-integrity.json diff --git a/packages/npm-resolver/test/fixtures/is-positive-broken.json b/resolving/npm-resolver/test/fixtures/is-positive-broken.json similarity index 100% rename from packages/npm-resolver/test/fixtures/is-positive-broken.json rename to resolving/npm-resolver/test/fixtures/is-positive-broken.json diff --git a/packages/npm-resolver/test/fixtures/is-positive-full.json b/resolving/npm-resolver/test/fixtures/is-positive-full.json similarity index 100% rename from packages/npm-resolver/test/fixtures/is-positive-full.json rename to resolving/npm-resolver/test/fixtures/is-positive-full.json diff --git a/packages/npm-resolver/test/fixtures/is-positive-with-deprecated.json b/resolving/npm-resolver/test/fixtures/is-positive-with-deprecated.json similarity index 100% rename from packages/npm-resolver/test/fixtures/is-positive-with-deprecated.json rename to resolving/npm-resolver/test/fixtures/is-positive-with-deprecated.json diff --git a/packages/npm-resolver/test/fixtures/is-positive.json b/resolving/npm-resolver/test/fixtures/is-positive.json similarity index 100% rename from packages/npm-resolver/test/fixtures/is-positive.json rename to resolving/npm-resolver/test/fixtures/is-positive.json diff --git a/packages/npm-resolver/test/fixtures/malformed.json b/resolving/npm-resolver/test/fixtures/malformed.json similarity index 100% rename from packages/npm-resolver/test/fixtures/malformed.json rename to resolving/npm-resolver/test/fixtures/malformed.json diff --git a/packages/npm-resolver/test/fixtures/sindresorhus-is.json b/resolving/npm-resolver/test/fixtures/sindresorhus-is.json similarity index 100% rename from packages/npm-resolver/test/fixtures/sindresorhus-is.json rename to resolving/npm-resolver/test/fixtures/sindresorhus-is.json diff --git a/packages/npm-resolver/test/index.ts b/resolving/npm-resolver/test/index.ts similarity index 100% rename from packages/npm-resolver/test/index.ts rename to resolving/npm-resolver/test/index.ts diff --git a/packages/npm-resolver/test/publishedBy.test.ts b/resolving/npm-resolver/test/publishedBy.test.ts similarity index 100% rename from packages/npm-resolver/test/publishedBy.test.ts rename to resolving/npm-resolver/test/publishedBy.test.ts diff --git a/packages/npm-resolver/test/workspacePrefToNpm.test.ts b/resolving/npm-resolver/test/workspacePrefToNpm.test.ts similarity index 100% rename from packages/npm-resolver/test/workspacePrefToNpm.test.ts rename to resolving/npm-resolver/test/workspacePrefToNpm.test.ts diff --git a/packages/npm-resolver/tsconfig.json b/resolving/npm-resolver/tsconfig.json similarity index 57% rename from packages/npm-resolver/tsconfig.json rename to resolving/npm-resolver/tsconfig.json index e94db4fe11..dc487b9b56 100644 --- a/packages/npm-resolver/tsconfig.json +++ b/resolving/npm-resolver/tsconfig.json @@ -9,32 +9,32 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../fs/graceful-fs" + }, + { + "path": "../../network/fetch" + }, + { + "path": "../../network/fetching-types" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, { "path": "../../privatePackages/test-fixtures" }, { - "path": "../core-loggers" - }, - { - "path": "../error" - }, - { - "path": "../fetch" - }, - { - "path": "../fetching-types" - }, - { - "path": "../graceful-fs" - }, - { - "path": "../resolve-workspace-range" + "path": "../../workspace/resolve-workspace-range" }, { "path": "../resolver-base" - }, - { - "path": "../types" } ] } diff --git a/packages/plugin-commands-script-runners/tsconfig.lint.json b/resolving/npm-resolver/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-script-runners/tsconfig.lint.json rename to resolving/npm-resolver/tsconfig.lint.json diff --git a/packages/resolver-base/CHANGELOG.md b/resolving/resolver-base/CHANGELOG.md similarity index 100% rename from packages/resolver-base/CHANGELOG.md rename to resolving/resolver-base/CHANGELOG.md diff --git a/packages/resolver-base/README.md b/resolving/resolver-base/README.md similarity index 100% rename from packages/resolver-base/README.md rename to resolving/resolver-base/README.md diff --git a/packages/resolver-base/package.json b/resolving/resolver-base/package.json similarity index 83% rename from packages/resolver-base/package.json rename to resolving/resolver-base/package.json index 676e16b0df..85dd58a94d 100644 --- a/packages/resolver-base/package.json +++ b/resolving/resolver-base/package.json @@ -15,7 +15,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/resolver-base", + "repository": "https://github.com/pnpm/pnpm/blob/main/resolving/resolver-base", "keywords": [ "pnpm7", "pnpm", @@ -25,7 +25,7 @@ "node": ">=14.6" }, "license": "MIT", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/resolver-base#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/resolving/resolver-base#readme", "dependencies": { "@pnpm/types": "workspace:*" }, diff --git a/packages/resolver-base/src/index.ts b/resolving/resolver-base/src/index.ts similarity index 100% rename from packages/resolver-base/src/index.ts rename to resolving/resolver-base/src/index.ts diff --git a/resolving/resolver-base/tsconfig.json b/resolving/resolver-base/tsconfig.json new file mode 100644 index 0000000000..4934a75de4 --- /dev/null +++ b/resolving/resolver-base/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + } + ] +} diff --git a/packages/plugin-commands-server/tsconfig.lint.json b/resolving/resolver-base/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-server/tsconfig.lint.json rename to resolving/resolver-base/tsconfig.lint.json diff --git a/packages/tarball-resolver/CHANGELOG.md b/resolving/tarball-resolver/CHANGELOG.md similarity index 100% rename from packages/tarball-resolver/CHANGELOG.md rename to resolving/tarball-resolver/CHANGELOG.md diff --git a/packages/tarball-resolver/README.md b/resolving/tarball-resolver/README.md similarity index 100% rename from packages/tarball-resolver/README.md rename to resolving/tarball-resolver/README.md diff --git a/packages/tarball-resolver/example.js b/resolving/tarball-resolver/example.js similarity index 100% rename from packages/tarball-resolver/example.js rename to resolving/tarball-resolver/example.js diff --git a/packages/write-project-manifest/jest.config.js b/resolving/tarball-resolver/jest.config.js similarity index 100% rename from packages/write-project-manifest/jest.config.js rename to resolving/tarball-resolver/jest.config.js diff --git a/packages/tarball-resolver/package.json b/resolving/tarball-resolver/package.json similarity index 83% rename from packages/tarball-resolver/package.json rename to resolving/tarball-resolver/package.json index 50ccb7a17d..e4e0e6ed5a 100644 --- a/packages/tarball-resolver/package.json +++ b/resolving/tarball-resolver/package.json @@ -19,12 +19,12 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/tarball-resolver", + "repository": "https://github.com/pnpm/pnpm/blob/main/resolving/tarball-resolver", "license": "MIT", "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/tarball-resolver#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/resolving/tarball-resolver#readme", "dependencies": { "@pnpm/resolver-base": "workspace:*" }, diff --git a/packages/tarball-resolver/src/index.ts b/resolving/tarball-resolver/src/index.ts similarity index 100% rename from packages/tarball-resolver/src/index.ts rename to resolving/tarball-resolver/src/index.ts diff --git a/packages/tarball-resolver/test/index.ts b/resolving/tarball-resolver/test/index.ts similarity index 100% rename from packages/tarball-resolver/test/index.ts rename to resolving/tarball-resolver/test/index.ts diff --git a/packages/tarball-resolver/tsconfig.json b/resolving/tarball-resolver/tsconfig.json similarity index 100% rename from packages/tarball-resolver/tsconfig.json rename to resolving/tarball-resolver/tsconfig.json diff --git a/packages/plugin-commands-store/tsconfig.lint.json b/resolving/tarball-resolver/tsconfig.lint.json similarity index 100% rename from packages/plugin-commands-store/tsconfig.lint.json rename to resolving/tarball-resolver/tsconfig.lint.json diff --git a/packages/dependencies-hierarchy/CHANGELOG.md b/reviewing/dependencies-hierarchy/CHANGELOG.md similarity index 100% rename from packages/dependencies-hierarchy/CHANGELOG.md rename to reviewing/dependencies-hierarchy/CHANGELOG.md diff --git a/packages/dependencies-hierarchy/README.md b/reviewing/dependencies-hierarchy/README.md similarity index 100% rename from packages/dependencies-hierarchy/README.md rename to reviewing/dependencies-hierarchy/README.md diff --git a/fixtures/has-major-outdated-deps/.gitignore b/reviewing/dependencies-hierarchy/example/.gitignore similarity index 100% rename from fixtures/has-major-outdated-deps/.gitignore rename to reviewing/dependencies-hierarchy/example/.gitignore diff --git a/packages/dependencies-hierarchy/example/index.js b/reviewing/dependencies-hierarchy/example/index.js similarity index 100% rename from packages/dependencies-hierarchy/example/index.js rename to reviewing/dependencies-hierarchy/example/index.js diff --git a/packages/dependencies-hierarchy/example/package.json b/reviewing/dependencies-hierarchy/example/package.json similarity index 100% rename from packages/dependencies-hierarchy/example/package.json rename to reviewing/dependencies-hierarchy/example/package.json diff --git a/packages/dependencies-hierarchy/example/pnpm-lock.yaml b/reviewing/dependencies-hierarchy/example/pnpm-lock.yaml similarity index 100% rename from packages/dependencies-hierarchy/example/pnpm-lock.yaml rename to reviewing/dependencies-hierarchy/example/pnpm-lock.yaml diff --git a/packages/dependencies-hierarchy/example/pnpm-workspace.yaml b/reviewing/dependencies-hierarchy/example/pnpm-workspace.yaml similarity index 100% rename from packages/dependencies-hierarchy/example/pnpm-workspace.yaml rename to reviewing/dependencies-hierarchy/example/pnpm-workspace.yaml diff --git a/packages/hooks.read-package-hook/jest.config.js b/reviewing/dependencies-hierarchy/jest.config.js similarity index 100% rename from packages/hooks.read-package-hook/jest.config.js rename to reviewing/dependencies-hierarchy/jest.config.js diff --git a/packages/dependencies-hierarchy/package.json b/reviewing/dependencies-hierarchy/package.json similarity index 86% rename from packages/dependencies-hierarchy/package.json rename to reviewing/dependencies-hierarchy/package.json index 7a6e37a766..14f587d4a0 100644 --- a/packages/dependencies-hierarchy/package.json +++ b/reviewing/dependencies-hierarchy/package.json @@ -18,7 +18,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/dependencies-hierarchy", + "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/dependencies-hierarchy", "keywords": [ "pnpm7", "hierarchy", @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/dependencies-hierarchy#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/dependencies-hierarchy#readme", "dependencies": { "@pnpm/lockfile-file": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", @@ -46,6 +46,7 @@ }, "devDependencies": { "@pnpm/constants": "workspace:*", + "@pnpm/test-fixtures": "workspace:*", "@types/normalize-path": "^3.0.0", "dependencies-hierarchy": "workspace:*" }, diff --git a/packages/dependencies-hierarchy/src/index.ts b/reviewing/dependencies-hierarchy/src/index.ts similarity index 100% rename from packages/dependencies-hierarchy/src/index.ts rename to reviewing/dependencies-hierarchy/src/index.ts diff --git a/packages/dependencies-hierarchy/test/circularTree.json b/reviewing/dependencies-hierarchy/test/circularTree.json similarity index 100% rename from packages/dependencies-hierarchy/test/circularTree.json rename to reviewing/dependencies-hierarchy/test/circularTree.json diff --git a/packages/dependencies-hierarchy/test/index.ts b/reviewing/dependencies-hierarchy/test/index.ts similarity index 95% rename from packages/dependencies-hierarchy/test/index.ts rename to reviewing/dependencies-hierarchy/test/index.ts index 32ff52e03c..161a98c8de 100644 --- a/packages/dependencies-hierarchy/test/index.ts +++ b/reviewing/dependencies-hierarchy/test/index.ts @@ -1,18 +1,19 @@ /// import path from 'path' import { WANTED_LOCKFILE } from '@pnpm/constants' +import { fixtures } from '@pnpm/test-fixtures' import { buildDependenciesHierarchy, PackageNode } from 'dependencies-hierarchy' -const fixtures = path.join(__dirname, '../../../fixtures') -const generalFixture = path.join(fixtures, 'general') -const withPeerFixture = path.join(fixtures, 'with-peer') -const circularFixture = path.join(fixtures, 'circular') -const withFileDepFixture = path.join(fixtures, 'with-file-dep') -const withNonPackageDepFixture = path.join(fixtures, 'with-non-package-dep') -const withLinksOnlyFixture = path.join(fixtures, 'fixtureWithLinks/with-links-only') -const withUnsavedDepsFixture = path.join(fixtures, 'with-unsaved-deps') +const f = fixtures(__dirname) +const generalFixture = f.find('general') +const withPeerFixture = f.find('with-peer') +const circularFixture = f.find('circular') +const withFileDepFixture = f.find('with-file-dep') +const withNonPackageDepFixture = f.find('with-non-package-dep') +const withLinksOnlyFixture = f.find('fixtureWithLinks/with-links-only') +const withUnsavedDepsFixture = f.find('with-unsaved-deps') const fixtureMonorepo = path.join(__dirname, '..', 'fixtureMonorepo') -const withAliasedDepFixture = path.join(fixtures, 'with-aliased-dep') +const withAliasedDepFixture = f.find('with-aliased-dep') test('one package depth 0', async () => { const tree = await buildDependenciesHierarchy([generalFixture], { depth: 0, lockfileDir: generalFixture }) @@ -370,7 +371,7 @@ test('on a package that has only links', async () => { isPeer: false, isSkipped: false, name: 'general', - path: path.join(fixtures, 'fixtureWithLinks/general'), + path: path.join(f.find('fixtureWithLinks'), 'general'), version: 'link:../general', }, ], diff --git a/reviewing/dependencies-hierarchy/tsconfig.json b/reviewing/dependencies-hierarchy/tsconfig.json new file mode 100644 index 0000000000..5833065f59 --- /dev/null +++ b/reviewing/dependencies-hierarchy/tsconfig.json @@ -0,0 +1,43 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../config/normalize-registries" + }, + { + "path": "../../fs/read-modules-dir" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/modules-yaml" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../privatePackages/test-fixtures" + } + ] +} diff --git a/packages/pnpm/tsconfig.lint.json b/reviewing/dependencies-hierarchy/tsconfig.lint.json similarity index 100% rename from packages/pnpm/tsconfig.lint.json rename to reviewing/dependencies-hierarchy/tsconfig.lint.json diff --git a/packages/license-scanner/README.md b/reviewing/license-scanner/README.md similarity index 100% rename from packages/license-scanner/README.md rename to reviewing/license-scanner/README.md diff --git a/packages/license-scanner/jest.config.js b/reviewing/license-scanner/jest.config.js similarity index 100% rename from packages/license-scanner/jest.config.js rename to reviewing/license-scanner/jest.config.js diff --git a/packages/license-scanner/package.json b/reviewing/license-scanner/package.json similarity index 90% rename from packages/license-scanner/package.json rename to reviewing/license-scanner/package.json index d1cb925f84..16776c5d76 100644 --- a/packages/license-scanner/package.json +++ b/reviewing/license-scanner/package.json @@ -21,7 +21,7 @@ "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/license-scanner", + "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/license-scanner", "keywords": [ "pnpm7", "pnpm", @@ -31,7 +31,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/license-scanner#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/license-scanner#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/license-scanner/src/getPkgInfo.ts b/reviewing/license-scanner/src/getPkgInfo.ts similarity index 100% rename from packages/license-scanner/src/getPkgInfo.ts rename to reviewing/license-scanner/src/getPkgInfo.ts diff --git a/packages/license-scanner/src/index.ts b/reviewing/license-scanner/src/index.ts similarity index 100% rename from packages/license-scanner/src/index.ts rename to reviewing/license-scanner/src/index.ts diff --git a/packages/license-scanner/src/licenses.ts b/reviewing/license-scanner/src/licenses.ts similarity index 100% rename from packages/license-scanner/src/licenses.ts rename to reviewing/license-scanner/src/licenses.ts diff --git a/packages/license-scanner/src/lockfileToLicenseNodeTree.ts b/reviewing/license-scanner/src/lockfileToLicenseNodeTree.ts similarity index 100% rename from packages/license-scanner/src/lockfileToLicenseNodeTree.ts rename to reviewing/license-scanner/src/lockfileToLicenseNodeTree.ts diff --git a/packages/license-scanner/test/getPkgInfo.spec.ts b/reviewing/license-scanner/test/getPkgInfo.spec.ts similarity index 100% rename from packages/license-scanner/test/getPkgInfo.spec.ts rename to reviewing/license-scanner/test/getPkgInfo.spec.ts diff --git a/packages/license-scanner/test/licenses.spec.ts b/reviewing/license-scanner/test/licenses.spec.ts similarity index 100% rename from packages/license-scanner/test/licenses.spec.ts rename to reviewing/license-scanner/test/licenses.spec.ts diff --git a/reviewing/license-scanner/tsconfig.json b/reviewing/license-scanner/tsconfig.json new file mode 100644 index 0000000000..6fc1167378 --- /dev/null +++ b/reviewing/license-scanner/tsconfig.json @@ -0,0 +1,49 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../config/package-is-installable" + }, + { + "path": "../../fetching/directory-fetcher" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../lockfile/lockfile-walker" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../store/cafs" + } + ] +} diff --git a/packages/pnpmfile/tsconfig.lint.json b/reviewing/license-scanner/tsconfig.lint.json similarity index 100% rename from packages/pnpmfile/tsconfig.lint.json rename to reviewing/license-scanner/tsconfig.lint.json diff --git a/packages/list/CHANGELOG.md b/reviewing/list/CHANGELOG.md similarity index 100% rename from packages/list/CHANGELOG.md rename to reviewing/list/CHANGELOG.md diff --git a/packages/list/README.md b/reviewing/list/README.md similarity index 100% rename from packages/list/README.md rename to reviewing/list/README.md diff --git a/fixtures/has-not-outdated-deps/.gitignore b/reviewing/list/example/.gitignore similarity index 100% rename from fixtures/has-not-outdated-deps/.gitignore rename to reviewing/list/example/.gitignore diff --git a/packages/list/example/index.js b/reviewing/list/example/index.js similarity index 100% rename from packages/list/example/index.js rename to reviewing/list/example/index.js diff --git a/packages/list/example/package.json b/reviewing/list/example/package.json similarity index 100% rename from packages/list/example/package.json rename to reviewing/list/example/package.json diff --git a/packages/list/example/pnpm-lock.yaml b/reviewing/list/example/pnpm-lock.yaml similarity index 100% rename from packages/list/example/pnpm-lock.yaml rename to reviewing/list/example/pnpm-lock.yaml diff --git a/packages/list/example/pnpm-workspace.yaml b/reviewing/list/example/pnpm-workspace.yaml similarity index 100% rename from packages/list/example/pnpm-workspace.yaml rename to reviewing/list/example/pnpm-workspace.yaml diff --git a/packages/list/jest.config.js b/reviewing/list/jest.config.js similarity index 100% rename from packages/list/jest.config.js rename to reviewing/list/jest.config.js diff --git a/packages/list/package.json b/reviewing/list/package.json similarity index 89% rename from packages/list/package.json rename to reviewing/list/package.json index 10ba95a8e5..5a76677f7e 100644 --- a/packages/list/package.json +++ b/reviewing/list/package.json @@ -18,7 +18,7 @@ "test": "pnpm run compile && pnpm run _test", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/list", + "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/list", "keywords": [ "pnpm7", "pnpm", @@ -32,7 +32,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/list#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/list#readme", "dependencies": { "@pnpm/matcher": "workspace:*", "@pnpm/npm-package-arg": "^1.0.0", @@ -49,6 +49,7 @@ }, "devDependencies": { "@pnpm/list": "workspace:*", + "@pnpm/test-fixtures": "workspace:*", "@types/archy": "0.0.32", "@types/ramda": "0.28.15", "@types/semver": "7.3.13" diff --git a/packages/list/pnpm-lock.yaml b/reviewing/list/pnpm-lock.yaml similarity index 100% rename from packages/list/pnpm-lock.yaml rename to reviewing/list/pnpm-lock.yaml diff --git a/packages/list/src/createPackagesSearcher.ts b/reviewing/list/src/createPackagesSearcher.ts similarity index 100% rename from packages/list/src/createPackagesSearcher.ts rename to reviewing/list/src/createPackagesSearcher.ts diff --git a/packages/list/src/getPkgInfo.ts b/reviewing/list/src/getPkgInfo.ts similarity index 100% rename from packages/list/src/getPkgInfo.ts rename to reviewing/list/src/getPkgInfo.ts diff --git a/packages/list/src/index.ts b/reviewing/list/src/index.ts similarity index 100% rename from packages/list/src/index.ts rename to reviewing/list/src/index.ts diff --git a/packages/list/src/readPkg.ts b/reviewing/list/src/readPkg.ts similarity index 100% rename from packages/list/src/readPkg.ts rename to reviewing/list/src/readPkg.ts diff --git a/packages/list/src/renderJson.ts b/reviewing/list/src/renderJson.ts similarity index 100% rename from packages/list/src/renderJson.ts rename to reviewing/list/src/renderJson.ts diff --git a/packages/list/src/renderParseable.ts b/reviewing/list/src/renderParseable.ts similarity index 100% rename from packages/list/src/renderParseable.ts rename to reviewing/list/src/renderParseable.ts diff --git a/packages/list/src/renderTree.ts b/reviewing/list/src/renderTree.ts similarity index 100% rename from packages/list/src/renderTree.ts rename to reviewing/list/src/renderTree.ts diff --git a/packages/list/src/types.ts b/reviewing/list/src/types.ts similarity index 100% rename from packages/list/src/types.ts rename to reviewing/list/src/types.ts diff --git a/packages/list/test/createPackagesSearcher.spec.ts b/reviewing/list/test/createPackagesSearcher.spec.ts similarity index 100% rename from packages/list/test/createPackagesSearcher.spec.ts rename to reviewing/list/test/createPackagesSearcher.spec.ts diff --git a/packages/list/test/index.ts b/reviewing/list/test/index.ts similarity index 96% rename from packages/list/test/index.ts rename to reviewing/list/test/index.ts index 6d5ed0282b..1ff7041ff6 100644 --- a/packages/list/test/index.ts +++ b/reviewing/list/test/index.ts @@ -1,6 +1,7 @@ /// import path from 'path' import { list, listForPackages } from '@pnpm/list' +import { fixtures } from '@pnpm/test-fixtures' import chalk from 'chalk' import cliColumns from 'cli-columns' import { renderTree } from '../lib/renderTree' @@ -20,16 +21,16 @@ const UNSAVED_DEPENDENCIES = chalk.cyanBright('not saved (you should add these d const highlighted = chalk.bold const boldHighlighted = highlighted.underline -const fixtures = path.join(__dirname, '../../../fixtures') -const fixture = path.join(fixtures, 'fixture') -const fixtureWithNoPkgNameAndNoVersion = path.join(fixtures, 'fixture-with-no-pkg-name-and-no-version') -const fixtureWithNoPkgVersion = path.join(fixtures, 'fixture-with-no-pkg-version') -const fixtureWithExternalLockfile = path.join(fixtures, 'fixture-with-external-shrinkwrap', 'pkg') -const workspaceWith2Pkgs = path.join(fixtures, 'workspace-with-2-pkgs') -const workspaceWithDifferentDeps = path.join(fixtures, 'workspace-with-different-deps') -const workspaceWithPrivatePkgs = path.join(fixtures, 'workspace-with-private-pkgs') -const emptyFixture = path.join(fixtures, 'empty') -const fixtureWithAliasedDep = path.join(fixtures, 'with-aliased-dep') +const f = fixtures(__dirname) +const fixture = f.find('fixture') +const fixtureWithNoPkgNameAndNoVersion = f.find('fixture-with-no-pkg-name-and-no-version') +const fixtureWithNoPkgVersion = f.find('fixture-with-no-pkg-version') +const fixtureWithExternalLockfile = path.join(f.find('fixture-with-external-shrinkwrap'), 'pkg') +const workspaceWith2Pkgs = f.find('workspace-with-2-pkgs') +const workspaceWithDifferentDeps = f.find('workspace-with-different-deps') +const workspaceWithPrivatePkgs = f.find('workspace-with-private-pkgs') +const emptyFixture = f.find('empty') +const fixtureWithAliasedDep = f.find('with-aliased-dep') test('list all deps of a package that has an external lockfile', async () => { expect(await list([fixtureWithExternalLockfile], { @@ -767,7 +768,7 @@ foo ${VERSION_CLR('1.0.0')} }) test('peer dependencies are marked', async () => { - const fixture = path.join(fixtures, 'with-peer') + const fixture = f.find('with-peer') const output = await list([fixture], { depth: 1, lockfileDir: fixture }) expect(output).toBe(`${LEGEND} @@ -784,7 +785,7 @@ ajv-keywords ${VERSION_CLR('3.4.1')} }) test('peer dependencies are marked when searching', async () => { - const fixture = path.join(fixtures, 'with-peer') + const fixture = f.find('with-peer') const output = await listForPackages(['ajv'], [fixture], { depth: 1, lockfileDir: fixture }) expect(output).toBe(`${LEGEND} diff --git a/packages/list/test/pnpm-workspace.yaml b/reviewing/list/test/pnpm-workspace.yaml similarity index 100% rename from packages/list/test/pnpm-workspace.yaml rename to reviewing/list/test/pnpm-workspace.yaml diff --git a/packages/list/tsconfig.json b/reviewing/list/tsconfig.json similarity index 54% rename from packages/list/tsconfig.json rename to reviewing/list/tsconfig.json index 85aeb5d1af..9b60b975b6 100644 --- a/packages/list/tsconfig.json +++ b/reviewing/list/tsconfig.json @@ -9,20 +9,23 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../config/matcher" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, + { + "path": "../../privatePackages/test-fixtures" + }, { "path": "../dependencies-hierarchy" - }, - { - "path": "../matcher" - }, - { - "path": "../read-package-json" - }, - { - "path": "../read-project-manifest" - }, - { - "path": "../types" } ] } diff --git a/packages/prepare-package/tsconfig.lint.json b/reviewing/list/tsconfig.lint.json similarity index 100% rename from packages/prepare-package/tsconfig.lint.json rename to reviewing/list/tsconfig.lint.json diff --git a/packages/outdated/CHANGELOG.md b/reviewing/outdated/CHANGELOG.md similarity index 100% rename from packages/outdated/CHANGELOG.md rename to reviewing/outdated/CHANGELOG.md diff --git a/packages/outdated/README.md b/reviewing/outdated/README.md similarity index 100% rename from packages/outdated/README.md rename to reviewing/outdated/README.md diff --git a/packages/outdated/jest.config.js b/reviewing/outdated/jest.config.js similarity index 100% rename from packages/outdated/jest.config.js rename to reviewing/outdated/jest.config.js diff --git a/packages/outdated/package.json b/reviewing/outdated/package.json similarity index 87% rename from packages/outdated/package.json rename to reviewing/outdated/package.json index 4d75001f3a..6a397aafe0 100644 --- a/packages/outdated/package.json +++ b/reviewing/outdated/package.json @@ -17,11 +17,11 @@ "prepublishOnly": "pnpm run compile", "registry-mock": "registry-mock", "test:jest": "jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7771 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7779 pnpm run test:e2e", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/outdated", + "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/outdated", "keywords": [ "pnpm7", "pnpm", @@ -31,7 +31,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/outdated#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/outdated#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/outdated/src/createManifestGetter.ts b/reviewing/outdated/src/createManifestGetter.ts similarity index 100% rename from packages/outdated/src/createManifestGetter.ts rename to reviewing/outdated/src/createManifestGetter.ts diff --git a/packages/outdated/src/index.ts b/reviewing/outdated/src/index.ts similarity index 100% rename from packages/outdated/src/index.ts rename to reviewing/outdated/src/index.ts diff --git a/packages/outdated/src/outdated.ts b/reviewing/outdated/src/outdated.ts similarity index 100% rename from packages/outdated/src/outdated.ts rename to reviewing/outdated/src/outdated.ts diff --git a/packages/outdated/src/outdatedDepsOfProjects.ts b/reviewing/outdated/src/outdatedDepsOfProjects.ts similarity index 100% rename from packages/outdated/src/outdatedDepsOfProjects.ts rename to reviewing/outdated/src/outdatedDepsOfProjects.ts diff --git a/packages/outdated/test/getManifest.spec.ts b/reviewing/outdated/test/getManifest.spec.ts similarity index 100% rename from packages/outdated/test/getManifest.spec.ts rename to reviewing/outdated/test/getManifest.spec.ts diff --git a/packages/outdated/test/outdated.spec.ts b/reviewing/outdated/test/outdated.spec.ts similarity index 100% rename from packages/outdated/test/outdated.spec.ts rename to reviewing/outdated/test/outdated.spec.ts diff --git a/reviewing/outdated/tsconfig.json b/reviewing/outdated/tsconfig.json new file mode 100644 index 0000000000..46b1ac55ba --- /dev/null +++ b/reviewing/outdated/tsconfig.json @@ -0,0 +1,49 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../config/matcher" + }, + { + "path": "../../config/pick-registry-for-package" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/client" + }, + { + "path": "../../pkg-manager/modules-yaml" + }, + { + "path": "../../pkg-manifest/manifest-utils" + }, + { + "path": "../../resolving/npm-resolver" + } + ] +} diff --git a/packages/prune-lockfile/tsconfig.lint.json b/reviewing/outdated/tsconfig.lint.json similarity index 100% rename from packages/prune-lockfile/tsconfig.lint.json rename to reviewing/outdated/tsconfig.lint.json diff --git a/packages/plugin-commands-licenses/README.md b/reviewing/plugin-commands-licenses/README.md similarity index 100% rename from packages/plugin-commands-licenses/README.md rename to reviewing/plugin-commands-licenses/README.md diff --git a/packages/plugin-commands-outdated/jest.config.js b/reviewing/plugin-commands-licenses/jest.config.js similarity index 100% rename from packages/plugin-commands-outdated/jest.config.js rename to reviewing/plugin-commands-licenses/jest.config.js diff --git a/packages/plugin-commands-licenses/package.json b/reviewing/plugin-commands-licenses/package.json similarity index 90% rename from packages/plugin-commands-licenses/package.json rename to reviewing/plugin-commands-licenses/package.json index fefc441e22..cada50722f 100644 --- a/packages/plugin-commands-licenses/package.json +++ b/reviewing/plugin-commands-licenses/package.json @@ -21,7 +21,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-licenses", + "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-licenses", "keywords": [ "pnpm7", "pnpm", @@ -31,7 +31,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-licenses#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-licenses#readme", "devDependencies": { "@pnpm/constants": "workspace:*", "@pnpm/filter-workspace-packages": "workspace:*", diff --git a/packages/plugin-commands-licenses/src/index.ts b/reviewing/plugin-commands-licenses/src/index.ts similarity index 100% rename from packages/plugin-commands-licenses/src/index.ts rename to reviewing/plugin-commands-licenses/src/index.ts diff --git a/packages/plugin-commands-licenses/src/licenses.ts b/reviewing/plugin-commands-licenses/src/licenses.ts similarity index 100% rename from packages/plugin-commands-licenses/src/licenses.ts rename to reviewing/plugin-commands-licenses/src/licenses.ts diff --git a/packages/plugin-commands-licenses/src/licensesList.ts b/reviewing/plugin-commands-licenses/src/licensesList.ts similarity index 100% rename from packages/plugin-commands-licenses/src/licensesList.ts rename to reviewing/plugin-commands-licenses/src/licensesList.ts diff --git a/packages/plugin-commands-licenses/src/outputRenderer.ts b/reviewing/plugin-commands-licenses/src/outputRenderer.ts similarity index 100% rename from packages/plugin-commands-licenses/src/outputRenderer.ts rename to reviewing/plugin-commands-licenses/src/outputRenderer.ts diff --git a/packages/plugin-commands-licenses/test/__snapshots__/index.ts.snap b/reviewing/plugin-commands-licenses/test/__snapshots__/index.ts.snap similarity index 100% rename from packages/plugin-commands-licenses/test/__snapshots__/index.ts.snap rename to reviewing/plugin-commands-licenses/test/__snapshots__/index.ts.snap diff --git a/packages/plugin-commands-licenses/test/fixtures/.gitignore b/reviewing/plugin-commands-licenses/test/fixtures/.gitignore similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/.gitignore rename to reviewing/plugin-commands-licenses/test/fixtures/.gitignore diff --git a/packages/plugin-commands-licenses/test/fixtures/.npmrc b/reviewing/plugin-commands-licenses/test/fixtures/.npmrc similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/.npmrc rename to reviewing/plugin-commands-licenses/test/fixtures/.npmrc diff --git a/packages/plugin-commands-licenses/test/fixtures/complex-licenses/package.json b/reviewing/plugin-commands-licenses/test/fixtures/complex-licenses/package.json similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/complex-licenses/package.json rename to reviewing/plugin-commands-licenses/test/fixtures/complex-licenses/package.json diff --git a/packages/plugin-commands-licenses/test/fixtures/complex-licenses/pnpm-lock.yaml b/reviewing/plugin-commands-licenses/test/fixtures/complex-licenses/pnpm-lock.yaml similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/complex-licenses/pnpm-lock.yaml rename to reviewing/plugin-commands-licenses/test/fixtures/complex-licenses/pnpm-lock.yaml diff --git a/packages/plugin-commands-licenses/test/fixtures/pnpm-workspace.yaml b/reviewing/plugin-commands-licenses/test/fixtures/pnpm-workspace.yaml similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/pnpm-workspace.yaml rename to reviewing/plugin-commands-licenses/test/fixtures/pnpm-workspace.yaml diff --git a/packages/plugin-commands-licenses/test/fixtures/simple-licenses/package.json b/reviewing/plugin-commands-licenses/test/fixtures/simple-licenses/package.json similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/simple-licenses/package.json rename to reviewing/plugin-commands-licenses/test/fixtures/simple-licenses/package.json diff --git a/packages/plugin-commands-licenses/test/fixtures/simple-licenses/pnpm-lock.yaml b/reviewing/plugin-commands-licenses/test/fixtures/simple-licenses/pnpm-lock.yaml similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/simple-licenses/pnpm-lock.yaml rename to reviewing/plugin-commands-licenses/test/fixtures/simple-licenses/pnpm-lock.yaml diff --git a/packages/plugin-commands-licenses/test/fixtures/with-dev-dependency/package.json b/reviewing/plugin-commands-licenses/test/fixtures/with-dev-dependency/package.json similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/with-dev-dependency/package.json rename to reviewing/plugin-commands-licenses/test/fixtures/with-dev-dependency/package.json diff --git a/packages/plugin-commands-licenses/test/fixtures/with-dev-dependency/pnpm-lock.yaml b/reviewing/plugin-commands-licenses/test/fixtures/with-dev-dependency/pnpm-lock.yaml similarity index 100% rename from packages/plugin-commands-licenses/test/fixtures/with-dev-dependency/pnpm-lock.yaml rename to reviewing/plugin-commands-licenses/test/fixtures/with-dev-dependency/pnpm-lock.yaml diff --git a/packages/plugin-commands-licenses/test/index.ts b/reviewing/plugin-commands-licenses/test/index.ts similarity index 100% rename from packages/plugin-commands-licenses/test/index.ts rename to reviewing/plugin-commands-licenses/test/index.ts diff --git a/packages/plugin-commands-licenses/test/utils/index.ts b/reviewing/plugin-commands-licenses/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-licenses/test/utils/index.ts rename to reviewing/plugin-commands-licenses/test/utils/index.ts diff --git a/reviewing/plugin-commands-licenses/tsconfig.json b/reviewing/plugin-commands-licenses/tsconfig.json new file mode 100644 index 0000000000..ffcaa41c54 --- /dev/null +++ b/reviewing/plugin-commands-licenses/tsconfig.json @@ -0,0 +1,49 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/command" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../config/config" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../pkg-manager/plugin-commands-installation" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../store/store-path" + }, + { + "path": "../../workspace/filter-workspace-packages" + }, + { + "path": "../license-scanner" + } + ] +} diff --git a/packages/read-modules-dir/tsconfig.lint.json b/reviewing/plugin-commands-licenses/tsconfig.lint.json similarity index 100% rename from packages/read-modules-dir/tsconfig.lint.json rename to reviewing/plugin-commands-licenses/tsconfig.lint.json diff --git a/packages/plugin-commands-listing/CHANGELOG.md b/reviewing/plugin-commands-listing/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-listing/CHANGELOG.md rename to reviewing/plugin-commands-listing/CHANGELOG.md diff --git a/packages/plugin-commands-listing/README.md b/reviewing/plugin-commands-listing/README.md similarity index 100% rename from packages/plugin-commands-listing/README.md rename to reviewing/plugin-commands-listing/README.md diff --git a/packages/plugin-commands-publishing/jest.config.js b/reviewing/plugin-commands-listing/jest.config.js similarity index 100% rename from packages/plugin-commands-publishing/jest.config.js rename to reviewing/plugin-commands-listing/jest.config.js diff --git a/packages/plugin-commands-listing/package.json b/reviewing/plugin-commands-listing/package.json similarity index 86% rename from packages/plugin-commands-listing/package.json rename to reviewing/plugin-commands-listing/package.json index da16ff088d..07c45ca22a 100644 --- a/packages/plugin-commands-listing/package.json +++ b/reviewing/plugin-commands-listing/package.json @@ -16,12 +16,12 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7775 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7780 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-listing", + "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-listing", "keywords": [ "pnpm7", "pnpm" @@ -30,7 +30,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-listing#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-listing#readme", "devDependencies": { "@pnpm/constants": "workspace:*", "@pnpm/filter-workspace-packages": "workspace:*", diff --git a/packages/plugin-commands-listing/src/index.ts b/reviewing/plugin-commands-listing/src/index.ts similarity index 100% rename from packages/plugin-commands-listing/src/index.ts rename to reviewing/plugin-commands-listing/src/index.ts diff --git a/packages/plugin-commands-listing/src/list.ts b/reviewing/plugin-commands-listing/src/list.ts similarity index 100% rename from packages/plugin-commands-listing/src/list.ts rename to reviewing/plugin-commands-listing/src/list.ts diff --git a/packages/plugin-commands-listing/src/ll.ts b/reviewing/plugin-commands-listing/src/ll.ts similarity index 100% rename from packages/plugin-commands-listing/src/ll.ts rename to reviewing/plugin-commands-listing/src/ll.ts diff --git a/packages/plugin-commands-listing/src/recursive.ts b/reviewing/plugin-commands-listing/src/recursive.ts similarity index 100% rename from packages/plugin-commands-listing/src/recursive.ts rename to reviewing/plugin-commands-listing/src/recursive.ts diff --git a/packages/plugin-commands-listing/src/why.ts b/reviewing/plugin-commands-listing/src/why.ts similarity index 100% rename from packages/plugin-commands-listing/src/why.ts rename to reviewing/plugin-commands-listing/src/why.ts diff --git a/packages/plugin-commands-listing/test/index.ts b/reviewing/plugin-commands-listing/test/index.ts similarity index 98% rename from packages/plugin-commands-listing/test/index.ts rename to reviewing/plugin-commands-listing/test/index.ts index 48d35d7e6d..00b5322ed0 100644 --- a/packages/plugin-commands-listing/test/index.ts +++ b/reviewing/plugin-commands-listing/test/index.ts @@ -9,7 +9,7 @@ import execa from 'execa' import stripAnsi from 'strip-ansi' import writeYamlFile from 'write-yaml-file' -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('listing packages', async () => { prepare({ diff --git a/packages/plugin-commands-listing/test/recursive.ts b/reviewing/plugin-commands-listing/test/recursive.ts similarity index 100% rename from packages/plugin-commands-listing/test/recursive.ts rename to reviewing/plugin-commands-listing/test/recursive.ts diff --git a/packages/plugin-commands-listing/test/utils/index.ts b/reviewing/plugin-commands-listing/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-listing/test/utils/index.ts rename to reviewing/plugin-commands-listing/test/utils/index.ts diff --git a/packages/plugin-commands-listing/test/why.ts b/reviewing/plugin-commands-listing/test/why.ts similarity index 100% rename from packages/plugin-commands-listing/test/why.ts rename to reviewing/plugin-commands-listing/test/why.ts diff --git a/packages/plugin-commands-listing/tsconfig.json b/reviewing/plugin-commands-listing/tsconfig.json similarity index 52% rename from packages/plugin-commands-listing/tsconfig.json rename to reviewing/plugin-commands-listing/tsconfig.json index 1dd47cc282..52088eaff4 100644 --- a/packages/plugin-commands-listing/tsconfig.json +++ b/reviewing/plugin-commands-listing/tsconfig.json @@ -9,35 +9,35 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../config/config" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/plugin-commands-installation" + }, { "path": "../../privatePackages/prepare" }, { - "path": "../cli-utils" - }, - { - "path": "../common-cli-options-help" - }, - { - "path": "../config" - }, - { - "path": "../constants" - }, - { - "path": "../error" - }, - { - "path": "../filter-workspace-packages" + "path": "../../workspace/filter-workspace-packages" }, { "path": "../list" - }, - { - "path": "../plugin-commands-installation" - }, - { - "path": "../types" } ] } diff --git a/packages/read-package-json/tsconfig.lint.json b/reviewing/plugin-commands-listing/tsconfig.lint.json similarity index 100% rename from packages/read-package-json/tsconfig.lint.json rename to reviewing/plugin-commands-listing/tsconfig.lint.json diff --git a/packages/plugin-commands-outdated/CHANGELOG.md b/reviewing/plugin-commands-outdated/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-outdated/CHANGELOG.md rename to reviewing/plugin-commands-outdated/CHANGELOG.md diff --git a/packages/plugin-commands-outdated/README.md b/reviewing/plugin-commands-outdated/README.md similarity index 100% rename from packages/plugin-commands-outdated/README.md rename to reviewing/plugin-commands-outdated/README.md diff --git a/packages/plugin-commands-rebuild/jest.config.js b/reviewing/plugin-commands-outdated/jest.config.js similarity index 100% rename from packages/plugin-commands-rebuild/jest.config.js rename to reviewing/plugin-commands-outdated/jest.config.js diff --git a/packages/plugin-commands-outdated/package.json b/reviewing/plugin-commands-outdated/package.json similarity index 89% rename from packages/plugin-commands-outdated/package.json rename to reviewing/plugin-commands-outdated/package.json index 7e6bdced34..1d1a1c9387 100644 --- a/packages/plugin-commands-outdated/package.json +++ b/reviewing/plugin-commands-outdated/package.json @@ -16,12 +16,12 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7776 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7781 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-outdated", + "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-outdated", "keywords": [ "pnpm7", "pnpm", @@ -31,7 +31,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-outdated#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-outdated#readme", "devDependencies": { "@pnpm/constants": "workspace:*", "@pnpm/filter-workspace-packages": "workspace:*", diff --git a/packages/plugin-commands-outdated/src/index.ts b/reviewing/plugin-commands-outdated/src/index.ts similarity index 100% rename from packages/plugin-commands-outdated/src/index.ts rename to reviewing/plugin-commands-outdated/src/index.ts diff --git a/packages/plugin-commands-outdated/src/outdated.ts b/reviewing/plugin-commands-outdated/src/outdated.ts similarity index 100% rename from packages/plugin-commands-outdated/src/outdated.ts rename to reviewing/plugin-commands-outdated/src/outdated.ts diff --git a/packages/plugin-commands-outdated/src/recursive.ts b/reviewing/plugin-commands-outdated/src/recursive.ts similarity index 100% rename from packages/plugin-commands-outdated/src/recursive.ts rename to reviewing/plugin-commands-outdated/src/recursive.ts diff --git a/packages/plugin-commands-outdated/src/utils.ts b/reviewing/plugin-commands-outdated/src/utils.ts similarity index 100% rename from packages/plugin-commands-outdated/src/utils.ts rename to reviewing/plugin-commands-outdated/src/utils.ts diff --git a/packages/plugin-commands-outdated/test/index.ts b/reviewing/plugin-commands-outdated/test/index.ts similarity index 100% rename from packages/plugin-commands-outdated/test/index.ts rename to reviewing/plugin-commands-outdated/test/index.ts diff --git a/packages/plugin-commands-outdated/test/recursive.ts b/reviewing/plugin-commands-outdated/test/recursive.ts similarity index 100% rename from packages/plugin-commands-outdated/test/recursive.ts rename to reviewing/plugin-commands-outdated/test/recursive.ts diff --git a/packages/plugin-commands-outdated/test/utils/index.ts b/reviewing/plugin-commands-outdated/test/utils/index.ts similarity index 100% rename from packages/plugin-commands-outdated/test/utils/index.ts rename to reviewing/plugin-commands-outdated/test/utils/index.ts diff --git a/reviewing/plugin-commands-outdated/tsconfig.json b/reviewing/plugin-commands-outdated/tsconfig.json new file mode 100644 index 0000000000..2b638def05 --- /dev/null +++ b/reviewing/plugin-commands-outdated/tsconfig.json @@ -0,0 +1,64 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/command" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../config/config" + }, + { + "path": "../../config/matcher" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/modules-yaml" + }, + { + "path": "../../pkg-manager/plugin-commands-installation" + }, + { + "path": "../../privatePackages/prepare" + }, + { + "path": "../../privatePackages/test-fixtures" + }, + { + "path": "../../resolving/default-resolver" + }, + { + "path": "../../store/store-path" + }, + { + "path": "../../workspace/filter-workspace-packages" + }, + { + "path": "../outdated" + } + ] +} diff --git a/packages/read-project-manifest/tsconfig.lint.json b/reviewing/plugin-commands-outdated/tsconfig.lint.json similarity index 100% rename from packages/read-project-manifest/tsconfig.lint.json rename to reviewing/plugin-commands-outdated/tsconfig.lint.json diff --git a/packages/cafs-types/CHANGELOG.md b/store/cafs-types/CHANGELOG.md similarity index 100% rename from packages/cafs-types/CHANGELOG.md rename to store/cafs-types/CHANGELOG.md diff --git a/packages/cafs-types/README.md b/store/cafs-types/README.md similarity index 100% rename from packages/cafs-types/README.md rename to store/cafs-types/README.md diff --git a/packages/cafs-types/package.json b/store/cafs-types/package.json similarity index 82% rename from packages/cafs-types/package.json rename to store/cafs-types/package.json index 990d8a1e33..728f3cb4f3 100644 --- a/packages/cafs-types/package.json +++ b/store/cafs-types/package.json @@ -17,7 +17,7 @@ "compile": "tsc --build && pnpm run lint --fix", "lint": "eslint src/**/*.ts" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/cafs-types", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/cafs-types", "keywords": [ "pnpm7", "pnpm", @@ -32,7 +32,7 @@ "@pnpm/types": "workspace:*", "@types/ssri": "^7.1.1" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/cafs-types#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/cafs-types#readme", "funding": "https://opencollective.com/pnpm", "exports": { ".": "./lib/index.js" diff --git a/packages/cafs-types/src/index.ts b/store/cafs-types/src/index.ts similarity index 100% rename from packages/cafs-types/src/index.ts rename to store/cafs-types/src/index.ts diff --git a/store/cafs-types/tsconfig.json b/store/cafs-types/tsconfig.json new file mode 100644 index 0000000000..4934a75de4 --- /dev/null +++ b/store/cafs-types/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + } + ] +} diff --git a/packages/read-projects-context/tsconfig.lint.json b/store/cafs-types/tsconfig.lint.json similarity index 100% rename from packages/read-projects-context/tsconfig.lint.json rename to store/cafs-types/tsconfig.lint.json diff --git a/packages/cafs/CHANGELOG.md b/store/cafs/CHANGELOG.md similarity index 100% rename from packages/cafs/CHANGELOG.md rename to store/cafs/CHANGELOG.md diff --git a/packages/cafs/README.md b/store/cafs/README.md similarity index 100% rename from packages/cafs/README.md rename to store/cafs/README.md diff --git a/packages/cafs/__fixtures__/node-gyp-6.1.0.tgz b/store/cafs/__fixtures__/node-gyp-6.1.0.tgz similarity index 100% rename from packages/cafs/__fixtures__/node-gyp-6.1.0.tgz rename to store/cafs/__fixtures__/node-gyp-6.1.0.tgz diff --git a/packages/lockfile-to-pnp/jest.config.js b/store/cafs/jest.config.js similarity index 100% rename from packages/lockfile-to-pnp/jest.config.js rename to store/cafs/jest.config.js diff --git a/packages/cafs/package.json b/store/cafs/package.json similarity index 90% rename from packages/cafs/package.json rename to store/cafs/package.json index 7aa3ba2c26..2b7d9b1ccc 100644 --- a/packages/cafs/package.json +++ b/store/cafs/package.json @@ -51,8 +51,8 @@ "lib", "!*.map" ], - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/cafs#readme", - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/cafs", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/cafs#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/cafs", "funding": "https://opencollective.com/pnpm", "exports": { ".": "./lib/index.js" diff --git a/packages/cafs/src/addFilesFromDir.ts b/store/cafs/src/addFilesFromDir.ts similarity index 100% rename from packages/cafs/src/addFilesFromDir.ts rename to store/cafs/src/addFilesFromDir.ts diff --git a/packages/cafs/src/addFilesFromTarball.ts b/store/cafs/src/addFilesFromTarball.ts similarity index 100% rename from packages/cafs/src/addFilesFromTarball.ts rename to store/cafs/src/addFilesFromTarball.ts diff --git a/packages/cafs/src/checkFilesIntegrity.ts b/store/cafs/src/checkFilesIntegrity.ts similarity index 100% rename from packages/cafs/src/checkFilesIntegrity.ts rename to store/cafs/src/checkFilesIntegrity.ts diff --git a/packages/cafs/src/getFilePathInCafs.ts b/store/cafs/src/getFilePathInCafs.ts similarity index 100% rename from packages/cafs/src/getFilePathInCafs.ts rename to store/cafs/src/getFilePathInCafs.ts diff --git a/packages/cafs/src/index.ts b/store/cafs/src/index.ts similarity index 100% rename from packages/cafs/src/index.ts rename to store/cafs/src/index.ts diff --git a/packages/cafs/src/parseJson.ts b/store/cafs/src/parseJson.ts similarity index 100% rename from packages/cafs/src/parseJson.ts rename to store/cafs/src/parseJson.ts diff --git a/packages/cafs/src/readManifestFromStore.ts b/store/cafs/src/readManifestFromStore.ts similarity index 100% rename from packages/cafs/src/readManifestFromStore.ts rename to store/cafs/src/readManifestFromStore.ts diff --git a/packages/cafs/src/writeFile.ts b/store/cafs/src/writeFile.ts similarity index 100% rename from packages/cafs/src/writeFile.ts rename to store/cafs/src/writeFile.ts diff --git a/packages/cafs/test/fixtures/colorize-semver-diff.tgz b/store/cafs/test/fixtures/colorize-semver-diff.tgz similarity index 100% rename from packages/cafs/test/fixtures/colorize-semver-diff.tgz rename to store/cafs/test/fixtures/colorize-semver-diff.tgz diff --git a/packages/cafs/test/fixtures/one-file/foo.txt b/store/cafs/test/fixtures/one-file/foo.txt similarity index 100% rename from packages/cafs/test/fixtures/one-file/foo.txt rename to store/cafs/test/fixtures/one-file/foo.txt diff --git a/packages/cafs/test/index.ts b/store/cafs/test/index.ts similarity index 100% rename from packages/cafs/test/index.ts rename to store/cafs/test/index.ts diff --git a/packages/cafs/tsconfig.json b/store/cafs/tsconfig.json similarity index 73% rename from packages/cafs/tsconfig.json rename to store/cafs/tsconfig.json index 75b90a29f8..7af3f5b773 100644 --- a/packages/cafs/tsconfig.json +++ b/store/cafs/tsconfig.json @@ -9,20 +9,20 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../fs/graceful-fs" + }, + { + "path": "../../packages/types" + }, { "path": "../cafs-types" }, - { - "path": "../fetcher-base" - }, - { - "path": "../graceful-fs" - }, { "path": "../store-controller-types" - }, - { - "path": "../types" } ] } diff --git a/packages/real-hoist/tsconfig.lint.json b/store/cafs/tsconfig.lint.json similarity index 100% rename from packages/real-hoist/tsconfig.lint.json rename to store/cafs/tsconfig.lint.json diff --git a/packages/create-cafs-store/CHANGELOG.md b/store/create-cafs-store/CHANGELOG.md similarity index 100% rename from packages/create-cafs-store/CHANGELOG.md rename to store/create-cafs-store/CHANGELOG.md diff --git a/packages/create-cafs-store/README.md b/store/create-cafs-store/README.md similarity index 100% rename from packages/create-cafs-store/README.md rename to store/create-cafs-store/README.md diff --git a/packages/network.auth-header/jest.config.js b/store/create-cafs-store/jest.config.js similarity index 100% rename from packages/network.auth-header/jest.config.js rename to store/create-cafs-store/jest.config.js diff --git a/packages/create-cafs-store/package.json b/store/create-cafs-store/package.json similarity index 89% rename from packages/create-cafs-store/package.json rename to store/create-cafs-store/package.json index affcbd11d3..b640bdcc84 100644 --- a/packages/create-cafs-store/package.json +++ b/store/create-cafs-store/package.json @@ -32,7 +32,7 @@ "directories": { "test": "test" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/create-cafs-store#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/create-cafs-store#readme", "keywords": [ "pnpm7", "store", @@ -47,7 +47,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/create-cafs-store", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/create-cafs-store", "scripts": { "start": "tsc --watch", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", diff --git a/packages/create-cafs-store/src/index.ts b/store/create-cafs-store/src/index.ts similarity index 100% rename from packages/create-cafs-store/src/index.ts rename to store/create-cafs-store/src/index.ts diff --git a/packages/create-cafs-store/tsconfig.json b/store/create-cafs-store/tsconfig.json similarity index 82% rename from packages/create-cafs-store/tsconfig.json rename to store/create-cafs-store/tsconfig.json index 46439a3a8f..748a6318a1 100644 --- a/packages/create-cafs-store/tsconfig.json +++ b/store/create-cafs-store/tsconfig.json @@ -9,6 +9,12 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../fs/indexed-pkg-importer" + }, { "path": "../../privatePackages/prepare" }, @@ -18,12 +24,6 @@ { "path": "../cafs-types" }, - { - "path": "../fetcher-base" - }, - { - "path": "../fs.indexed-pkg-importer" - }, { "path": "../store-controller-types" } diff --git a/packages/remove-bins/tsconfig.lint.json b/store/create-cafs-store/tsconfig.lint.json similarity index 100% rename from packages/remove-bins/tsconfig.lint.json rename to store/create-cafs-store/tsconfig.lint.json diff --git a/packages/package-store/CHANGELOG.md b/store/package-store/CHANGELOG.md similarity index 100% rename from packages/package-store/CHANGELOG.md rename to store/package-store/CHANGELOG.md diff --git a/packages/package-store/README.md b/store/package-store/README.md similarity index 100% rename from packages/package-store/README.md rename to store/package-store/README.md diff --git a/packages/package-store/jest.config.js b/store/package-store/jest.config.js similarity index 100% rename from packages/package-store/jest.config.js rename to store/package-store/jest.config.js diff --git a/packages/package-store/package.json b/store/package-store/package.json similarity index 91% rename from packages/package-store/package.json rename to store/package-store/package.json index b61e3e320b..66fc3d3342 100644 --- a/packages/package-store/package.json +++ b/store/package-store/package.json @@ -39,7 +39,7 @@ "directories": { "test": "test" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/package-store#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/package-store#readme", "keywords": [ "pnpm7", "store", @@ -54,7 +54,7 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/package-store", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/package-store", "scripts": { "start": "tsc --watch", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", diff --git a/packages/package-store/src/index.ts b/store/package-store/src/index.ts similarity index 100% rename from packages/package-store/src/index.ts rename to store/package-store/src/index.ts diff --git a/packages/package-store/src/storeController/index.ts b/store/package-store/src/storeController/index.ts similarity index 100% rename from packages/package-store/src/storeController/index.ts rename to store/package-store/src/storeController/index.ts diff --git a/packages/package-store/src/storeController/prune.ts b/store/package-store/src/storeController/prune.ts similarity index 100% rename from packages/package-store/src/storeController/prune.ts rename to store/package-store/src/storeController/prune.ts diff --git a/packages/package-store/test/index.ts b/store/package-store/test/index.ts similarity index 100% rename from packages/package-store/test/index.ts rename to store/package-store/test/index.ts diff --git a/packages/package-store/tsconfig.json b/store/package-store/tsconfig.json similarity index 67% rename from packages/package-store/tsconfig.json rename to store/package-store/tsconfig.json index 0cbd22b69b..b083fc0f0e 100644 --- a/packages/package-store/tsconfig.json +++ b/store/package-store/tsconfig.json @@ -9,32 +9,32 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/client" + }, + { + "path": "../../pkg-manager/package-requester" + }, { "path": "../../privatePackages/prepare" }, + { + "path": "../../resolving/resolver-base" + }, { "path": "../cafs" }, - { - "path": "../client" - }, { "path": "../create-cafs-store" }, - { - "path": "../fetcher-base" - }, - { - "path": "../package-requester" - }, - { - "path": "../resolver-base" - }, { "path": "../store-controller-types" - }, - { - "path": "../types" } ] } diff --git a/packages/resolve-dependencies/tsconfig.lint.json b/store/package-store/tsconfig.lint.json similarity index 100% rename from packages/resolve-dependencies/tsconfig.lint.json rename to store/package-store/tsconfig.lint.json diff --git a/packages/plugin-commands-server/CHANGELOG.md b/store/plugin-commands-server/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-server/CHANGELOG.md rename to store/plugin-commands-server/CHANGELOG.md diff --git a/packages/plugin-commands-server/README.md b/store/plugin-commands-server/README.md similarity index 100% rename from packages/plugin-commands-server/README.md rename to store/plugin-commands-server/README.md diff --git a/packages/plugin-commands-server/package.json b/store/plugin-commands-server/package.json similarity index 89% rename from packages/plugin-commands-server/package.json rename to store/plugin-commands-server/package.json index 5681e5a978..b5d64b97ab 100644 --- a/packages/plugin-commands-server/package.json +++ b/store/plugin-commands-server/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-server", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/plugin-commands-server", "keywords": [ "pnpm7", "pnpm", @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-server#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/plugin-commands-server#readme", "devDependencies": { "@pnpm/plugin-commands-server": "workspace:*", "@types/is-windows": "^1.0.0", diff --git a/packages/plugin-commands-server/src/index.ts b/store/plugin-commands-server/src/index.ts similarity index 100% rename from packages/plugin-commands-server/src/index.ts rename to store/plugin-commands-server/src/index.ts diff --git a/packages/plugin-commands-server/src/server.ts b/store/plugin-commands-server/src/server.ts similarity index 100% rename from packages/plugin-commands-server/src/server.ts rename to store/plugin-commands-server/src/server.ts diff --git a/packages/plugin-commands-server/src/start.ts b/store/plugin-commands-server/src/start.ts similarity index 100% rename from packages/plugin-commands-server/src/start.ts rename to store/plugin-commands-server/src/start.ts diff --git a/packages/plugin-commands-server/src/status.ts b/store/plugin-commands-server/src/status.ts similarity index 100% rename from packages/plugin-commands-server/src/status.ts rename to store/plugin-commands-server/src/status.ts diff --git a/packages/plugin-commands-server/src/stop.ts b/store/plugin-commands-server/src/stop.ts similarity index 100% rename from packages/plugin-commands-server/src/stop.ts rename to store/plugin-commands-server/src/stop.ts diff --git a/packages/plugin-commands-server/tsconfig.json b/store/plugin-commands-server/tsconfig.json similarity index 67% rename from packages/plugin-commands-server/tsconfig.json rename to store/plugin-commands-server/tsconfig.json index 542f48a733..d3318efc4b 100644 --- a/packages/plugin-commands-server/tsconfig.json +++ b/store/plugin-commands-server/tsconfig.json @@ -10,19 +10,19 @@ ], "references": [ { - "path": "../cli-meta" + "path": "../../cli/cli-meta" }, { - "path": "../cli-utils" + "path": "../../cli/cli-utils" }, { - "path": "../common-cli-options-help" + "path": "../../cli/common-cli-options-help" }, { - "path": "../config" + "path": "../../config/config" }, { - "path": "../error" + "path": "../../packages/error" }, { "path": "../server" diff --git a/packages/resolve-workspace-range/tsconfig.lint.json b/store/plugin-commands-server/tsconfig.lint.json similarity index 100% rename from packages/resolve-workspace-range/tsconfig.lint.json rename to store/plugin-commands-server/tsconfig.lint.json diff --git a/packages/plugin-commands-store/CHANGELOG.md b/store/plugin-commands-store/CHANGELOG.md similarity index 100% rename from packages/plugin-commands-store/CHANGELOG.md rename to store/plugin-commands-store/CHANGELOG.md diff --git a/packages/plugin-commands-store/README.md b/store/plugin-commands-store/README.md similarity index 100% rename from packages/plugin-commands-store/README.md rename to store/plugin-commands-store/README.md diff --git a/packages/plugin-commands-store/jest.config.js b/store/plugin-commands-store/jest.config.js similarity index 100% rename from packages/plugin-commands-store/jest.config.js rename to store/plugin-commands-store/jest.config.js diff --git a/packages/plugin-commands-store/package.json b/store/plugin-commands-store/package.json similarity index 89% rename from packages/plugin-commands-store/package.json rename to store/plugin-commands-store/package.json index d92d08e172..9ab64d8f04 100644 --- a/packages/plugin-commands-store/package.json +++ b/store/plugin-commands-store/package.json @@ -16,12 +16,12 @@ "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", - "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7781 pnpm run test:e2e", + "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7782 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-store", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/plugin-commands-store", "keywords": [ "pnpm7", "pnpm", @@ -31,7 +31,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-store#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/plugin-commands-store#readme", "devDependencies": { "@pnpm/assert-store": "workspace:*", "@pnpm/lockfile-file": "workspace:*", diff --git a/packages/plugin-commands-store/src/index.ts b/store/plugin-commands-store/src/index.ts similarity index 100% rename from packages/plugin-commands-store/src/index.ts rename to store/plugin-commands-store/src/index.ts diff --git a/packages/plugin-commands-store/src/store.ts b/store/plugin-commands-store/src/store.ts similarity index 100% rename from packages/plugin-commands-store/src/store.ts rename to store/plugin-commands-store/src/store.ts diff --git a/packages/plugin-commands-store/src/storeAdd.ts b/store/plugin-commands-store/src/storeAdd.ts similarity index 100% rename from packages/plugin-commands-store/src/storeAdd.ts rename to store/plugin-commands-store/src/storeAdd.ts diff --git a/packages/plugin-commands-store/src/storePrune.ts b/store/plugin-commands-store/src/storePrune.ts similarity index 100% rename from packages/plugin-commands-store/src/storePrune.ts rename to store/plugin-commands-store/src/storePrune.ts diff --git a/packages/plugin-commands-store/src/storeStatus/extendStoreStatusOptions.ts b/store/plugin-commands-store/src/storeStatus/extendStoreStatusOptions.ts similarity index 100% rename from packages/plugin-commands-store/src/storeStatus/extendStoreStatusOptions.ts rename to store/plugin-commands-store/src/storeStatus/extendStoreStatusOptions.ts diff --git a/packages/plugin-commands-store/src/storeStatus/index.ts b/store/plugin-commands-store/src/storeStatus/index.ts similarity index 100% rename from packages/plugin-commands-store/src/storeStatus/index.ts rename to store/plugin-commands-store/src/storeStatus/index.ts diff --git a/packages/plugin-commands-store/src/types.ts b/store/plugin-commands-store/src/types.ts similarity index 100% rename from packages/plugin-commands-store/src/types.ts rename to store/plugin-commands-store/src/types.ts diff --git a/packages/plugin-commands-store/test/storeAdd.ts b/store/plugin-commands-store/test/storeAdd.ts similarity index 100% rename from packages/plugin-commands-store/test/storeAdd.ts rename to store/plugin-commands-store/test/storeAdd.ts diff --git a/packages/plugin-commands-store/test/storePath.ts b/store/plugin-commands-store/test/storePath.ts similarity index 100% rename from packages/plugin-commands-store/test/storePath.ts rename to store/plugin-commands-store/test/storePath.ts diff --git a/packages/plugin-commands-store/test/storePrune.ts b/store/plugin-commands-store/test/storePrune.ts similarity index 98% rename from packages/plugin-commands-store/test/storePrune.ts rename to store/plugin-commands-store/test/storePrune.ts index 24ec51a4e6..d45e08205d 100644 --- a/packages/plugin-commands-store/test/storePrune.ts +++ b/store/plugin-commands-store/test/storePrune.ts @@ -12,7 +12,7 @@ import ssri from 'ssri' const STORE_VERSION = 'v3' const REGISTRY = `http://localhost:${REGISTRY_MOCK_PORT}/` -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('remove unreferenced packages', async () => { const project = prepare() diff --git a/packages/plugin-commands-store/test/storeStatus.ts b/store/plugin-commands-store/test/storeStatus.ts similarity index 97% rename from packages/plugin-commands-store/test/storeStatus.ts rename to store/plugin-commands-store/test/storeStatus.ts index f425bfa70a..917d7e63c9 100644 --- a/packages/plugin-commands-store/test/storeStatus.ts +++ b/store/plugin-commands-store/test/storeStatus.ts @@ -8,7 +8,7 @@ import execa from 'execa' import tempy from 'tempy' const REGISTRY = `http://localhost:${REGISTRY_MOCK_PORT}/` -const pnpmBin = path.join(__dirname, '../../pnpm/bin/pnpm.cjs') +const pnpmBin = path.join(__dirname, '../../../pnpm/bin/pnpm.cjs') test('CLI fails when store status finds modified packages', async () => { const project = prepare() diff --git a/packages/plugin-commands-store/tsconfig.json b/store/plugin-commands-store/tsconfig.json similarity index 57% rename from packages/plugin-commands-store/tsconfig.json rename to store/plugin-commands-store/tsconfig.json index b65bd916e2..2e07d2f9e6 100644 --- a/packages/plugin-commands-store/tsconfig.json +++ b/store/plugin-commands-store/tsconfig.json @@ -9,6 +9,39 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../config/config" + }, + { + "path": "../../config/normalize-registries" + }, + { + "path": "../../config/pick-registry-for-package" + }, + { + "path": "../../lockfile/lockfile-file" + }, + { + "path": "../../lockfile/lockfile-utils" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/error" + }, + { + "path": "../../packages/parse-wanted-dependency" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../pkg-manager/get-context" + }, { "path": "../../privatePackages/assert-store" }, @@ -18,36 +51,6 @@ { "path": "../cafs" }, - { - "path": "../cli-utils" - }, - { - "path": "../config" - }, - { - "path": "../dependency-path" - }, - { - "path": "../error" - }, - { - "path": "../get-context" - }, - { - "path": "../lockfile-file" - }, - { - "path": "../lockfile-utils" - }, - { - "path": "../normalize-registries" - }, - { - "path": "../parse-wanted-dependency" - }, - { - "path": "../pick-registry-for-package" - }, { "path": "../store-connection-manager" }, @@ -56,9 +59,6 @@ }, { "path": "../store-path" - }, - { - "path": "../types" } ] } diff --git a/packages/resolver-base/tsconfig.lint.json b/store/plugin-commands-store/tsconfig.lint.json similarity index 100% rename from packages/resolver-base/tsconfig.lint.json rename to store/plugin-commands-store/tsconfig.lint.json diff --git a/packages/server/CHANGELOG.md b/store/server/CHANGELOG.md similarity index 100% rename from packages/server/CHANGELOG.md rename to store/server/CHANGELOG.md diff --git a/packages/server/README.md b/store/server/README.md similarity index 100% rename from packages/server/README.md rename to store/server/README.md diff --git a/packages/server/example/client.js b/store/server/example/client.js similarity index 100% rename from packages/server/example/client.js rename to store/server/example/client.js diff --git a/packages/server/example/server.js b/store/server/example/server.js similarity index 100% rename from packages/server/example/server.js rename to store/server/example/server.js diff --git a/packages/server/jest.config.js b/store/server/jest.config.js similarity index 100% rename from packages/server/jest.config.js rename to store/server/jest.config.js diff --git a/packages/server/package.json b/store/server/package.json similarity index 90% rename from packages/server/package.json rename to store/server/package.json index 8dd49c46fc..f23cf02410 100644 --- a/packages/server/package.json +++ b/store/server/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/server", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/server", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/server#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/server#readme", "peerDependencies": { "@pnpm/logger": "^5.0.0" }, diff --git a/packages/server/src/connectStoreController.ts b/store/server/src/connectStoreController.ts similarity index 100% rename from packages/server/src/connectStoreController.ts rename to store/server/src/connectStoreController.ts diff --git a/packages/server/src/createServer.ts b/store/server/src/createServer.ts similarity index 100% rename from packages/server/src/createServer.ts rename to store/server/src/createServer.ts diff --git a/packages/server/src/index.ts b/store/server/src/index.ts similarity index 100% rename from packages/server/src/index.ts rename to store/server/src/index.ts diff --git a/packages/server/src/lock.ts b/store/server/src/lock.ts similarity index 100% rename from packages/server/src/lock.ts rename to store/server/src/lock.ts diff --git a/packages/server/test/index.ts b/store/server/test/index.ts similarity index 100% rename from packages/server/test/index.ts rename to store/server/test/index.ts diff --git a/packages/server/test/side-effect-fake-dir/side-effect.js b/store/server/test/side-effect-fake-dir/side-effect.js similarity index 100% rename from packages/server/test/side-effect-fake-dir/side-effect.js rename to store/server/test/side-effect-fake-dir/side-effect.js diff --git a/packages/server/test/side-effect-fake-dir/side-effect.txt b/store/server/test/side-effect-fake-dir/side-effect.txt similarity index 100% rename from packages/server/test/side-effect-fake-dir/side-effect.txt rename to store/server/test/side-effect-fake-dir/side-effect.txt diff --git a/packages/server/tsconfig.json b/store/server/tsconfig.json similarity index 67% rename from packages/server/tsconfig.json rename to store/server/tsconfig.json index a775cc15b9..e40baeebd1 100644 --- a/packages/server/tsconfig.json +++ b/store/server/tsconfig.json @@ -10,22 +10,22 @@ ], "references": [ { - "path": "../client" + "path": "../../network/fetch" }, { - "path": "../fetch" + "path": "../../packages/types" }, { - "path": "../package-requester" + "path": "../../pkg-manager/client" + }, + { + "path": "../../pkg-manager/package-requester" }, { "path": "../package-store" }, { "path": "../store-controller-types" - }, - { - "path": "../types" } ] } diff --git a/packages/run-npm/tsconfig.lint.json b/store/server/tsconfig.lint.json similarity index 100% rename from packages/run-npm/tsconfig.lint.json rename to store/server/tsconfig.lint.json diff --git a/packages/store-connection-manager/CHANGELOG.md b/store/store-connection-manager/CHANGELOG.md similarity index 100% rename from packages/store-connection-manager/CHANGELOG.md rename to store/store-connection-manager/CHANGELOG.md diff --git a/packages/store-connection-manager/README.md b/store/store-connection-manager/README.md similarity index 100% rename from packages/store-connection-manager/README.md rename to store/store-connection-manager/README.md diff --git a/packages/store-connection-manager/package.json b/store/store-connection-manager/package.json similarity index 87% rename from packages/store-connection-manager/package.json rename to store/store-connection-manager/package.json index 57fcc37d0f..6c2c69a4ca 100644 --- a/packages/store-connection-manager/package.json +++ b/store/store-connection-manager/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/store-connection-manager", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/store-connection-manager", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/store-connection-manager#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/store-connection-manager#readme", "devDependencies": { "@pnpm/store-connection-manager": "workspace:*" }, diff --git a/packages/store-connection-manager/src/createNewStoreController.ts b/store/store-connection-manager/src/createNewStoreController.ts similarity index 100% rename from packages/store-connection-manager/src/createNewStoreController.ts rename to store/store-connection-manager/src/createNewStoreController.ts diff --git a/packages/store-connection-manager/src/index.ts b/store/store-connection-manager/src/index.ts similarity index 100% rename from packages/store-connection-manager/src/index.ts rename to store/store-connection-manager/src/index.ts diff --git a/packages/store-connection-manager/src/runServerInBackground.ts b/store/store-connection-manager/src/runServerInBackground.ts similarity index 100% rename from packages/store-connection-manager/src/runServerInBackground.ts rename to store/store-connection-manager/src/runServerInBackground.ts diff --git a/packages/store-connection-manager/src/serverConnectionInfoDir.ts b/store/store-connection-manager/src/serverConnectionInfoDir.ts similarity index 100% rename from packages/store-connection-manager/src/serverConnectionInfoDir.ts rename to store/store-connection-manager/src/serverConnectionInfoDir.ts diff --git a/packages/store-connection-manager/tsconfig.json b/store/store-connection-manager/tsconfig.json similarity index 71% rename from packages/store-connection-manager/tsconfig.json rename to store/store-connection-manager/tsconfig.json index 91c5fe575e..89cbb0e4ab 100644 --- a/packages/store-connection-manager/tsconfig.json +++ b/store/store-connection-manager/tsconfig.json @@ -10,16 +10,16 @@ ], "references": [ { - "path": "../cli-meta" + "path": "../../cli/cli-meta" }, { - "path": "../client" + "path": "../../config/config" }, { - "path": "../config" + "path": "../../packages/error" }, { - "path": "../error" + "path": "../../pkg-manager/client" }, { "path": "../package-store" diff --git a/packages/server/tsconfig.lint.json b/store/store-connection-manager/tsconfig.lint.json similarity index 100% rename from packages/server/tsconfig.lint.json rename to store/store-connection-manager/tsconfig.lint.json diff --git a/packages/store-controller-types/CHANGELOG.md b/store/store-controller-types/CHANGELOG.md similarity index 100% rename from packages/store-controller-types/CHANGELOG.md rename to store/store-controller-types/CHANGELOG.md diff --git a/packages/store-controller-types/README.md b/store/store-controller-types/README.md similarity index 100% rename from packages/store-controller-types/README.md rename to store/store-controller-types/README.md diff --git a/packages/store-controller-types/package.json b/store/store-controller-types/package.json similarity index 83% rename from packages/store-controller-types/package.json rename to store/store-controller-types/package.json index 2ad46a3fb9..4d69982fb5 100644 --- a/packages/store-controller-types/package.json +++ b/store/store-controller-types/package.json @@ -17,7 +17,7 @@ "compile": "tsc --build && pnpm run lint --fix", "lint": "eslint src/**/*.ts" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/store-controller-types", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/store-controller-types", "keywords": [ "pnpm7", "pnpm", @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/store-controller-types#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/store-controller-types#readme", "dependencies": { "@pnpm/fetcher-base": "workspace:*", "@pnpm/resolver-base": "workspace:*", diff --git a/packages/store-controller-types/src/index.ts b/store/store-controller-types/src/index.ts similarity index 100% rename from packages/store-controller-types/src/index.ts rename to store/store-controller-types/src/index.ts diff --git a/packages/store-controller-types/tsconfig.json b/store/store-controller-types/tsconfig.json similarity index 68% rename from packages/store-controller-types/tsconfig.json rename to store/store-controller-types/tsconfig.json index 9fdc4b3443..50559ae997 100644 --- a/packages/store-controller-types/tsconfig.json +++ b/store/store-controller-types/tsconfig.json @@ -9,17 +9,17 @@ "../../typings/**/*.d.ts" ], "references": [ + { + "path": "../../fetching/fetcher-base" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../resolving/resolver-base" + }, { "path": "../cafs-types" - }, - { - "path": "../fetcher-base" - }, - { - "path": "../resolver-base" - }, - { - "path": "../types" } ] } diff --git a/packages/sort-packages/tsconfig.lint.json b/store/store-controller-types/tsconfig.lint.json similarity index 100% rename from packages/sort-packages/tsconfig.lint.json rename to store/store-controller-types/tsconfig.lint.json diff --git a/packages/store-path/CHANGELOG.md b/store/store-path/CHANGELOG.md similarity index 100% rename from packages/store-path/CHANGELOG.md rename to store/store-path/CHANGELOG.md diff --git a/packages/store-path/README.md b/store/store-path/README.md similarity index 100% rename from packages/store-path/README.md rename to store/store-path/README.md diff --git a/packages/store-path/__mocks__/can-link.js b/store/store-path/__mocks__/can-link.js similarity index 100% rename from packages/store-path/__mocks__/can-link.js rename to store/store-path/__mocks__/can-link.js diff --git a/packages/store-path/__mocks__/fs.js b/store/store-path/__mocks__/fs.js similarity index 100% rename from packages/store-path/__mocks__/fs.js rename to store/store-path/__mocks__/fs.js diff --git a/packages/store-path/__mocks__/os.js b/store/store-path/__mocks__/os.js similarity index 100% rename from packages/store-path/__mocks__/os.js rename to store/store-path/__mocks__/os.js diff --git a/packages/store-path/__mocks__/path-temp.js b/store/store-path/__mocks__/path-temp.js similarity index 100% rename from packages/store-path/__mocks__/path-temp.js rename to store/store-path/__mocks__/path-temp.js diff --git a/packages/store-path/__mocks__/root-link-target.js b/store/store-path/__mocks__/root-link-target.js similarity index 100% rename from packages/store-path/__mocks__/root-link-target.js rename to store/store-path/__mocks__/root-link-target.js diff --git a/packages/store-path/__mocks__/touch.js b/store/store-path/__mocks__/touch.js similarity index 100% rename from packages/store-path/__mocks__/touch.js rename to store/store-path/__mocks__/touch.js diff --git a/packages/plugin-commands-script-runners/jest.config.js b/store/store-path/jest.config.js similarity index 100% rename from packages/plugin-commands-script-runners/jest.config.js rename to store/store-path/jest.config.js diff --git a/packages/store-path/package.json b/store/store-path/package.json similarity index 87% rename from packages/store-path/package.json rename to store/store-path/package.json index 073324ab09..c106df068f 100644 --- a/packages/store-path/package.json +++ b/store/store-path/package.json @@ -15,7 +15,7 @@ "test": "pnpm run compile && pnpm run _test", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/store-path", + "repository": "https://github.com/pnpm/pnpm/blob/main/store/store-path", "keywords": [ "pnpm7", "pnpm", @@ -28,7 +28,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/store-path#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/store/store-path#readme", "dependencies": { "@zkochan/rimraf": "^2.1.2", "can-link": "^2.0.0", diff --git a/packages/store-path/src/index.ts b/store/store-path/src/index.ts similarity index 100% rename from packages/store-path/src/index.ts rename to store/store-path/src/index.ts diff --git a/packages/store-path/test/index.ts b/store/store-path/test/index.ts similarity index 100% rename from packages/store-path/test/index.ts rename to store/store-path/test/index.ts diff --git a/packages/run-npm/tsconfig.json b/store/store-path/tsconfig.json similarity index 100% rename from packages/run-npm/tsconfig.json rename to store/store-path/tsconfig.json diff --git a/packages/store-connection-manager/tsconfig.lint.json b/store/store-path/tsconfig.lint.json similarity index 100% rename from packages/store-connection-manager/tsconfig.lint.json rename to store/store-path/tsconfig.lint.json diff --git a/utils/eslint-config/eslint.json b/utils/eslint-config/eslint.json index 86d330b8a6..59d2ca1cbc 100644 --- a/utils/eslint-config/eslint.json +++ b/utils/eslint-config/eslint.json @@ -10,7 +10,7 @@ "error", { "devDependencies": [ - "**/packages/pnpm/**", + "**/pnpm/**", "**/test/**" ] } diff --git a/utils/scripts/src/copy-artifacts.ts b/utils/scripts/src/copy-artifacts.ts index a94604991e..3bf24a276c 100644 --- a/utils/scripts/src/copy-artifacts.ts +++ b/utils/scripts/src/copy-artifacts.ts @@ -5,12 +5,12 @@ import makeEmptyDir from 'make-empty-dir' const repoRoot = path.join(__dirname, '../../..') const dest = path.join(repoRoot, 'dist') -const artifactsDir = path.join(repoRoot, 'packages/artifacts') +const artifactsDir = path.join(repoRoot, 'pnpm/artifacts') ;(async () => { // eslint-disable-line await makeEmptyDir(dest) if (!fs.existsSync(path.join(artifactsDir, 'linux-x64/pnpm'))) { - execa.sync('pnpm', ['run', 'prepublishOnly', '--filter', '@pnpm/exe'], { + execa.sync('pnpm', ['--filter=@pnpm/exe', 'run', 'prepublishOnly'], { cwd: repoRoot, stdio: 'inherit', }) diff --git a/packages/filter-workspace-packages/CHANGELOG.md b/workspace/filter-workspace-packages/CHANGELOG.md similarity index 100% rename from packages/filter-workspace-packages/CHANGELOG.md rename to workspace/filter-workspace-packages/CHANGELOG.md diff --git a/packages/filter-workspace-packages/README.md b/workspace/filter-workspace-packages/README.md similarity index 100% rename from packages/filter-workspace-packages/README.md rename to workspace/filter-workspace-packages/README.md diff --git a/packages/prepare-package/jest.config.js b/workspace/filter-workspace-packages/jest.config.js similarity index 100% rename from packages/prepare-package/jest.config.js rename to workspace/filter-workspace-packages/jest.config.js diff --git a/packages/filter-workspace-packages/package.json b/workspace/filter-workspace-packages/package.json similarity index 87% rename from packages/filter-workspace-packages/package.json rename to workspace/filter-workspace-packages/package.json index 5affce0567..3763d4fb47 100644 --- a/packages/filter-workspace-packages/package.json +++ b/workspace/filter-workspace-packages/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/filter-workspace-packages", + "repository": "https://github.com/pnpm/pnpm/blob/main/workspace/filter-workspace-packages", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/filter-workspace-packages#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/workspace/filter-workspace-packages#readme", "dependencies": { "@pnpm/error": "workspace:*", "@pnpm/find-workspace-packages": "workspace:*", diff --git a/packages/filter-workspace-packages/src/getChangedPackages.ts b/workspace/filter-workspace-packages/src/getChangedPackages.ts similarity index 100% rename from packages/filter-workspace-packages/src/getChangedPackages.ts rename to workspace/filter-workspace-packages/src/getChangedPackages.ts diff --git a/packages/filter-workspace-packages/src/index.ts b/workspace/filter-workspace-packages/src/index.ts similarity index 100% rename from packages/filter-workspace-packages/src/index.ts rename to workspace/filter-workspace-packages/src/index.ts diff --git a/packages/filter-workspace-packages/src/parsePackageSelector.ts b/workspace/filter-workspace-packages/src/parsePackageSelector.ts similarity index 100% rename from packages/filter-workspace-packages/src/parsePackageSelector.ts rename to workspace/filter-workspace-packages/src/parsePackageSelector.ts diff --git a/packages/filter-workspace-packages/test/index.ts b/workspace/filter-workspace-packages/test/index.ts similarity index 100% rename from packages/filter-workspace-packages/test/index.ts rename to workspace/filter-workspace-packages/test/index.ts diff --git a/packages/filter-workspace-packages/test/parsePackageSelector.ts b/workspace/filter-workspace-packages/test/parsePackageSelector.ts similarity index 100% rename from packages/filter-workspace-packages/test/parsePackageSelector.ts rename to workspace/filter-workspace-packages/test/parsePackageSelector.ts diff --git a/packages/filter-workspace-packages/tsconfig.json b/workspace/filter-workspace-packages/tsconfig.json similarity index 81% rename from packages/filter-workspace-packages/tsconfig.json rename to workspace/filter-workspace-packages/tsconfig.json index dd2cffef24..712c3560ba 100644 --- a/packages/filter-workspace-packages/tsconfig.json +++ b/workspace/filter-workspace-packages/tsconfig.json @@ -10,14 +10,14 @@ ], "references": [ { - "path": "../error" + "path": "../../config/matcher" + }, + { + "path": "../../packages/error" }, { "path": "../find-workspace-packages" }, - { - "path": "../matcher" - }, { "path": "../pkgs-graph" } diff --git a/packages/store-controller-types/tsconfig.lint.json b/workspace/filter-workspace-packages/tsconfig.lint.json similarity index 100% rename from packages/store-controller-types/tsconfig.lint.json rename to workspace/filter-workspace-packages/tsconfig.lint.json diff --git a/packages/find-workspace-dir/CHANGELOG.md b/workspace/find-workspace-dir/CHANGELOG.md similarity index 100% rename from packages/find-workspace-dir/CHANGELOG.md rename to workspace/find-workspace-dir/CHANGELOG.md diff --git a/packages/find-workspace-dir/README.md b/workspace/find-workspace-dir/README.md similarity index 100% rename from packages/find-workspace-dir/README.md rename to workspace/find-workspace-dir/README.md diff --git a/packages/pnpm/jest.config.js b/workspace/find-workspace-dir/jest.config.js similarity index 100% rename from packages/pnpm/jest.config.js rename to workspace/find-workspace-dir/jest.config.js diff --git a/packages/find-workspace-dir/package.json b/workspace/find-workspace-dir/package.json similarity index 82% rename from packages/find-workspace-dir/package.json rename to workspace/find-workspace-dir/package.json index 84aa77412e..07935d0398 100644 --- a/packages/find-workspace-dir/package.json +++ b/workspace/find-workspace-dir/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/find-workspace-dir", + "repository": "https://github.com/pnpm/pnpm/blob/main/workspace/find-workspace-dir", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/find-workspace-dir#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/workspace/find-workspace-dir#readme", "dependencies": { "@pnpm/error": "workspace:*", "find-up": "^5.0.0" diff --git a/packages/find-workspace-dir/src/index.ts b/workspace/find-workspace-dir/src/index.ts similarity index 100% rename from packages/find-workspace-dir/src/index.ts rename to workspace/find-workspace-dir/src/index.ts diff --git a/packages/find-workspace-dir/test/index.ts b/workspace/find-workspace-dir/test/index.ts similarity index 100% rename from packages/find-workspace-dir/test/index.ts rename to workspace/find-workspace-dir/test/index.ts diff --git a/workspace/find-workspace-dir/tsconfig.json b/workspace/find-workspace-dir/tsconfig.json new file mode 100644 index 0000000000..3c87944f95 --- /dev/null +++ b/workspace/find-workspace-dir/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/error" + } + ] +} diff --git a/packages/store-path/tsconfig.lint.json b/workspace/find-workspace-dir/tsconfig.lint.json similarity index 100% rename from packages/store-path/tsconfig.lint.json rename to workspace/find-workspace-dir/tsconfig.lint.json diff --git a/packages/find-workspace-packages/CHANGELOG.md b/workspace/find-workspace-packages/CHANGELOG.md similarity index 100% rename from packages/find-workspace-packages/CHANGELOG.md rename to workspace/find-workspace-packages/CHANGELOG.md diff --git a/packages/find-workspace-packages/README.md b/workspace/find-workspace-packages/README.md similarity index 100% rename from packages/find-workspace-packages/README.md rename to workspace/find-workspace-packages/README.md diff --git a/packages/store-path/jest.config.js b/workspace/find-workspace-packages/jest.config.js similarity index 100% rename from packages/store-path/jest.config.js rename to workspace/find-workspace-packages/jest.config.js diff --git a/packages/find-workspace-packages/package.json b/workspace/find-workspace-packages/package.json similarity index 84% rename from packages/find-workspace-packages/package.json rename to workspace/find-workspace-packages/package.json index 766f6dec07..991968c1c9 100644 --- a/packages/find-workspace-packages/package.json +++ b/workspace/find-workspace-packages/package.json @@ -18,7 +18,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/find-workspace-packages", + "repository": "https://github.com/pnpm/pnpm/blob/main/workspace/find-workspace-packages", "keywords": [ "pnpm7", "pnpm" @@ -27,7 +27,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/find-workspace-packages#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/workspace/find-workspace-packages#readme", "dependencies": { "@pnpm/cli-utils": "workspace:*", "@pnpm/constants": "workspace:*", diff --git a/packages/find-workspace-packages/src/index.ts b/workspace/find-workspace-packages/src/index.ts similarity index 100% rename from packages/find-workspace-packages/src/index.ts rename to workspace/find-workspace-packages/src/index.ts diff --git a/packages/find-workspace-packages/test/__fixtures__/bad-engine/pkg/package.json b/workspace/find-workspace-packages/test/__fixtures__/bad-engine/pkg/package.json similarity index 100% rename from packages/find-workspace-packages/test/__fixtures__/bad-engine/pkg/package.json rename to workspace/find-workspace-packages/test/__fixtures__/bad-engine/pkg/package.json diff --git a/packages/find-workspace-packages/test/__fixtures__/bad-engine/pnpm-workspace.yaml b/workspace/find-workspace-packages/test/__fixtures__/bad-engine/pnpm-workspace.yaml similarity index 100% rename from packages/find-workspace-packages/test/__fixtures__/bad-engine/pnpm-workspace.yaml rename to workspace/find-workspace-packages/test/__fixtures__/bad-engine/pnpm-workspace.yaml diff --git a/packages/find-workspace-packages/test/index.ts b/workspace/find-workspace-packages/test/index.ts similarity index 100% rename from packages/find-workspace-packages/test/index.ts rename to workspace/find-workspace-packages/test/index.ts diff --git a/packages/lockfile-to-pnp/tsconfig.json b/workspace/find-workspace-packages/tsconfig.json similarity index 61% rename from packages/lockfile-to-pnp/tsconfig.json rename to workspace/find-workspace-packages/tsconfig.json index 72ffc39add..f0a25baa4a 100644 --- a/packages/lockfile-to-pnp/tsconfig.json +++ b/workspace/find-workspace-packages/tsconfig.json @@ -10,16 +10,16 @@ ], "references": [ { - "path": "../dependency-path" + "path": "../../cli/cli-utils" }, { - "path": "../lockfile-file" + "path": "../../fs/find-packages" }, { - "path": "../lockfile-utils" + "path": "../../packages/constants" }, { - "path": "../types" + "path": "../../packages/types" } ] } diff --git a/packages/symlink-dependency/tsconfig.lint.json b/workspace/find-workspace-packages/tsconfig.lint.json similarity index 100% rename from packages/symlink-dependency/tsconfig.lint.json rename to workspace/find-workspace-packages/tsconfig.lint.json diff --git a/packages/pkgs-graph/CHANGELOG.md b/workspace/pkgs-graph/CHANGELOG.md similarity index 100% rename from packages/pkgs-graph/CHANGELOG.md rename to workspace/pkgs-graph/CHANGELOG.md diff --git a/packages/pkgs-graph/README.md b/workspace/pkgs-graph/README.md similarity index 100% rename from packages/pkgs-graph/README.md rename to workspace/pkgs-graph/README.md diff --git a/packages/pkgs-graph/jest.config.js b/workspace/pkgs-graph/jest.config.js similarity index 100% rename from packages/pkgs-graph/jest.config.js rename to workspace/pkgs-graph/jest.config.js diff --git a/packages/pkgs-graph/package.json b/workspace/pkgs-graph/package.json similarity index 85% rename from packages/pkgs-graph/package.json rename to workspace/pkgs-graph/package.json index c2416b6bde..5194019539 100644 --- a/packages/pkgs-graph/package.json +++ b/workspace/pkgs-graph/package.json @@ -15,7 +15,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/pkgs-graph", + "repository": "https://github.com/pnpm/pnpm/blob/main/workspace/pkgs-graph", "license": "MIT", "engines": { "node": ">=14.6" @@ -23,7 +23,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/pkgs-graph#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/workspace/pkgs-graph#readme", "devDependencies": { "@types/ramda": "0.28.15", "better-path-resolve": "1.0.0", diff --git a/packages/pkgs-graph/src/index.ts b/workspace/pkgs-graph/src/index.ts similarity index 100% rename from packages/pkgs-graph/src/index.ts rename to workspace/pkgs-graph/src/index.ts diff --git a/packages/pkgs-graph/test/index.ts b/workspace/pkgs-graph/test/index.ts similarity index 100% rename from packages/pkgs-graph/test/index.ts rename to workspace/pkgs-graph/test/index.ts diff --git a/packages/pkgs-graph/tsconfig.json b/workspace/pkgs-graph/tsconfig.json similarity index 100% rename from packages/pkgs-graph/tsconfig.json rename to workspace/pkgs-graph/tsconfig.json diff --git a/packages/tarball-fetcher/tsconfig.lint.json b/workspace/pkgs-graph/tsconfig.lint.json similarity index 100% rename from packages/tarball-fetcher/tsconfig.lint.json rename to workspace/pkgs-graph/tsconfig.lint.json diff --git a/packages/resolve-workspace-range/CHANGELOG.md b/workspace/resolve-workspace-range/CHANGELOG.md similarity index 100% rename from packages/resolve-workspace-range/CHANGELOG.md rename to workspace/resolve-workspace-range/CHANGELOG.md diff --git a/packages/resolve-workspace-range/README.md b/workspace/resolve-workspace-range/README.md similarity index 100% rename from packages/resolve-workspace-range/README.md rename to workspace/resolve-workspace-range/README.md diff --git a/packages/resolve-workspace-range/package.json b/workspace/resolve-workspace-range/package.json similarity index 82% rename from packages/resolve-workspace-range/package.json rename to workspace/resolve-workspace-range/package.json index 423211bc23..ec8d1bda36 100644 --- a/packages/resolve-workspace-range/package.json +++ b/workspace/resolve-workspace-range/package.json @@ -15,8 +15,8 @@ "engines": { "node": ">=14.6" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/resolve-workspace-range", - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/resolve-workspace-range#readme", + "repository": "https://github.com/pnpm/pnpm/blob/main/workspace/resolve-workspace-range", + "homepage": "https://github.com/pnpm/pnpm/blob/main/workspace/resolve-workspace-range#readme", "scripts": { "start": "tsc --watch", "test": "pnpm run compile", diff --git a/packages/resolve-workspace-range/src/index.ts b/workspace/resolve-workspace-range/src/index.ts similarity index 100% rename from packages/resolve-workspace-range/src/index.ts rename to workspace/resolve-workspace-range/src/index.ts diff --git a/packages/store-path/tsconfig.json b/workspace/resolve-workspace-range/tsconfig.json similarity index 100% rename from packages/store-path/tsconfig.json rename to workspace/resolve-workspace-range/tsconfig.json diff --git a/packages/tarball-resolver/tsconfig.lint.json b/workspace/resolve-workspace-range/tsconfig.lint.json similarity index 100% rename from packages/tarball-resolver/tsconfig.lint.json rename to workspace/resolve-workspace-range/tsconfig.lint.json diff --git a/packages/sort-packages/CHANGELOG.md b/workspace/sort-packages/CHANGELOG.md similarity index 100% rename from packages/sort-packages/CHANGELOG.md rename to workspace/sort-packages/CHANGELOG.md diff --git a/packages/sort-packages/README.md b/workspace/sort-packages/README.md similarity index 100% rename from packages/sort-packages/README.md rename to workspace/sort-packages/README.md diff --git a/packages/sort-packages/package.json b/workspace/sort-packages/package.json similarity index 82% rename from packages/sort-packages/package.json rename to workspace/sort-packages/package.json index bea30ec2db..3a5127220c 100644 --- a/packages/sort-packages/package.json +++ b/workspace/sort-packages/package.json @@ -17,7 +17,7 @@ "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, - "repository": "https://github.com/pnpm/pnpm/blob/main/packages/sort-packages", + "repository": "https://github.com/pnpm/pnpm/blob/main/workspace/sort-packages", "keywords": [ "pnpm7", "pnpm" @@ -26,7 +26,7 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/sort-packages#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/workspace/sort-packages#readme", "dependencies": { "@pnpm/graph-sequencer": "1.0.0", "@pnpm/types": "workspace:*" diff --git a/packages/sort-packages/src/index.ts b/workspace/sort-packages/src/index.ts similarity index 100% rename from packages/sort-packages/src/index.ts rename to workspace/sort-packages/src/index.ts diff --git a/workspace/sort-packages/tsconfig.json b/workspace/sort-packages/tsconfig.json new file mode 100644 index 0000000000..4934a75de4 --- /dev/null +++ b/workspace/sort-packages/tsconfig.json @@ -0,0 +1,16 @@ +{ + "extends": "@pnpm/tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts", + "../../typings/**/*.d.ts" + ], + "references": [ + { + "path": "../../packages/types" + } + ] +} diff --git a/packages/write-project-manifest/tsconfig.lint.json b/workspace/sort-packages/tsconfig.lint.json similarity index 100% rename from packages/write-project-manifest/tsconfig.lint.json rename to workspace/sort-packages/tsconfig.lint.json