Skip to content

Commit 1c037e7

Browse files
authored
Fixed the cjs bundle not working (#4)
1 parent dc12a2f commit 1c037e7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/rollup-plugin-executable-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from "fs";
22

3-
const executableScript = async () => {
3+
const executableScript = () => {
44
let executableScriptPath = "";
55

66
return {

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "rollup-plugin-executable-script",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A plugin to tell system to use node interpreter and provide executable permissions to the output file.",
55
"license": "MIT",
66
"author": "Thejus Paul",
77
"homepage": "https://github.com/Thejus-Paul/rollup-plugin-executable-script",
88
"bugs": "https://github.com/Thejus-Paul/rollup-plugin-executable-script/issues",
99
"main": "./dist/index.cjs.js",
1010
"module": "./dist/index.js",
11-
"type": "module",
1211
"types": "./types/index.d.ts",
1312
"exports": {
1413
"default": "./dist/index.cjs.js",
@@ -19,7 +18,7 @@
1918
"node": ">=16.0.0"
2019
},
2120
"scripts": {
22-
"build": "rollup -c"
21+
"build": "rollup -c --bundleConfigAsCjs"
2322
},
2423
"files": [
2524
"dist",

0 commit comments

Comments
 (0)