Skip to content

Commit

Permalink
Separate typegen and build
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiviljami committed May 21, 2022
1 parent d9d4de7 commit 7b83c1f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions clients/entity-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"bundle-definition": "webpack",
"openapi": "../../scripts/update-openapi.sh https://docs.api.epilot.io/entity.yaml",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"release-alpha": "npm version prerelease --preid alpha",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
Expand Down Expand Up @@ -72,4 +72,4 @@
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0"
}
}
}
6 changes: 3 additions & 3 deletions clients/file-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"bundle-definition": "webpack",
"openapi": "../../scripts/update-openapi.sh https://docs.api.epilot.io/file.yaml",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
"repository": {
Expand Down Expand Up @@ -70,4 +70,4 @@
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0"
}
}
}
6 changes: 3 additions & 3 deletions clients/organization-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"bundle-definition": "webpack",
"openapi": "../../scripts/update-openapi.sh https://docs.api.epilot.io/organization-v2.yaml",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
"files": [
Expand Down Expand Up @@ -70,4 +70,4 @@
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0"
}
}
}
6 changes: 3 additions & 3 deletions clients/permissions-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"bundle-definition": "webpack",
"openapi": "../../scripts/update-openapi.sh https://docs.api.epilot.io/permissions.yaml",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
"files": [
Expand Down Expand Up @@ -71,4 +71,4 @@
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0"
}
}
}
6 changes: 3 additions & 3 deletions clients/pricing-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"bundle-definition": "webpack",
"openapi": "../../scripts/update-openapi.sh https://docs.api.epilot.io/pricing-api.yaml",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
"files": [
Expand Down Expand Up @@ -69,4 +69,4 @@
"webpack": "~5.18.0",
"webpack-cli": "^4.4.0"
}
}
}
6 changes: 3 additions & 3 deletions clients/submission-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"bundle-definition": "webpack",
"openapi": "openapi read --json https://docs.api.epilot.io/submission-api.yaml > src/openapi.json",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
"files": [
Expand Down Expand Up @@ -70,4 +70,4 @@
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0"
}
}
}
6 changes: 3 additions & 3 deletions clients/user-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"bundle-definition": "webpack",
"openapi": "openapi read --json https://docs.api.epilot.io/user.yaml > src/openapi.json",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
"files": [
Expand Down Expand Up @@ -70,4 +70,4 @@
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0"
}
}
}
6 changes: 3 additions & 3 deletions clients/workflow-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"bundle-definition": "webpack",
"openapi": "openapi read --json https://docs.api.epilot.io/workflows-execution.yaml > src/openapi.json",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm update && npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"
},
"files": [
Expand Down Expand Up @@ -70,4 +70,4 @@
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0"
}
}
}

0 comments on commit 7b83c1f

Please sign in to comment.