Skip to content

Commit

Permalink
fix(pkg): use explicit .cjs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 20, 2021
1 parent 61d719a commit 909a539
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions bin/unbuild.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../dist/cli.cjs')
2 changes: 0 additions & 2 deletions bin/unbuild.js

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "An unified javascript build system",
"repository": "unjs/unbuild",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"bin": {
"unbuild": "./bin/unbuild.js"
"unbuild": "./bin/unbuild.cjs"
},
"files": [
"bin",
Expand Down

0 comments on commit 909a539

Please sign in to comment.