|
30 | 30 | },
|
31 | 31 | "scripts": {
|
32 | 32 | "build": "npm run build:lib && npm run build:nbextension",
|
33 |
| - "build:labextension": "npm run clean:labextension && mkdirp {{ cookiecutter.python_package_name }}/labextension && cd {{ cookiecutter.python_package_name }}/labextension && npm pack ../..", |
| 33 | + "build:labextension": "jupyter labextension build .", |
| 34 | + "build:labextension:dev": "jupyter labextension build --development True .", |
34 | 35 | "build:lib": "tsc",
|
35 | 36 | "build:nbextension": "webpack -p",
|
36 | 37 | "build:all": "npm run build:labextension && npm run build:nbextension",
|
37 | 38 | "clean": "npm run clean:lib && npm run clean:nbextension",
|
38 | 39 | "clean:lib": "rimraf lib",
|
39 |
| - "clean:labextension": "rimraf {{ cookiecutter.python_package_name }}/labextension", |
| 40 | + "clean:labextension": "rimraf {{ cookiecutter.python_package_name }}/jupyterlab_widgets/lab3extension", |
40 | 41 | "clean:nbextension": "rimraf {{ cookiecutter.python_package_name }}/nbextension/static/index.js",
|
41 | 42 | "lint": "eslint . --ext .ts,.tsx --fix",
|
42 | 43 | "lint:check": "eslint . --ext .ts,.tsx",
|
|
51 | 52 | "watch:nbextension": "webpack --watch"
|
52 | 53 | },
|
53 | 54 | "dependencies": {
|
54 |
| - "@jupyter-widgets/base": "^1.1.10 || ^2 || ^3" |
| 55 | + "@jupyter-widgets/base": "^1.1.10 || ^2 || ^3 || ^4.0.0-beta.1" |
55 | 56 | },
|
56 | 57 | "devDependencies": {
|
57 | 58 | "@phosphor/application": "^1.6.0",
|
|
90 | 91 | "webpack-cli": "^3.1.2"
|
91 | 92 | },
|
92 | 93 | "jupyterlab": {
|
93 |
| - "extension": "lib/plugin" |
| 94 | + "extension": "lib/plugin", |
| 95 | + "outputDir": "jupyterlab_widgets/static", |
| 96 | + "sharedPackages": { |
| 97 | + "@jupyter-widgets/base": { |
| 98 | + "bundled": false, |
| 99 | + "singleton": true |
| 100 | + } |
| 101 | + } |
94 | 102 | }
|
95 | 103 | }
|
0 commit comments