Skip to content

Commit

Permalink
chore(yarn): Bumped to yarn 3
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Feb 11, 2023
1 parent 400496a commit f999ae1
Show file tree
Hide file tree
Showing 11 changed files with 11,593 additions and 25 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,14 @@ jobs:
- run: yarn test
env:
CI: true
- run: yarn
working-directory: ./webpack
- run: yarn build
working-directory: ./webpack
- run: yarn test
working-directory: ./webpack
- run: yarn
working-directory: ./cjs-test
- run: yarn build
working-directory: ./cjs-test
- run: yarn test
working-directory: ./cjs-test
- run: yarn
working-directory: ./esm-test
- run: yarn build
working-directory: ./esm-test
- run: yarn test
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,14 @@ jobs:
- run: yarn test
env:
CI: true
- run: yarn
working-directory: ./webpack
- run: yarn build
working-directory: ./webpack
- run: yarn test
working-directory: ./webpack
- run: yarn
working-directory: ./cjs-test
- run: yarn build
working-directory: ./cjs-test
- run: yarn test
working-directory: ./cjs-test
- run: yarn
working-directory: ./esm-test
- run: yarn build
working-directory: ./esm-test
- run: yarn test
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dist
node_modules
test
!webpack/test
yarn.lock
.yarn/
yarn-*

541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

801 changes: 801 additions & 0 deletions .yarn/releases/yarn-3.2.4.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.2.4.cjs
10 changes: 5 additions & 5 deletions cjs-test/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "awesome-phonenumber-test",
"name": "awesome-phonenumber-cjs-test",
"license": "MIT",
"author": "Gustaf Räntilä <g.rantila@gmail.com>",
"engines": {
Expand All @@ -9,16 +9,16 @@
"types": "./index.d.ts",
"type": "commonjs",
"scripts": {
"postinstall:lib": "cd node_modules && ln -s ../.. awesome-phonenumber || true",
"postinstall:tests": "cp ../test/awesome-phonenumber/*.ts test",
"postinstall": "yarn postinstall:lib && yarn postinstall:tests",
"build": "tsc -p .",
"install-tests": "cp ../test/awesome-phonenumber/*.ts test",
"build:compile": "tsc -p .",
"build": "yarn install-tests && yarn build:compile",
"test": "jest"
},
"devDependencies": {
"@babel/preset-env": "^7.17.10",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.5.0",
"awesome-phonenumber": "workspace:^",
"jest": "^28.1.0",
"ts-jest": "^28.0.2",
"ts-jest-resolver": "^2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions esm-test/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "awesome-phonenumber-test",
"name": "awesome-phonenumber-esm-test",
"license": "MIT",
"author": "Gustaf Räntilä <g.rantila@gmail.com>",
"engines": {
Expand All @@ -9,16 +9,16 @@
"types": "./index.d.ts",
"type": "module",
"scripts": {
"postinstall:lib": "cd node_modules && ln -s ../.. awesome-phonenumber || true",
"postinstall:tests": "cp ../test/awesome-phonenumber/*.ts test",
"postinstall": "yarn postinstall:lib && yarn postinstall:tests",
"build": "tsc -p .",
"install-tests": "cp ../test/awesome-phonenumber/*.ts test",
"build:compile": "tsc -p .",
"build": "yarn install-tests && yarn build:compile",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"devDependencies": {
"@babel/preset-env": "^7.17.10",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.5.0",
"awesome-phonenumber": "workspace:^",
"jest": "^28.1.0",
"ts-jest-resolver": "^2.0.0",
"ts-node": "^10.7.0",
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"pre-commit": [
"test"
],
"workspaces": [
"webpack",
"cjs-test",
"esm-test"
],
"files": [
"lib",
"index.js",
Expand Down Expand Up @@ -79,5 +84,6 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
},
"packageManager": "yarn@3.2.4"
}
2 changes: 1 addition & 1 deletion webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"type": "module",
"license": "MIT",
"scripts": {
"postinstall": "cd node_modules && ln -s ../.. awesome-phonenumber || true",
"build": "webpack",
"test": "node test/browser.js"
},
"devDependencies": {
"awesome-phonenumber": "workspace:^",
"html-webpack-plugin": "^5.5.0",
"puppeteer": "^13.7.0",
"webpack": "^5.72.0",
Expand Down
Loading

0 comments on commit f999ae1

Please sign in to comment.