Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 92604a87a0 | |||
| 1b35948d70 | |||
| 264a21ab4b | |||
| d472e18ff0 | |||
| dbff40819f | |||
| 67822b36d3 | |||
| f1d348bb6a | |||
| fab41e358c |
7383
package-lock.json
generated
7383
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -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/**/*",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user