Skip to content

Commit 7641169

Browse files
committed
script updates
1 parent 030ceec commit 7641169

File tree

5 files changed

+342
-163
lines changed

5 files changed

+342
-163
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
npm-debug.log
22

3-
/build/
43
/docs/api/
54
/website/build/
65
node_modules/
@@ -14,6 +13,11 @@ node_modules/
1413
/packages/*/esm/
1514
/packages/*/umd/
1615

16+
# v6+ build files
17+
/build/
18+
/packages/*/dist/
19+
/packages/*/LICENSE.md
20+
1721
# compat module copies
1822
/packages/react-router-dom-v5-compat/react-router-dom
1923

package.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"scripts": {
18-
"build": "rollup -c && tsc -b",
18+
"build": "rollup -c && node scripts/copy-to-root.mjs",
1919
"changeset": "changeset",
2020
"clean": "git clean -fdX .",
2121
"format": "prettier --ignore-path .eslintignore --write .",
@@ -42,15 +42,18 @@
4242
"dependencies": {
4343
"@ampproject/filesize": "^4.3.0",
4444
"@ampproject/rollup-plugin-closure-compiler": "^0.26.0",
45-
"@babel/core": "^7.7.4",
46-
"@babel/preset-env": "^7.15.8",
47-
"@babel/preset-modules": "^0.1.4",
48-
"@babel/preset-react": "^7.14.5",
49-
"@babel/preset-typescript": "^7.15.0",
45+
"@babel/core": "^7.18.2",
46+
"@babel/preset-env": "^7.18.2",
47+
"@babel/preset-modules": "^0.1.5",
48+
"@babel/preset-react": "^7.17.12",
49+
"@babel/preset-typescript": "^7.17.12",
5050
"@changesets/changelog-github": "0.4.4",
5151
"@changesets/cli": "^2.22.0",
5252
"@remix-run/web-fetch": "4.1.3",
53-
"@rollup/plugin-replace": "^2.2.1",
53+
"@rollup/plugin-babel": "^5.3.1",
54+
"@rollup/plugin-node-resolve": "^13.3.0",
55+
"@rollup/plugin-replace": "^4.0.0",
56+
"@rollup/plugin-typescript": "^8.3.2",
5457
"@testing-library/jest-dom": "5.16.3",
5558
"@testing-library/react": "12.1.4",
5659
"@types/jest": "26.x",
@@ -74,6 +77,7 @@
7477
"eslint-plugin-jsx-a11y": "^6.4.1",
7578
"eslint-plugin-react": "^7.24.0",
7679
"eslint-plugin-react-hooks": "next",
80+
"fs-extra": "^10.1.0",
7781
"history": "^5.3.0",
7882
"jest": "^26.6.3",
7983
"jsonfile": "^6.1.0",
@@ -84,16 +88,15 @@
8488
"react": "^17.0.2",
8589
"react-dom": "^17.0.2",
8690
"react-test-renderer": "^17.0.2",
87-
"rollup": "^1.27.9",
88-
"rollup-plugin-babel": "^4.3.3",
89-
"rollup-plugin-copy": "^3.1.0",
91+
"rollup": "^2.75.5",
92+
"rollup-plugin-copy": "^3.4.0",
9093
"rollup-plugin-extensions": "^0.1.0",
91-
"rollup-plugin-prettier": "^0.6.0",
94+
"rollup-plugin-prettier": "^2.2.2",
9295
"rollup-plugin-terser": "^7.0.2",
9396
"semver": "^7.3.5",
9497
"ts-jest": "^26.5.6",
9598
"type-fest": "^2.13.0",
96-
"typescript": "^4.3.5"
99+
"typescript": "^4.7.3"
97100
},
98101
"filesize": {
99102
"build/node_modules/@remix-run/router/router.production.min.js": {

0 commit comments

Comments
 (0)