Skip to content

Commit

Permalink
refactor: Deprecate esbuild-plugin-pnp
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL committed Aug 10, 2022
1 parent 6386630 commit c459fb9
Show file tree
Hide file tree
Showing 17 changed files with 882 additions and 996 deletions.
1,537 changes: 829 additions & 708 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
36 changes: 36 additions & 0 deletions .yarn/versions/ded9c7c0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
releases:
"@yarnpkg/builder": minor
"@yarnpkg/core": minor
"@yarnpkg/plugin-pnp": minor
"@yarnpkg/pnp": minor
vscode-zipfs: patch

declined:
- "@yarnpkg/plugin-compat"
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-dlx"
- "@yarnpkg/plugin-essentials"
- "@yarnpkg/plugin-exec"
- "@yarnpkg/plugin-file"
- "@yarnpkg/plugin-git"
- "@yarnpkg/plugin-github"
- "@yarnpkg/plugin-http"
- "@yarnpkg/plugin-init"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-link"
- "@yarnpkg/plugin-nm"
- "@yarnpkg/plugin-npm"
- "@yarnpkg/plugin-npm-cli"
- "@yarnpkg/plugin-pack"
- "@yarnpkg/plugin-patch"
- "@yarnpkg/plugin-pnpm"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- "@yarnpkg/cli"
- "@yarnpkg/doctor"
- "@yarnpkg/extensions"
- "@yarnpkg/nm"
- "@yarnpkg/pnpify"
- "@yarnpkg/sdks"
22 changes: 0 additions & 22 deletions packages/esbuild-plugin-pnp/README.md

This file was deleted.

37 changes: 0 additions & 37 deletions packages/esbuild-plugin-pnp/package.json

This file was deleted.

196 changes: 0 additions & 196 deletions packages/esbuild-plugin-pnp/sources/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/gatsby/content/features/plugnplay.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Many common frontend tools now support Plug'n'Play natively!
| Babel | Starting from `resolve` 1.9 |
| Create-React-App | Starting from 2.0+ |
| Docusaurus | Starting from 2.0.0-beta.14 |
| ESBuild | Starting from 0.15.0 |
| ESLint | Some compatibility issues w/ shared configs (fixable using [@rushstack/eslint-patch](https://yarnpkg.com/package/@rushstack/eslint-patch)) |
| Gatsby | Supported with version ≥2.15.0, ≥3.7.0 |
| Gulp | Supported with version 4.0+ |
Expand All @@ -150,7 +151,6 @@ Many common frontend tools now support Plug'n'Play natively!

| <div style="width:150px">Project name</div> | Note |
| --- | --- |
| ESBuild | Via [`@yarnpkg/esbuild-plugin-pnp`](https://github.com/yarnpkg/berry/tree/master/packages/esbuild-plugin-pnp#yarnpkgesbuild-plugin-pnp) |
| VSCode-ESLint | Follow [Editor SDKs](https://yarnpkg.com/getting-started/editor-sdks) |
| VSCode | Follow [Editor SDKs](https://yarnpkg.com/getting-started/editor-sdks) |
| Webpack 4.x | Via [`pnp-webpack-plugin`](https://github.com/arcanis/pnp-webpack-plugin) (native starting from 5+) |
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-zipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@types/vscode": "^1.54.0",
"@yarnpkg/fslib": "workspace:^",
"@yarnpkg/libzip": "workspace:^",
"esbuild": "npm:esbuild-wasm@^0.11.20",
"esbuild": "npm:esbuild-wasm@^0.15.0",
"rollup": "^2.59.0",
"rollup-plugin-esbuild": "^3.0.2",
"rollup-plugin-terser": "^7.0.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/yarnpkg-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"dependencies": {
"@yarnpkg/cli": "workspace:^",
"@yarnpkg/core": "workspace:^",
"@yarnpkg/esbuild-plugin-pnp": "workspace:^",
"@yarnpkg/fslib": "workspace:^",
"chalk": "^3.0.0",
"clipanion": "^3.2.0-rc.10",
"esbuild": "npm:esbuild-wasm@^0.11.20",
"esbuild": "npm:esbuild-wasm@^0.15.0",
"semver": "^7.1.2",
"tslib": "^2.4.0"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/yarnpkg-builder/sources/commands/build/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {getDynamicLibs} from '@yarnpkg/cli';
import {StreamReport, MessageName, Configuration, formatUtils, structUtils} from '@yarnpkg/core';
import {pnpPlugin} from '@yarnpkg/esbuild-plugin-pnp';
import {npath} from '@yarnpkg/fslib';
import chalk from 'chalk';
import cp from 'child_process';
Expand Down Expand Up @@ -139,7 +138,7 @@ export default class BuildBundleCommand extends Command {
logLevel: `silent`,
format: `iife`,
platform: `node`,
plugins: [valLoader, pnpPlugin()],
plugins: [valLoader],
minify: !this.noMinify,
sourcemap: this.sourceMap ? `inline` : false,
target: `node14`,
Expand Down
3 changes: 1 addition & 2 deletions packages/yarnpkg-builder/sources/commands/build/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {StreamReport, MessageName, Configuration, formatUtils, structUtils} from '@yarnpkg/core';
import {pnpPlugin} from '@yarnpkg/esbuild-plugin-pnp';
import {npath, xfs} from '@yarnpkg/fslib';
import {Command, Option, Usage, UsageError} from 'clipanion';
import {build, Plugin} from 'esbuild';
Expand Down Expand Up @@ -117,7 +116,7 @@ export default class BuildPluginCommand extends Command {
logLevel: `silent`,
format: `iife`,
platform: `node`,
plugins: [dynamicLibResolver, pnpPlugin()],
plugins: [dynamicLibResolver],
minify: !this.noMinify,
sourcemap: this.sourceMap ? `inline` : false,
target: `node14`,
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@yarnpkg/plugin-npm": "workspace:^",
"@yarnpkg/plugin-pnp": "workspace:^",
"comment-json": "^2.2.0",
"esbuild": "npm:esbuild-wasm@^0.11.20",
"esbuild": "npm:esbuild-wasm@^0.15.0",
"rollup": "^2.59.0",
"rollup-plugin-esbuild": "^3.0.2",
"rollup-plugin-terser": "^7.0.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-pnp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^11.0.1",
"@yarnpkg/libzip": "workspace:^",
"esbuild": "npm:esbuild-wasm@^0.11.20",
"esbuild": "npm:esbuild-wasm@^0.15.0",
"resolve.exports": "^1.1.0",
"rollup": "^2.59.0",
"rollup-plugin-esbuild": "^3.0.2",
Expand Down
Loading

0 comments on commit c459fb9

Please sign in to comment.