diff --git a/src/buildtool.ts b/src/buildtool.ts index 61ad5906..17d09fb5 100644 --- a/src/buildtool.ts +++ b/src/buildtool.ts @@ -7,7 +7,7 @@ export interface RunBuildOptions { } export function generateCommand(options: RunBuildOptions): string { - const pluginsPath = path.join(__dirname,"plugins").replace("'","''"); + const pluginsPath = path.join(__dirname,"plugins").replaceAll("'","''"); let command: string = "addpath('"+ pluginsPath +"'); buildtool" if (options.Tasks) { command = command + " " + options.Tasks; diff --git a/src/buildtool.unit.test.ts b/src/buildtool.unit.test.ts index b6160b3f..9590927e 100644 --- a/src/buildtool.unit.test.ts +++ b/src/buildtool.unit.test.ts @@ -4,7 +4,7 @@ import * as path from "path"; import * as buildtool from "./buildtool"; describe("command generation", () => { -const command = "addpath('"+ path.join(__dirname, "plugins").replace("'","''") +"'); buildtool" +const command = "addpath('"+ path.join(__dirname, "plugins").replaceAll("'","''") +"'); buildtool" it("buildtool invocation with unspecified tasks and build options", () => { const options: buildtool.RunBuildOptions = { Tasks: "", diff --git a/tsconfig.json b/tsconfig.json index 01c44939..2775bac6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES6", + "target": "ES2022", "module": "CommonJS", "declaration": true, "sourceMap": true,