Skip to content

Commit

Permalink
berry
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 10, 2020
1 parent bcfbcda commit 31d8ce6
Show file tree
Hide file tree
Showing 8 changed files with 21,104 additions and 162,582 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ yarn-error.log*
junit.xml

*.tsbuildinfo

/.pnp.js
/.yarn/unplugged/
/.yarn/build-state.yml
147,370 changes: 0 additions & 147,370 deletions .yarn/releases/yarn-1.22.0.js

This file was deleted.

58 changes: 58 additions & 0 deletions .yarn/releases/yarn-sources.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@


lastUpdateCheck 1576854265612
yarn-path ".yarn/releases/yarn-1.22.0.js"
8 changes: 8 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
enableGlobalCache: true

packageExtensions:
"@babel/parser@*":
dependencies:
"@babel/types": "*"

yarnPath: .yarn/releases/yarn-sources.js
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"mocha": "^7.0.0",
"mock-fs": "^4.4.1",
"opencollective": "^1.0.3",
"pnp-webpack-plugin": "^1.6.0",
"prettier": "^1.19.0",
"prettylint": "^1.0.0",
"progress": "^2.0.0",
Expand All @@ -82,12 +83,12 @@
"which": "^2.0.1"
},
"scripts": {
"build-clean": "rm -rf ./packages/*/build ./packages/*/build-es5 ./packages/*/tsconfig.tsbuildinfo",
"build-clean": "rimraf ./packages/*/build ./packages/*/build-es5 ./packages/*/tsconfig.tsbuildinfo",
"prebuild": "yarn build:ts",
"build": "node ./scripts/build.js",
"build:ts": "node scripts/buildTs.js",
"check-copyright-headers": "node ./scripts/checkCopyrightHeaders.js",
"clean-all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules && yarn clean-e2e && yarn build-clean",
"clean-all": "rimraf ./node_modules && rimraf ./packages/*/node_modules && yarn clean-e2e && yarn build-clean",
"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 '{}' +",
"jest": "node ./packages/jest-cli/bin/jest.js",
"jest-coverage": "yarn jest --coverage",
Expand Down
5 changes: 5 additions & 0 deletions scripts/browserBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const path = require('path');
const webpack = require('webpack');
const camelCase = require('camelcase');
const rimraf = require('rimraf');
const PnpWebpackPlugin = require('pnp-webpack-plugin');

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

Expand Down Expand Up @@ -65,11 +66,15 @@ function browserBuild(pkgName, entryPath, destination) {
'../packages/expect/build/fakeChalk.js'
),
},
plugins: [PnpWebpackPlugin],
extensions: ['.js', '.json', '.ts'],
},
node: {
fs: 'empty',
},
resolveLoader: {
plugins: [PnpWebpackPlugin.moduleLoader(module)],
},
},
/* eslint-enable */
(err, stats) => {
Expand Down
36,235 changes: 21,026 additions & 15,209 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 31d8ce6

Please sign in to comment.