diff --git a/Jenkinsfile b/Jenkinsfile index 642b478cb6e2dd74f7f701ebe1446ae510245662..ec995cd57273a8571525ede71991f4fd66c46b0e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -243,6 +243,7 @@ pipeline { sh ''' cd ${WKC}/src/connector/node-rest/ + npm install npm run build npm run build:test npm run test diff --git a/src/connector/node-rest/package.json b/src/connector/node-rest/package.json index e572649a5981955f977fafea59f0ef78885951b3..3eab6fc289bf4e8a189fd117f2dfe7bc67321466 100644 --- a/src/connector/node-rest/package.json +++ b/src/connector/node-rest/package.json @@ -7,17 +7,17 @@ "license": "MIT", "scripts": { "prepare": "npm run build", - "build": "esbuild --bundle --platform=node --outfile=lib/TDengineRest.js ./TDengineRest.js" , + "build": "esbuild --bundle --platform=node --outfile=lib/TDengineRest.js ./TDengineRest.js", "build:dev": "esbuild --bundle --platform=node --outfile=dist/examples/show-database.js examples/show-database.js ", "build:test": "esbuild test/testRestConn.js --bundle --platform=node --outfile=dist/tests/testRestConn.js ", "test": "node dist/tests/testRestConn.js" }, "devDependencies": { "esbuild": "^0.12.25", - "eslint": "^7.32.0" + "eslint": "^7.32.0", + "assert": "^2.0.0" }, "dependencies": { - "assert": "^2.0.0", "node-fetch": "^2.x" } -} \ No newline at end of file +}