@soleil-se/build-app 1.3.0 → 1.3.1

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/index.js CHANGED
@@ -82,7 +82,7 @@ async function main() {
82
82
  } else {
83
83
  await runTasks(tasks);
84
84
  }
85
- if (args.run) await runTasks(tasks);
85
+ if (args.build || args.run) await runTasks(tasks);
86
86
  }
87
87
 
88
88
  main().catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/build-app",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "bin": {
5
5
  "build-app": "./bin/index.js",
6
6
  "sv-app-build": "./bin/index.js"
package/rollup/server.js CHANGED
@@ -62,7 +62,7 @@ export default function rollupServer({
62
62
  bundleCache = cache && bundle.cache;
63
63
  await bundle.write({
64
64
  file: output,
65
- intro: 'var Promise = Promise || { resolve: () => {} };',
65
+ intro: 'var Promise = Promise || { resolve: () => {} }; var global = global || this; var self = global; var setTimeout = setTimeout || function(cb) { cb() };',
66
66
  format: 'iife',
67
67
  });
68
68