From a9854ce71e5f8b6d949b4badbe121f0adf6904a1 Mon Sep 17 00:00:00 2001 From: Mikhail Boldyrev Date: Sun, 3 Nov 2019 09:13:40 +0300 Subject: [PATCH] [JS] Update package.json (#4261) * Update package.json * Update package.mustache * Update package.json * Update package.json * Removed 'js:' in package.json and package.mustache --- .../src/main/resources/Javascript/es6/package.mustache | 2 +- samples/client/petstore/javascript-es6/package.json | 2 +- samples/client/petstore/javascript-promise-es6/package.json | 2 +- samples/openapi3/client/petstore/javascript-es6/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache index bfe24d55709..bd87553eb22 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache @@ -7,7 +7,7 @@ "scripts": { "build": "babel src -d dist", "prepack": "npm run build", - "test": "mocha --compilers js:@babel/register --recursive" + "test": "mocha --require @babel/register --recursive" }, "browser": { "fs": false diff --git a/samples/client/petstore/javascript-es6/package.json b/samples/client/petstore/javascript-es6/package.json index 6a738bcf338..0032c37d477 100644 --- a/samples/client/petstore/javascript-es6/package.json +++ b/samples/client/petstore/javascript-es6/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "babel src -d dist", "prepack": "npm run build", - "test": "mocha --compilers js:@babel/register --recursive" + "test": "mocha --require @babel/register --recursive" }, "browser": { "fs": false diff --git a/samples/client/petstore/javascript-promise-es6/package.json b/samples/client/petstore/javascript-promise-es6/package.json index 6a738bcf338..0032c37d477 100644 --- a/samples/client/petstore/javascript-promise-es6/package.json +++ b/samples/client/petstore/javascript-promise-es6/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "babel src -d dist", "prepack": "npm run build", - "test": "mocha --compilers js:@babel/register --recursive" + "test": "mocha --require @babel/register --recursive" }, "browser": { "fs": false diff --git a/samples/openapi3/client/petstore/javascript-es6/package.json b/samples/openapi3/client/petstore/javascript-es6/package.json index 6a738bcf338..0032c37d477 100644 --- a/samples/openapi3/client/petstore/javascript-es6/package.json +++ b/samples/openapi3/client/petstore/javascript-es6/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "babel src -d dist", "prepack": "npm run build", - "test": "mocha --compilers js:@babel/register --recursive" + "test": "mocha --require @babel/register --recursive" }, "browser": { "fs": false