Skip to content

Commit 31d8ce6

Browse files
committed
berry
1 parent bcfbcda commit 31d8ce6

File tree

8 files changed

+21104
-162582
lines changed

8 files changed

+21104
-162582
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ yarn-error.log*
3939
junit.xml
4040

4141
*.tsbuildinfo
42+
43+
/.pnp.js
44+
/.yarn/unplugged/
45+
/.yarn/build-state.yml

.yarn/releases/yarn-1.22.0.js

Lines changed: 0 additions & 147370 deletions
This file was deleted.

.yarn/releases/yarn-sources.js

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarnrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33

44

55
lastUpdateCheck 1576854265612
6-
yarn-path ".yarn/releases/yarn-1.22.0.js"

.yarnrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
enableGlobalCache: true
2+
3+
packageExtensions:
4+
"@babel/parser@*":
5+
dependencies:
6+
"@babel/types": "*"
7+
8+
yarnPath: .yarn/releases/yarn-sources.js

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"mocha": "^7.0.0",
6868
"mock-fs": "^4.4.1",
6969
"opencollective": "^1.0.3",
70+
"pnp-webpack-plugin": "^1.6.0",
7071
"prettier": "^1.19.0",
7172
"prettylint": "^1.0.0",
7273
"progress": "^2.0.0",
@@ -82,12 +83,12 @@
8283
"which": "^2.0.1"
8384
},
8485
"scripts": {
85-
"build-clean": "rm -rf ./packages/*/build ./packages/*/build-es5 ./packages/*/tsconfig.tsbuildinfo",
86+
"build-clean": "rimraf ./packages/*/build ./packages/*/build-es5 ./packages/*/tsconfig.tsbuildinfo",
8687
"prebuild": "yarn build:ts",
8788
"build": "node ./scripts/build.js",
8889
"build:ts": "node scripts/buildTs.js",
8990
"check-copyright-headers": "node ./scripts/checkCopyrightHeaders.js",
90-
"clean-all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules && yarn clean-e2e && yarn build-clean",
91+
"clean-all": "rimraf ./node_modules && rimraf ./packages/*/node_modules && yarn clean-e2e && yarn build-clean",
9192
"clean-e2e": "find ./e2e -not \\( -path ./e2e/presets/js -prune \\) -not \\( -path ./e2e/presets/json -prune \\) -not \\( -path ./e2e/global-setup-node-modules -prune \\) -mindepth 1 -type d \\( -name node_modules -prune \\) -exec rm -r '{}' +",
9293
"jest": "node ./packages/jest-cli/bin/jest.js",
9394
"jest-coverage": "yarn jest --coverage",

scripts/browserBuild.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const path = require('path');
1010
const webpack = require('webpack');
1111
const camelCase = require('camelcase');
1212
const rimraf = require('rimraf');
13+
const PnpWebpackPlugin = require('pnp-webpack-plugin');
1314

1415
const transformOptions = require('../babel.config.js');
1516

@@ -65,11 +66,15 @@ function browserBuild(pkgName, entryPath, destination) {
6566
'../packages/expect/build/fakeChalk.js'
6667
),
6768
},
69+
plugins: [PnpWebpackPlugin],
6870
extensions: ['.js', '.json', '.ts'],
6971
},
7072
node: {
7173
fs: 'empty',
7274
},
75+
resolveLoader: {
76+
plugins: [PnpWebpackPlugin.moduleLoader(module)],
77+
},
7378
},
7479
/* eslint-enable */
7580
(err, stats) => {

yarn.lock

Lines changed: 21026 additions & 15209 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)