File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Frontend/implementations/typescript
SignallingWebServer/platform_scripts Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ module.exports = {
32
32
/ n o d e _ m o d u l e s / ,
33
33
] ,
34
34
options : {
35
- configFile : "tsconfig.cjs .json"
35
+ configFile : "tsconfig.esm .json"
36
36
}
37
37
} ,
38
38
{
Original file line number Diff line number Diff line change @@ -224,11 +224,14 @@ function setup_frontend() {
224
224
if [ ! -d " ${WEBPACK_OUTPUT_PATH} " ] || [ " $BUILD_FRONTEND " == " 1" ] ; then
225
225
echo " Building Typescript Frontend."
226
226
# Using our bundled NodeJS, build the web frontend files
227
+ pushd " ${SCRIPT_DIR} /../../../Common" > /dev/null
228
+ npm run build:esm
229
+ popd > /dev/null
227
230
pushd " ${SCRIPT_DIR} /../../../Frontend/library" > /dev/null
228
- npm run build:cjs
231
+ npm run build:esm
229
232
popd > /dev/null
230
233
pushd " ${SCRIPT_DIR} /../../../Frontend/ui-library" > /dev/null
231
- npm run build:cjs
234
+ npm run build:esm
232
235
popd > /dev/null
233
236
pushd " ${SCRIPT_DIR} /../../../Frontend/implementations/typescript" > /dev/null
234
237
npm run build:dev
Original file line number Diff line number Diff line change @@ -216,13 +216,17 @@ IF "%BUILD_FRONTEND%"=="1" (
216
216
rem We could replace this all with a single npm script that does all this. we do have several build-all scripts already
217
217
rem but this does give a good reference about the dependency chain for all of this.
218
218
echo Building Typescript frontend...
219
+ pushd %CD% \Common
220
+ call %NPM% run build:esm
221
+ popd
219
222
pushd %CD% \Frontend\library
220
- call %NPM% run build:cjs
223
+ call %NPM% run build:esm
221
224
popd
222
225
pushd %CD% \Frontend\ui-library
223
- call %NPM% run build:cjs
226
+ call %NPM% run build:esm
224
227
popd
225
228
pushd %CD% \Frontend\implementations\typescript
229
+ rem Note: build:dev implicitly uses esm deps due to node16/bundler module resolution
226
230
call %NPM% run build:dev
227
231
popd
228
232
popd
You can’t perform that action at this time.
0 commit comments