Skip to content

Commit 44eeb64

Browse files
committed
feat: migrate from rollup, explicit exports, verbatim imports
1 parent 17e376b commit 44eeb64

16 files changed

+616
-499
lines changed

.prettierrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33
"endOfLine": "lf",
44
"printWidth": 100,
55
"tabWidth": 2,
6-
"useTabs": false
6+
"useTabs": false,
7+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
8+
"importOrderGroupNamespaceSpecifiers": true,
9+
"importOrderParserPlugins": ["typescript", "jsx"],
10+
"importOrderSortSpecifiers": true,
11+
"importOrderSeparation": true,
12+
"importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"]
713
}

build/minifications.mjs

Lines changed: 0 additions & 106 deletions
This file was deleted.

package.json

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,35 @@
77
"author": "Anton Kosykh",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/atomic-router/react"
10+
"url": "git+https://github.com/atomic-router/react.git"
1111
},
1212
"contributors": [
1313
"Anton Kosykh",
1414
"Sergey Sova <[email protected]>"
1515
],
1616
"license": "MIT",
17-
"main": "dist/atomic-router.js",
18-
"module": "dist/atomic-router.mjs",
19-
"unpkg": "dist/atomic-router.umd.js",
20-
"types": "dist/atomic-router.d.ts",
17+
"main": "dist/index.js",
18+
"module": "dist/index.mjs",
19+
"types": "dist/index.d.ts",
2120
"exports": {
2221
".": {
2322
"import": {
24-
"types": "./dist/atomic-router.d.mts",
25-
"default": "./dist/atomic-router.mjs"
23+
"types": "./dist/index.d.mts",
24+
"default": "./dist/index.mjs"
2625
},
2726
"require": {
28-
"types": "./dist/atomic-router.d.ts",
29-
"default": "./dist/atomic-router.js"
27+
"types": "./dist/index.d.ts",
28+
"default": "./dist/index.js"
3029
},
31-
"node": "./dist/atomic-router.js",
32-
"default": "./dist/atomic-router.mjs"
30+
"default": "./dist/index.mjs"
3331
},
3432
"./package.json": "./package.json"
3533
},
3634
"files": [
3735
"dist"
3836
],
3937
"engines": {
40-
"node": ">=14"
38+
"node": ">=18"
4139
},
4240
"scripts": {
4341
"test": "tsc --noEmit && vitest run && publint ./",
@@ -46,18 +44,18 @@
4644
"test:watch": "vitest --watch",
4745
"lint": "prettier --check \"{src,test}/**/*.{ts,tsx,js,jsx,md}\"",
4846
"format": "prettier --write \"{src,test}/**/*.{ts,tsx,js,jsx,md}\"",
49-
"build": "rollup -c",
47+
"build": "tsup",
5048
"prepare": "pnpm build",
5149
"dev": "cd ./playground && vite"
5250
},
5351
"dependencies": {
54-
"clsx": "^1.1.1"
52+
"clsx": "^2.1.1"
5553
},
5654
"peerDependencies": {
57-
"atomic-router": "^0.11.0",
55+
"atomic-router": "^0.12.0",
5856
"effector": "^22.8.8 || ^23",
5957
"effector-react": "^22.1.0 || ^23",
60-
"react": "^17 || ^18"
58+
"react": "^17 || ^18 || ^19"
6159
},
6260
"devDependencies": {
6361
"@babel/cli": "^7.23.4",
@@ -69,28 +67,24 @@
6967
"@babel/preset-env": "^7.23.8",
7068
"@babel/preset-react": "^7.23.3",
7169
"@babel/preset-typescript": "^7.23.3",
72-
"@rollup/plugin-babel": "^6.0.4",
73-
"@rollup/plugin-commonjs": "^25.0.7",
74-
"@rollup/plugin-node-resolve": "^15.2.3",
75-
"@rollup/plugin-terser": "^0.4.4",
7670
"@testing-library/jest-dom": "^6.2.0",
77-
"@testing-library/react": "^14.1.2",
71+
"@testing-library/react": "^16.3.0",
72+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
7873
"@types/jest": "^29.5.11",
7974
"@types/react": "^17 || ^18",
8075
"@vitejs/plugin-react": "^4.2.1",
81-
"atomic-router": "^0.11.0",
76+
"atomic-router": "^0.12.0",
8277
"effector": "^23.3.0",
8378
"effector-react": "^23.3.0",
8479
"history": "^5.3.0",
8580
"jsdom": "^26.1.0",
86-
"prettier": "^3.2.2",
81+
"prettier": "^3.5.3",
8782
"publint": "^0.3.12",
8883
"react": "^18.2.0",
8984
"react-dom": "^18.2.0",
90-
"rollup": "^4.9.5",
91-
"rollup-plugin-dts": "^6.1.0",
9285
"tslib": "^2.6.2",
93-
"typescript": "^5.3.3",
86+
"tsup": "^8.4.0",
87+
"typescript": "^5.8.3",
9488
"vite": "^6.3.5",
9589
"vitest": "^3.1.3"
9690
},

0 commit comments

Comments
 (0)