|
3 | 3 | "version": "0.0.1",
|
4 | 4 | "private": true,
|
5 | 5 | "engines": {
|
6 |
| - "node": ">=12" |
| 6 | + "node": ">=12", |
| 7 | + "pnpm": ">=8" |
7 | 8 | },
|
8 |
| - "workspaces": [ |
9 |
| - "packages/*" |
10 |
| - ], |
| 9 | + "packageManager": "[email protected]", |
11 | 10 | "resolutions": {
|
12 | 11 | "react": "18.2.0",
|
13 | 12 | "react-animate-height": "3.0.4"
|
|
17 | 16 | "@babel/core": "^7.10",
|
18 | 17 | "@babel/plugin-proposal-class-properties": "^7.10",
|
19 | 18 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
20 |
| - "@babel/plugin-proposal-private-property-in-object": "^7.14.0", |
| 19 | + "@babel/plugin-proposal-private-methods": "^7.18.6", |
| 20 | + "@babel/plugin-proposal-private-property-in-object": "^7.21.11", |
| 21 | + "@babel/plugin-transform-private-methods": "^7.23.3", |
| 22 | + "@babel/plugin-transform-private-property-in-object": "^7.23.4", |
21 | 23 | "@babel/plugin-transform-runtime": "^7.14.5",
|
22 | 24 | "@babel/preset-env": "^7.10",
|
23 | 25 | "@babel/preset-react": "^7.10",
|
|
39 | 41 | "@storybook/react": "7.6.17",
|
40 | 42 | "@storybook/react-webpack5": "7.6.17",
|
41 | 43 | "@storybook/storybook-deployer": "^2.8.10",
|
42 |
| - "@storybook/test-runner": "^0.17.0", |
| 44 | + "@storybook/test-runner": "^0.16.0", |
43 | 45 | "@types/jest": "^26.0.23",
|
44 | 46 | "@types/node": "^15.0.0",
|
45 | 47 | "@types/styled-components": "^5.1.9",
|
|
74 | 76 | "jest-styled-components": "^7.0.5",
|
75 | 77 | "js-yaml": "^4.1.0",
|
76 | 78 | "json-loader": "^0.5.7",
|
77 |
| - "lerna": "^3.18.4", |
| 79 | + "lerna": "^8.1.9", |
78 | 80 | "lint-staged": "^8.2.0",
|
79 | 81 | "msw": "^2.3.1",
|
80 | 82 | "nock": "^11.7.0",
|
81 | 83 | "prettier": "^1.19.1",
|
82 | 84 | "puppeteer": "^10.2.0",
|
| 85 | + "querystring-es3": "^0.2.1", |
83 | 86 | "react": "^18.2.0",
|
84 | 87 | "react-dom": "^18.2.0",
|
85 |
| - "react-intl": "^5.24.6", |
| 88 | + "react-intl": "^6.8.4", |
86 | 89 | "react-test-renderer": "^16.14.0",
|
87 | 90 | "semantic-release": "^17.1.1",
|
88 | 91 | "semantic-release-monorepo": "^7.0.2",
|
|
103 | 106 | "yaml-sort": "^2.0.0"
|
104 | 107 | },
|
105 | 108 | "scripts": {
|
106 |
| - "bootstrap": "lerna bootstrap --use-workspaces", |
| 109 | + "bootstrap": "pnpm install", |
| 110 | + "preinstall": "npx only-allow pnpm", |
107 | 111 | "build:cjs": "lerna exec --parallel -- babel --extensions '.js,.ts,.tsx,.snap' --ignore **/*.story.js,**/*.story.ts,**/*.story.d.ts,**/*.story.tsx,**/*.spec.js,**/*.spec.ts,**/*.test.js,**/*.test.ts,**/__tests__/**,**/__unpublished__/**,**/*.snap --ignore **/__tests__/** -D --no-copy-ignored --root-mode upward --source-maps true src -d lib",
|
108 | 112 | "build:esm": "lerna exec --parallel -- cross-env BABEL_ENV=esm babel --extensions '.js,.ts,.tsx,.snap' --ignore **/*.story.js,**/*.story.ts,**/*.story.d.ts,**/*.story.tsx,**/*.spec.js,**/*.spec.ts,**/*.test.js,**/*.test.ts,**/__tests__/**,**/__unpublished__/**,**/*.snap --ignore **/__tests__/** -D --no-copy-ignored --root-mode upward --source-maps true src -d esm",
|
109 | 113 | "check:i18n-all": "node packages/scripts/lib/run-validate-i18n.js packages/**/src packages/**/i18n",
|
110 | 114 | "check:i18n-en-fr": "node packages/scripts/lib/run-validate-i18n.js packages/**/src packages/**/i18n/en-US.yml packages/**/i18n/fr.yml",
|
111 | 115 | "clean": "git clean -Xdf",
|
112 |
| - "prepublish": "yarn typescript && yarn build:cjs && yarn build:esm", |
| 116 | + "prepublish": "pnpm typescript && pnpm build:cjs && pnpm build:esm", |
113 | 117 | "check-eslint-config": "eslint --print-config jestconfig.js | eslint-config-prettier-check",
|
114 | 118 | "coverage": "jest --coverage",
|
115 | 119 | "deploy-storybook": "storybook-to-ghpages",
|
116 | 120 | "dev": "storybook dev -p 5555",
|
117 |
| - "predev": "yarn", |
| 121 | + "postinstall": "pnpm prepublish", |
| 122 | + "predev": "pnpm install", |
118 | 123 | "build-storybook": "storybook build",
|
119 | 124 | "lint:js": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern esm --ignore-pattern lib --ignore-pattern node_modules --ignore-pattern storybook-static --quiet",
|
120 | 125 | "lint:graphql": "eslint . --ext .graphql --ignore-pattern esm --ignore-pattern lib --ignore-pattern node_modules --ignore-pattern storybook-static",
|
121 | 126 | "lint:fixjs": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern esm --ignore-pattern lib --ignore-pattern node_modules --ignore-pattern storybook-static --fix",
|
122 | 127 | "lint:styles": "stylelint \"packages/**/!(*.d).{j,t}s{,x}\"",
|
123 |
| - "lint": "yarn lint:js && yarn lint:styles && yarn lint:graphql", |
| 128 | + "lint": "pnpm lint:js && pnpm lint:styles && pnpm lint:graphql", |
124 | 129 | "prettier": "prettier --write \"**/*.{json,md,yml}\"",
|
125 | 130 | "semantic-release": "lerna exec --concurrency 1 -- semantic-release -e semantic-release-monorepo",
|
126 |
| - "test": "yarn lint:js && yarn lint:styles && yarn check:i18n-en-fr && yarn typescript && yarn unit && yarn test-storybook && yarn a11y-test", |
| 131 | + "test": "pnpm lint:js && pnpm lint:styles && pnpm check:i18n-en-fr && pnpm typescript && pnpm unit && pnpm test-storybook && pnpm a11y-test", |
127 | 132 | "typescript": "lerna run tsc",
|
128 | 133 | "unit": "jest --testPathIgnorePatterns a11y .d.ts",
|
129 | 134 | "update-internal-dependencies": "node scripts/update-internal-dependencies.js",
|
130 | 135 | "test-storybook": "test-storybook --url http://localhost:5555",
|
131 |
| - "update-snapshots": "yarn build-storybook; npx concurrently -k -s first -n \"SB,TEST\" \"npx http-server storybook-static --port 5555 --silent\" \"npx wait-on tcp:5555 && yarn test-storybook --url http://localhost:5555 -u\"" |
| 136 | + "update-snapshots": "pnpm build-storybook; npx concurrently -k -s first -n \"SB,TEST\" \"npx http-server storybook-static --port 5555 --silent\" \"npx wait-on tcp:5555 && pnpm test-storybook --url http://localhost:5555 -u\"", |
| 137 | + "pack-all": "lerna exec --no-private -- 'pnpm pack && echo \"Package tarball: $(pwd)/$(ls *.tgz)\"'" |
132 | 138 | },
|
133 | 139 | "eslintConfig": {
|
134 | 140 | "env": {
|
|
255 | 261 | "husky": {
|
256 | 262 | "hooks": {
|
257 | 263 | "pre-commit": "lint-staged",
|
258 |
| - "pre-push": "yarn check-eslint-config && yarn lint" |
| 264 | + "pre-push": "pnpm check-eslint-config && pnpm lint" |
259 | 265 | }
|
260 | 266 | },
|
261 | 267 | "lint-staged": {
|
|
270 | 276 | ],
|
271 | 277 | "*.graphql": [
|
272 | 278 | "prettier --write",
|
273 |
| - "yarn lint:graphql --fix", |
| 279 | + "pnpm lint:graphql --fix", |
274 | 280 | "git add"
|
275 | 281 | ],
|
276 | 282 | "!(.github/**).{yml,yaml}": [
|
|
0 commit comments