Skip to content

Commit

Permalink
Upgrade Yarn to Yarn Berry (v2) (#430)
Browse files Browse the repository at this point in the history
* Upgrade Yarn to Yarn Berry (v2)

* Add missing workspace, fix link to parent lib
  • Loading branch information
wojtekmaj committed Sep 11, 2020
1 parent 8c94777 commit 9f3c5df
Show file tree
Hide file tree
Showing 6 changed files with 11,367 additions and 5,875 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
.cache
.idea
.vscode
.yarn/*
!.yarn/releases
!.yarn/plugins
dist
coverage
node_modules
Expand Down
55 changes: 55 additions & 0 deletions .yarn/releases/yarn-2.2.2.cjs

Large diffs are not rendered by default.

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

yarnPath: .yarn/releases/yarn-2.2.2.cjs
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
"source": "src/index.js",
"sideEffects": ["*.css"],
"sideEffects": [
"*.css"
],
"workspaces": [
".",
"test"
],
"scripts": {
"build": "yarn build-js-all && yarn copy-styles && yarn build-styles",
"build-js-all": "yarn build-js-esm && yarn build-js-umd",
Expand Down
6 changes: 3 additions & 3 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "A test page for React-Calendar.",
"private": true,
"scripts": {
"build": "parcel build index.html --public-url ./",
"start": "parcel index.html"
"build": "NODE_ENV=production webpack",
"start": "NODE_ENV=development webpack-dev-server"
},
"author": {
"name": "Wojciech Maj",
Expand All @@ -16,7 +16,7 @@
"@wojtekmaj/date-utils": "^1.0.2",
"prop-types": "^15.6.2",
"react": "^16.5.0",
"react-calendar": "latest",
"react-calendar": "portal:../",
"react-dom": "^16.5.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 9f3c5df

Please sign in to comment.