diff --git a/preproduction-azure-pipelines.yml b/preproduction-azure-pipelines.yml index 0f888ebbd851..4158edcf2393 100644 --- a/preproduction-azure-pipelines.yml +++ b/preproduction-azure-pipelines.yml @@ -51,7 +51,7 @@ jobs: inputs: verbose: false - script: 'npm install -D @azure/rest-api-specs-scripts@0.3.9' - - script: 'npm run tsc && node scripts/semanticValidation.js' + - script: 'npm run tsc && node scripts/semanticValidation2.js' displayName: 'Semantic Validation' - job: "ModelValidation" @@ -63,7 +63,7 @@ jobs: inputs: verbose: false - script: 'npm install -D @azure/rest-api-specs-scripts@0.3.9' - - script: 'npm run tsc && node scripts/modelValidation.js' + - script: 'npm run tsc && node scripts/modelValidation2.js' displayName: 'Model Validation' - job: "Avocado" diff --git a/scripts/modelValidation2.js b/scripts/modelValidation2.js new file mode 100644 index 000000000000..dbecf2b83d2a --- /dev/null +++ b/scripts/modelValidation2.js @@ -0,0 +1,7 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License in the project root for license information. +Object.defineProperty(exports, "__esModule", { value: true }); +const rest_api_specs_scripts_1 = require("@azure/rest-api-specs-scripts"); +rest_api_specs_scripts_1.modelValidation.main().catch(e => { console.log(e); process.exit(1); }); +//# sourceMappingURL=modelValidation2.js.map \ No newline at end of file diff --git a/scripts/semanticValidation2.js b/scripts/semanticValidation2.js new file mode 100644 index 000000000000..0cb8089fd62f --- /dev/null +++ b/scripts/semanticValidation2.js @@ -0,0 +1,7 @@ +"use strict"; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License in the project root for license information. +Object.defineProperty(exports, "__esModule", { value: true }); +const rest_api_specs_scripts_1 = require("@azure/rest-api-specs-scripts"); +rest_api_specs_scripts_1.semanticValidation.main().catch(e => { console.log(e); process.exit(1); }); +//# sourceMappingURL=semanticValidation2.js.map \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index e05dca6c434d..0556c9a9cc08 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { /* Basic Options */ - "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "target": "es2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ // "lib": [], /* Specify library files to be included in the compilation. */ // "allowJs": true, /* Allow javascript files to be compiled. */