sys-shim 0.0.1-20 → 0.0.1-21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sys-shim",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.0.1-20",
5
+ "version": "0.0.1-21",
6
6
  "main": "./script/npm-pkg/node/main.min.cjs",
7
7
  "module": "./script/npm-pkg/node/main.min.mjs",
8
8
  "browser": {
@@ -173,7 +173,7 @@ function genFile(cfg) {
173
173
  fs.writeFileSync(`${newCfg.input}/package.json`, newStr)
174
174
  runConfig = JSON.parse(newStr)
175
175
  } else {
176
- runConfig = require(`${cfg.input}/package.json`)
176
+ runConfig = JSON.parse(fs.readFileSync(`${cfg.input}/package.json`, `utf8`))
177
177
  }
178
178
  console.log(`Runtime configuration:`, runConfig)
179
179
  return newCfg