Skip to content

Commit

Permalink
build: remove rollup.js dependency (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl authored Apr 20, 2024
1 parent ac5ab6b commit 3d7b02e
Show file tree
Hide file tree
Showing 15 changed files with 97 additions and 872 deletions.
61 changes: 42 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,50 @@
"bugs": {
"url": "https://github.com/gpbl/react-day-picker/issues"
},
"main": "dist/index.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.min.js",
"types": "dist/index.d.ts",
"style": "dist/style.css",
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts",
"module": "./dist/esm/index.js",
"style": "./src/styles.css",
"exports": {
".": {
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"default": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./style.css": {
"default": "./src/style.css"
},
"./dist/style.css": {
"default": "./src/style.css"
},
"./style.module.css": {
"types": "./src/style.d.ts",
"default": "./src/style.css"
},
"./dist/style.module.css": {
"types": "./src/style.d.ts",
"default": "./src/style.css"
},
"./package.json": {
"import": "./package.json",
"require": "./package.json",
"default": "./package.json"
}
},
"scripts": {
"prepublish": "pnpm build",
"build": "rimraf dist && rollup -c",
"build-watch": "rollup -c -w",
"build": "pnpm build:cjs && pnpm build:esm",
"build:cjs": "tsc --project tsconfig-cjs.json",
"build:esm": "tsc --project tsconfig-esm.json",
"lint": "eslint .",
"test": "jest",
"test-watch": "jest --watch",
Expand All @@ -34,10 +69,6 @@
],
"devDependencies": {
"@jest/types": "^29.6.3",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-typescript": "^11.1.5",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.1.2",
Expand All @@ -60,19 +91,11 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mockdate": "^3.0.5",
"postcss": "^8.4.32",
"postcss-d-ts": "^1.2.0",
"postcss-typescript-d-ts": "^1.0.0",
"prettier": "^3.1.1",
"prettier-plugin-jsdoc": "^1.3.0",
"react": "^18.2.0",
"react-classnaming": "^0.16.4",
"react-dom": "^18.2.0",
"rimraf": "^5.0.1",
"rollup": "^4.9.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-postcss": "^4.0.2",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.8",
Expand Down
Loading

0 comments on commit 3d7b02e

Please sign in to comment.