fix(core): update

This commit is contained in:
2022-03-15 13:45:03 +01:00
parent ae16fd8170
commit a3ab55cbc6
4 changed files with 50 additions and 23 deletions

View File

@ -2,7 +2,7 @@ import * as plugins from './tsbundle.plugins.js';
import { logger } from './tsbundle.logging.js';
export class TsBundle {
public async buildTest (
public async buildTest(
cwdArg: string,
fromArg: string,
toArg: string,
@ -11,7 +11,10 @@ export class TsBundle {
) {
const done = plugins.smartpromise.defer();
const threadsimple = new plugins.smartspawn.ThreadSimple(
plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), './tsbundle.class.tsbundleprocess.js'),
plugins.path.join(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'./tsbundle.class.tsbundleprocess.js'
),
[],
{
env: {
@ -21,7 +24,7 @@ export class TsBundle {
tsbundleFrom: fromArg,
tsbundleTo: toArg,
tsbundleBundler: bundlerArg,
tsbundleArgv: argvArg,
tsbundleArgv: argvArg ? JSON.stringify(argvArg) : '{}',
},
}
);
@ -32,7 +35,7 @@ export class TsBundle {
await done.promise;
}
public async buildProduction (
public async buildProduction(
cwdArg: string,
fromArg: string,
toArg: string,
@ -41,7 +44,10 @@ export class TsBundle {
) {
const done = plugins.smartpromise.defer();
const threadsimple = new plugins.smartspawn.ThreadSimple(
plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), './tsbundle.class.tsbundleprocess.js'),
plugins.path.join(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'./tsbundle.class.tsbundleprocess.js'
),
[],
{
env: {
@ -51,7 +57,7 @@ export class TsBundle {
tsbundleFrom: fromArg,
tsbundleTo: toArg,
tsbundleBundler: bundlerArg,
tsbundleArgv: argvArg,
tsbundleArgv: argvArg ? JSON.stringify(argvArg) : '{}',
},
}
);