Skip to content

Commit

Permalink
use --bundleConfigAsCjs flag
Browse files Browse the repository at this point in the history
rollup.config.js がデフォルトで ESM 扱いになっていたので対応
https://zenn.dev/hankei6km/articles/rollup-config-js-as-esm
  • Loading branch information
kou029w committed Nov 18, 2023
1 parent 5318b1d commit 584f2b9
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ES Modules 作成し、[Rollup](https://rollupjs.org/)などを用いて、UMD
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ads1015/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ads1x15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adt7410/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/aht10/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ak8963/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/amg8833/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/apds9960/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/arduino-stepping-motor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/as3935/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bh1750/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bme280/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bmp180/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bmp280/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/canzasi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gp2y0e03/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/grove-accelerometer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/grove-gesture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/grove-light/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/grove-oled-display/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/grove-touch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ht16k33/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/htu21d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ina219/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mlx90614/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mpu6050/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mpu6500/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/neopixel-i2c/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pca9685-pwm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pca9685/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pcf8591/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/s11059/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/scd40/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/seesaw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sht30/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tca9548a/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"doc": "typedoc",
"build": "run-p build:*",
"build:esm": "tsc --declaration --outDir esm",
"build:umd": "rollup -c",
"build:umd": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tcs34725/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/veml6070/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vl53l0x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vl53l1x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"scripts": {
"build": "rollup -c",
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down

0 comments on commit 584f2b9

Please sign in to comment.