diff --git a/Makefile.am b/Makefile.am index 2a35c84812..f6099ef47e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -91,11 +91,11 @@ EXTRA_DIST += $(jsmodules_DATA) if ENABLE_JAVASCRIPT_MODULES -npm/node_modules/rollup/dist/bin/rollup: npm/package.json - cd npm && $(NPM) install && touch node_modules/rollup/dist/bin/rollup +node_modules/rollup/dist/bin/rollup: package.json + $(NPM) install && touch node_modules/rollup/dist/bin/rollup -npm/dist/janus.%.js: html/janus.js npm/node_modules/rollup/dist/bin/rollup npm/rollup.config.mjs npm/module.js - cd npm && $(NPM) run rollup -- --o $(patsubst npm/%,%,$@) --f $* +npm/dist/janus.%.js: html/demos/janus.js node_modules/rollup/dist/bin/rollup npm/rollup.config.mjs npm/module.js + $(NPM) run rollup -- --o $@ --f $* endif diff --git a/npm/rollup.config.mjs b/npm/rollup.config.mjs index b2c52f0d1b..b82886e753 100644 --- a/npm/rollup.config.mjs +++ b/npm/rollup.config.mjs @@ -5,7 +5,8 @@ import { readFileSync } from 'fs'; export default { input: 'npm/module.js', output: { - strict: false + strict: false, + name: 'Janus', }, plugins: [ replace({