Skip to content

Commit fc9acd3

Browse files
authored
Upgrade Rollup to v4
Upgrade Rollup from v2 to v4 and move the CommonJS and ESM build options into the npm build script. Remove the unused browser build and configuration file, and avoid installing development dependencies in the artifact-based test jobs.
1 parent 05b3c84 commit fc9acd3

3 files changed

Lines changed: 3 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ jobs:
5555
with:
5656
node-version: ${{ matrix.node-version }}
5757

58-
- name: Install dependencies
59-
run: npm install --ignore-scripts
60-
6158
- name: Download build
6259
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6360
with:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
"node": ">=0.10.0"
3535
},
3636
"scripts": {
37-
"build": "rollup -c",
37+
"build": "rollup is-plain-object.js --format cjs --file dist/is-plain-object.js && rollup is-plain-object.js --format esm --file dist/is-plain-object.mjs",
3838
"test": "node test.js",
39-
"prepare": "rollup -c"
39+
"prepare": "npm run build"
4040
},
4141
"devDependencies": {
4242
"gulp-format-md": "^1.0.0",
43-
"rollup": "^2.22.1"
43+
"rollup": "^4.62.5"
4444
},
4545
"keywords": [
4646
"check",

rollup.config.js

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

0 commit comments

Comments
 (0)