tungsten 0.1.32 → 0.1.34

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.
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/build/bundle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAQpE,wBAAsB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,uBAAuB,oBAqClF"}
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/build/bundle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAQpE,wBAAsB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,uBAAuB,oBAsClF"}
@@ -19,6 +19,7 @@ export async function bundle(projectDir, appConfig) {
19
19
  subProcess.on('data', data => cliLog(data));
20
20
  subProcess.on('close', (code, message) => {
21
21
  if (code === 0) resolve(null);else {
22
+ // can we show teh error message? Only getting err code now I think
22
23
  errorOut(`bundle process failed with code ${code}, message "${message}"`);
23
24
  reject(code);
24
25
  }
@@ -5,7 +5,7 @@ import { terser } from "rollup-plugin-terser";
5
5
  //import terser from "@rollup/plugin-terser" // to do
6
6
  //import gzip from "rollup-plugin-gzip"
7
7
  import jsonModule from "@rollup/plugin-json";
8
- const json = jsonModule.default;
8
+ const json = typeof jsonModule === "function" ? jsonModule : jsonModule.default;
9
9
  import { visualizer } from "rollup-plugin-visualizer";
10
10
  const rollupConfig = {
11
11
  plugins: [json(), nodeResolve(), commonjs(),
@@ -5,7 +5,7 @@ import { terser } from "rollup-plugin-terser";
5
5
  //import terser from "@rollup/plugin-terser" // to do
6
6
  //import gzip from "rollup-plugin-gzip"
7
7
  import jsonModule from "@rollup/plugin-json";
8
- const json = jsonModule.default;
8
+ const json = typeof jsonModule === "function" ? jsonModule : jsonModule.default;
9
9
  const rollupConfig = {
10
10
  plugins: [json(), nodeResolve(), commonjs(),
11
11
  // must be before babel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tungsten",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,6 +32,7 @@
32
32
  "@rollup/plugin-babel": "^5.3.1",
33
33
  "@rollup/plugin-commonjs": "^22.0.2",
34
34
  "@rollup/plugin-node-resolve": "^14.1.0",
35
+ "@rollup/plugin-json": "^6.1.0",
35
36
  "@types/ini": "^1.3.34",
36
37
  "axios": "^0.27.2",
37
38
  "babel-loader": "^8.3.0",
@@ -90,7 +91,6 @@
90
91
  "devDependencies": {
91
92
  "@babel/generator": "^7.25.5",
92
93
  "@babel/types": "^7.25.4",
93
- "@rollup/plugin-json": "^6.1.0",
94
94
  "@types/babel-types": "^7.0.15",
95
95
  "@types/babel__core": "^7.20.5",
96
96
  "@types/babel__generator": "^7.6.8",