8 Commits

Author SHA1 Message Date
92604a87a0 1.0.7 2021-03-07 23:27:01 +00:00
1b35948d70 fix(core): update 2021-03-07 23:27:01 +00:00
264a21ab4b 1.0.6 2021-03-07 23:26:00 +00:00
d472e18ff0 fix(core): update 2021-03-07 23:25:59 +00:00
dbff40819f 1.0.5 2020-07-08 00:48:45 +00:00
67822b36d3 fix(core): update 2020-07-08 00:48:45 +00:00
f1d348bb6a 1.0.4 2020-07-07 20:07:22 +00:00
fab41e358c fix(core): update 2020-07-07 20:07:21 +00:00
3 changed files with 4608 additions and 2796 deletions

7383
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartparcel",
"version": "1.0.3",
"version": "1.0.7",
"private": false,
"description": "a wrapper for parcel",
"main": "dist_ts/index.js",
@@ -15,14 +15,14 @@
"@gitzone/tsbuild": "^2.0.22",
"@gitzone/tstest": "^1.0.15",
"@pushrocks/tapbundle": "^3.0.7",
"@types/node": "^10.11.7",
"tslint": "^5.11.0",
"@types/node": "^14.14.32",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {
"@pushrocks/smartpath": "^4.0.3",
"parcel-bundler": "^1.12.4",
"@types/parcel-bundler": "^1.12.1"
"parcel-bundler": "1.12.3",
"@types/parcel-bundler": "1.12.3"
},
"files": [
"ts/**/*",

View File

@@ -40,11 +40,18 @@ export class Parcel {
* just builds
*/
public async build() {
const bundler = new plugins.parcel(this.entryFiles, this.options);
const bundler = new plugins.parcel(this.entryFiles, {
...this.options,
watch: false
});
// Run the bundler, this returns the main bundle
// Use the events if you're using watch mode as this promise will only trigger once and not for every rebuild
const bundle = await bundler.bundle();
const bundle = await bundler.bundle().catch(e => {
console.error(e);
throw e;
});
}
constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {