Skip to content

Commit

Permalink
build: fix typing rebuild for single packages (apache#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud authored and zhaoyongjie committed Nov 24, 2021
1 parent 8086145 commit ab97620
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions superset-frontend/temporary_superset_ui/superset-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"lint-staged": "^10.0.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1"
"react-test-renderer": "^16.13.1",
"rimraf": "^3.0.2"
},
"engines": {
"node": ">=10.10.0",
Expand All @@ -94,7 +95,10 @@
],
"nimbus": {
"drivers": [
{ "driver": "babel", "strategy": "none" },
{
"driver": "babel",
"strategy": "none"
},
"eslint",
"jest",
"prettier",
Expand Down Expand Up @@ -197,6 +201,8 @@
},
"typescript": {
"compilerOptions": {
"rootDir": "./src",
"declaration": true,
"emitDeclarationOnly": true,
"composite": true,
"resolveJsonModule": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Build plugins specified by globs
*/
const rimraf = require('rimraf');
const { spawnSync } = require('child_process');

const glob = process.argv[2];
Expand All @@ -27,6 +28,7 @@ if (glob) {
if (extraArgs.includes('--lint')) {
run(`nimbus eslint {packages,plugins}/${glob}/{src,test}`);
}
rimraf.sync(`./{packages,plugins}/${glob}/{lib,esm,tsconfig.tsbuildinfo}`);
run(`nimbus babel --clean --workspaces="@superset-ui/${glob}" ${BABEL_CONFIG}`);
run(`nimbus babel --clean --workspaces="@superset-ui/${glob}" --esm ${BABEL_CONFIG}`);
run(`nimbus typescript --build --workspaces="@superset-ui/${glob}"`);
Expand Down

0 comments on commit ab97620

Please sign in to comment.