Skip to content

Commit

Permalink
chore(package): use node_modules/.bin/* in module scripts, add 'build…
Browse files Browse the repository at this point in the history
…' script (the old 'lib' script) (#8668)
  • Loading branch information
christopherthielen committed Oct 21, 2020
1 parent f3e1d6e commit 231f781
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 52 deletions.
9 changes: 5 additions & 4 deletions app/scripts/modules/amazon/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/appengine/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/azure/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/cloudfoundry/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/core/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/docker/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/ecs/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/google/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/huaweicloud/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/kubernetes/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/oracle/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/tencentcloud/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}
9 changes: 5 additions & 4 deletions app/scripts/modules/titus/package.json
Expand Up @@ -5,8 +5,9 @@
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/rimraf/bin.js lib",
"lib": "npm run clean && ../../../../node_modules/typescript/bin/tsc && node ../../../../node_modules/webpack/bin/webpack.js",
"prepublishOnly": "npm run lib"
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"build": "npm run clean && ../../../../node_modules/.bin/tsc && node ../../../../node_modules/.bin/webpack"
}
}
}

0 comments on commit 231f781

Please sign in to comment.