Skip to content

Commit 8c44130

Browse files
committed
Add build step to schema npm script
1 parent dbe27df commit 8c44130

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

devtools/test_dashboard/build.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { build } from 'esbuild';
2+
import { localDevConfig } from '../../esbuild-config.js';
3+
4+
// Build plotly.js to be used locally, such as when generating the schema.
5+
// This is the same process used in the test dashboard server script, but
6+
// run only once.
7+
build(localDevConfig);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"bundle": "node tasks/bundle.mjs",
2929
"extra-bundles": "node tasks/extra_bundles.mjs",
3030
"locales": "node tasks/locales.js",
31-
"schema": "node tasks/schema.mjs",
31+
"schema": "node devtools/test_dashboard/build.mjs && node tasks/schema.mjs",
3232
"stats": "node tasks/stats.js",
3333
"find-strings": "node tasks/find_locale_strings.js",
3434
"preprocess": "node tasks/preprocess.js",

0 commit comments

Comments
 (0)