Skip to content

Commit

Permalink
build: update tsconfig & webpack (#31)
Browse files Browse the repository at this point in the history
fix for generate-ec2-types scheduler
  • Loading branch information
hoonoh authored Nov 6, 2019
1 parent 06bc8d8 commit 97afc5e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 22 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
"prettier": "^1.18.2",
"prompts": "^2.2.1",
"semantic-release": "^15.13.27",
"string-replace-loader": "^2.2.0",
"table": "^5.4.6",
"ts-jest": "^24.1.0",
"ts-loader": "^6.2.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-ec2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const sortInstances = (i1: string, i2: string): number => {
const getEc2Types = async (): Promise<string> => {
let prices;
try {
prices = await getGlobalSpotPrices();
prices = await getGlobalSpotPrices({});
} catch (error) {
console.log(`getGlobalSpotPrices error: ${error}`);
process.exit(1);
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"lib": ["esnext"],
"module": "commonjs",
"target": "es5",
"lib": ["es5"],
"moduleResolution": "node",
"strict": true,
"strictPropertyInitialization": false,
Expand Down
10 changes: 1 addition & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ module.exports = {
target: 'node',
module: {
rules: [
{
test: /cli\.ts$/,
loader: 'string-replace-loader',
options: {
search: "from './module'",
replace: "from '../dist/module'",
},
},
{
test: /\.tsx?$/,
use: [
Expand All @@ -40,5 +32,5 @@ module.exports = {
},
],
},
externals: [/dist\/module$/],
externals: [/\.\/module$/],
};
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8432,14 +8432,6 @@ string-length@^2.0.0:
astral-regex "^1.0.0"
strip-ansi "^4.0.0"

string-replace-loader@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/string-replace-loader/-/string-replace-loader-2.2.0.tgz#0a0e6543fcec783d85c353a3e96a23872d45a94f"
integrity sha512-Ukt4ZC8+xVWdBRut3/iwnPJCNL1yV8AbVKXn8UcWdYrHgtuW4UDDAbBSi/J/CQDEWQBt824AJvPYahF23eJLRg==
dependencies:
loader-utils "^1.2.3"
schema-utils "^1.0.0"

string-width@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
Expand Down

0 comments on commit 97afc5e

Please sign in to comment.