diff --git a/{{cookiecutter.python_name}}/package.json b/{{cookiecutter.python_name}}/package.json index b54e125f..49aa45c2 100644 --- a/{{cookiecutter.python_name}}/package.json +++ b/{{cookiecutter.python_name}}/package.json @@ -25,7 +25,8 @@ "url": "{{ cookiecutter.repository }}.git" }, "scripts": { - "build": "jlpm run build:lib && jlpm run build:labextension", + "build": "jlpm run build:lib && jlpm run build:labextension:dev", + "build:prod": "jlpm run build:lib && jlpm run build:labextension", "build:labextension": "jupyter labextension build .", "build:labextension:dev": "jupyter labextension build --development True .", "build:lib": "tsc", @@ -36,7 +37,7 @@ "eslint": "eslint . --ext .ts,.tsx --fix", "eslint:check": "eslint . --ext .ts,.tsx", "install:extension": "jupyter labextension develop --overwrite .", - "prepare": "jlpm run clean && jlpm run build", + "prepare": "jlpm run clean && jlpm run build:prod", "watch": "run-p watch:src watch:labextension", "watch:src": "tsc -w", "watch:labextension": "jupyter labextension watch ." diff --git a/{{cookiecutter.python_name}}/setup.py b/{{cookiecutter.python_name}}/setup.py index 6b4109e2..cccfa505 100644 --- a/{{cookiecutter.python_name}}/setup.py +++ b/{{cookiecutter.python_name}}/setup.py @@ -47,7 +47,7 @@ ) cmdclass["jsdeps"] = combine_commands( - install_npm(HERE, build_cmd="build", npm=["jlpm"]), + install_npm(HERE, build_cmd="build:prod", npm=["jlpm"]), ensure_targets(jstargets), )