Commit 96363fa4 authored by Phil Jones's avatar Phil Jones

Fix dependencies.

parent 04ec96c2
{ {
"name": "finesse-syntax-jupyterlab", "name": "finesse-syntax-jupyterlab",
"version": "0.1.0", "version": "0.1.2",
"description": "Syntax highlighting for kat script within JupyterLab.", "description": "Syntax highlighting for kat script within JupyterLab.",
"keywords": [ "keywords": [
"jupyter", "jupyter",
...@@ -17,15 +17,13 @@ ...@@ -17,15 +17,13 @@
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}" "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
], ],
"main": "lib/index.js", "main": "dist/index.js",
"types": "lib/index.d.ts",
"style": "style/index.css",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "http://gitlab.sr.bham.ac.uk/pjj/finesse-syntax-jupyterlab.git" "url": "http://gitlab.sr.bham.ac.uk/pjj/finesse-syntax-jupyterlab.git"
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc && webpack",
"clean": "rimraf lib tsconfig.tsbuildinfo", "clean": "rimraf lib tsconfig.tsbuildinfo",
"prepare": "jlpm run clean && jlpm run build", "prepare": "jlpm run clean && jlpm run build",
"watch": "tsc -w" "watch": "tsc -w"
...@@ -35,14 +33,16 @@ ...@@ -35,14 +33,16 @@
"@jupyterlab/apputils": "^1.2.1", "@jupyterlab/apputils": "^1.2.1",
"@jupyterlab/docregistry": "^1.2.1", "@jupyterlab/docregistry": "^1.2.1",
"@jupyterlab/notebook": "^1.2.2", "@jupyterlab/notebook": "^1.2.2",
"@phosphor/disposable": "^1.3.1", "@phosphor/disposable": "^1.3.0",
"@phosphor/widgets": "^1.9.3", "@phosphor/widgets": "^1.9.0",
"@types/codemirror": "0.0.82", "codemirror": "~5.47.0"
"codemirror": "5.47.0"
}, },
"devDependencies": { "devDependencies": {
"rimraf": "^2.6.1", "rimraf": "~2.6.2",
"typescript": "~3.5.2" "typescript": "~3.5.1",
"webpack": "^4.22.0",
"webpack-cli": "^3.3.10",
"@types/codemirror": "^0.0.74"
}, },
"sideEffects": [ "sideEffects": [
"style/*.css" "style/*.css"
......
...@@ -2,7 +2,7 @@ var path = require("path"); ...@@ -2,7 +2,7 @@ var path = require("path");
var webpack = require("webpack"); var webpack = require("webpack");
module.exports = { module.exports = {
entry: "./index.js", entry: "./lib/index.js",
mode: "development", mode: "development",
output: { output: {
path: path.resolve(__dirname, "dist"), path: path.resolve(__dirname, "dist"),
...@@ -10,11 +10,6 @@ module.exports = { ...@@ -10,11 +10,6 @@ module.exports = {
libraryTarget: "commonjs2" libraryTarget: "commonjs2"
}, },
devtool: "none", devtool: "none",
plugins: [
new webpack.DefinePlugin({
MAGIC_CONSTANT: JSON.stringify("some_thing")
})
],
externals: [ externals: [
// Everything that starts with "@phosphor/" // Everything that starts with "@phosphor/"
/^@phosphor\/.+$/, /^@phosphor\/.+$/,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment