tungsten 0.1.33 → 0.1.35

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
  }
@@ -1 +1 @@
1
- {"version":3,"file":"staticGen.d.ts","sourceRoot":"","sources":["../../src/staticGen/staticGen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAchD,wBAAsB,SAAS,CAAC,SAAS,EAAE,SAAS,iBA8JnD"}
1
+ {"version":3,"file":"staticGen.d.ts","sourceRoot":"","sources":["../../src/staticGen/staticGen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAchD,wBAAsB,SAAS,CAAC,SAAS,EAAE,SAAS,iBAgKnD"}
@@ -122,8 +122,8 @@ export async function staticGen(framework) {
122
122
  }
123
123
  console.log('rewriteMap', rewriteMap);
124
124
  const copyPromises = [fsExtra.copy(join(buildLocation, staticFolder), join(projectDir, staticSiteFolder)),
125
- // asset files - these may not exist - why this error if they don't? Probably
126
- fsExtra.copy(join(buildLocation, assetsFolder), join(projectDir, staticSiteFolder, 'assets')),
125
+ // assets folder
126
+ existsSync(join(buildLocation, publicFolder)) ? fsExtra.copy(join(buildLocation, assetsFolder), join(projectDir, staticSiteFolder, 'assets')) : null,
127
127
  // public files
128
128
  existsSync(join(buildLocation, publicFolder)) ? fsExtra.copy(join(buildLocation, publicFolder), join(projectDir, staticSiteFolder)) : null,
129
129
  // copy in the bundle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tungsten",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
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",