Skip to content

Commit 24e8d7a

Browse files
authored
Fix shared packages (#8)
* Fix shared packages * Lint
1 parent eb5f3bf commit 24e8d7a

File tree

3 files changed

+140
-126
lines changed

3 files changed

+140
-126
lines changed

package.json

Lines changed: 123 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,129 @@
11
{
2-
"name": "@jupyterlite/javascript-kernel-root",
3-
"private": true,
4-
"version": "0.3.0-a0",
5-
"description": "A JavaScript kernel for JupyterLite",
6-
"keywords": [
7-
"jupyter",
8-
"jupyterlab",
9-
"jupyterlab-extension"
10-
],
11-
"homepage": "https://github.com/jupyterlite/javascript-kernel",
12-
"bugs": {
13-
"url": "https://github.com/jupyterlite/javascript-kernel/issues"
14-
},
15-
"license": "BSD-3-Clause",
16-
"author": "JupyterLite Contributors",
17-
"repository": {
18-
"type": "git",
19-
"url": "https://github.com/jupyterlite/javascript-kernel.git"
20-
},
21-
"workspaces": {
22-
"packages": [
23-
"packages/*"
24-
]
25-
},
26-
"scripts": {
27-
"build": "lerna run build",
28-
"build:prod": "lerna run build:prod",
29-
"build:test": "lerna run build:test",
30-
"bump:js:version": "lerna version --no-push --force-publish --no-git-tag-version --yes",
31-
"clean": "lerna run clean",
32-
"install": "lerna bootstrap",
33-
"install:dev": "yarn run build:prod && yarn run develop",
34-
"install:extension": "jupyter labextension develop --overwrite .",
35-
"eslint": "eslint . --ext .ts,.tsx --fix",
36-
"eslint:check": "eslint . --ext .ts,.tsx",
37-
"lint": "yarn run eslint && yarn run prettier",
38-
"lint:check": "yarn run eslint:check && yarn run prettier:check",
39-
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
40-
"prettier:check": "prettier --list-different \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
41-
"publish": "yarn run clean && yarn run build && lerna publish",
42-
"test": "lerna run test",
43-
"watch": "lerna run watch"
44-
},
45-
"devDependencies": {
46-
"@typescript-eslint/eslint-plugin": "^6",
47-
"@typescript-eslint/parser": "^6",
48-
"eslint": "^8",
49-
"eslint-config-prettier": "^8",
50-
"eslint-plugin-prettier": "^5",
51-
"lerna": "^6.4.1",
52-
"prettier": "^3",
53-
"rimraf": "^3.0.2"
54-
},
55-
"eslintIgnore": [
56-
"node_modules",
57-
"dist",
58-
"coverage",
59-
"**/*.d.ts"
60-
],
61-
"eslintConfig": {
62-
"extends": [
63-
"eslint:recommended",
64-
"plugin:@typescript-eslint/eslint-recommended",
65-
"plugin:@typescript-eslint/recommended",
66-
"plugin:prettier/recommended"
2+
"name": "@jupyterlite/javascript-kernel-root",
3+
"private": true,
4+
"version": "0.3.0-a0",
5+
"description": "A JavaScript kernel for JupyterLite",
6+
"keywords": [
7+
"jupyter",
8+
"jupyterlab",
9+
"jupyterlab-extension"
6710
],
68-
"parser": "@typescript-eslint/parser",
69-
"parserOptions": {
70-
"project": "tsconfig.eslint.json",
71-
"sourceType": "module"
11+
"homepage": "https://github.com/jupyterlite/javascript-kernel",
12+
"bugs": {
13+
"url": "https://github.com/jupyterlite/javascript-kernel/issues"
7214
},
73-
"plugins": [
74-
"@typescript-eslint"
15+
"license": "BSD-3-Clause",
16+
"author": "JupyterLite Contributors",
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/jupyterlite/javascript-kernel.git"
20+
},
21+
"workspaces": {
22+
"packages": [
23+
"packages/*"
24+
]
25+
},
26+
"scripts": {
27+
"build": "lerna run build",
28+
"build:prod": "lerna run build:prod",
29+
"build:test": "lerna run build:test",
30+
"bump:js:version": "lerna version --no-push --force-publish --no-git-tag-version --yes",
31+
"clean": "lerna run clean",
32+
"install": "lerna bootstrap",
33+
"install:dev": "yarn run build:prod && yarn run develop",
34+
"install:extension": "jupyter labextension develop --overwrite .",
35+
"eslint": "eslint . --ext .ts,.tsx --fix",
36+
"eslint:check": "eslint . --ext .ts,.tsx",
37+
"lint": "yarn run eslint && yarn run prettier",
38+
"lint:check": "yarn run eslint:check && yarn run prettier:check",
39+
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
40+
"prettier:check": "prettier --list-different \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
41+
"publish": "yarn run clean && yarn run build && lerna publish",
42+
"test": "lerna run test",
43+
"watch": "lerna run watch"
44+
},
45+
"devDependencies": {
46+
"@typescript-eslint/eslint-plugin": "^6",
47+
"@typescript-eslint/parser": "^6",
48+
"eslint": "^8",
49+
"eslint-config-prettier": "^8",
50+
"eslint-plugin-prettier": "^5",
51+
"lerna": "^6.4.1",
52+
"prettier": "^3",
53+
"rimraf": "^3.0.2"
54+
},
55+
"eslintIgnore": [
56+
"node_modules",
57+
"dist",
58+
"coverage",
59+
"**/*.d.ts"
7560
],
76-
"rules": {
77-
"@typescript-eslint/naming-convention": [
78-
"error",
79-
{
80-
"selector": "interface",
81-
"format": [
82-
"PascalCase"
83-
],
84-
"custom": {
85-
"regex": "^I[A-Z]",
86-
"match": true
87-
}
61+
"eslintConfig": {
62+
"extends": [
63+
"eslint:recommended",
64+
"plugin:@typescript-eslint/eslint-recommended",
65+
"plugin:@typescript-eslint/recommended",
66+
"plugin:prettier/recommended"
67+
],
68+
"parser": "@typescript-eslint/parser",
69+
"parserOptions": {
70+
"project": "tsconfig.eslint.json",
71+
"sourceType": "module"
72+
},
73+
"plugins": [
74+
"@typescript-eslint"
75+
],
76+
"rules": {
77+
"@typescript-eslint/naming-convention": [
78+
"error",
79+
{
80+
"selector": "interface",
81+
"format": [
82+
"PascalCase"
83+
],
84+
"custom": {
85+
"regex": "^I[A-Z]",
86+
"match": true
87+
}
88+
}
89+
],
90+
"@typescript-eslint/no-unused-vars": [
91+
"warn",
92+
{
93+
"args": "none"
94+
}
95+
],
96+
"@typescript-eslint/no-explicit-any": "off",
97+
"@typescript-eslint/no-namespace": "off",
98+
"@typescript-eslint/no-use-before-define": "off",
99+
"@typescript-eslint/quotes": [
100+
"error",
101+
"single",
102+
{
103+
"avoidEscape": true,
104+
"allowTemplateLiterals": false
105+
}
106+
],
107+
"curly": [
108+
"error",
109+
"all"
110+
],
111+
"eqeqeq": "error",
112+
"prefer-arrow-callback": "error"
88113
}
89-
],
90-
"@typescript-eslint/no-unused-vars": [
91-
"warn",
92-
{
93-
"args": "none"
94-
}
95-
],
96-
"@typescript-eslint/no-explicit-any": "off",
97-
"@typescript-eslint/no-namespace": "off",
98-
"@typescript-eslint/no-use-before-define": "off",
99-
"@typescript-eslint/quotes": [
100-
"error",
101-
"single",
102-
{
103-
"avoidEscape": true,
104-
"allowTemplateLiterals": false
105-
}
106-
],
107-
"curly": [
108-
"error",
109-
"all"
110-
],
111-
"eqeqeq": "error",
112-
"prefer-arrow-callback": "error"
114+
},
115+
"prettier": {
116+
"singleQuote": true,
117+
"trailingComma": "none",
118+
"arrowParens": "avoid",
119+
"endOfLine": "auto",
120+
"overrides": [
121+
{
122+
"files": "package.json",
123+
"options": {
124+
"tabWidth": 4
125+
}
126+
}
127+
]
113128
}
114-
},
115-
"prettier": {
116-
"singleQuote": true,
117-
"trailingComma": "none",
118-
"arrowParens": "avoid",
119-
"endOfLine": "auto",
120-
"overrides": [
121-
{
122-
"files": "package.json",
123-
"options": {
124-
"tabWidth": 4
125-
}
126-
}
127-
]
128-
}
129-
}
129+
}

packages/javascript-kernel-extension/package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,21 @@
5353
},
5454
"jupyterlab": {
5555
"extension": true,
56-
"outputDir": "../../jupyterlite_javascript_kernel/labextension"
56+
"outputDir": "../../jupyterlite_javascript_kernel/labextension",
57+
"sharedPackages": {
58+
"@jupyterlite/kernel": {
59+
"bundled": false,
60+
"singleton": true
61+
},
62+
"@jupyterlite/server": {
63+
"bundled": false,
64+
"singleton": true
65+
},
66+
"@jupyterlite/contents": {
67+
"bundled": false,
68+
"singleton": true
69+
}
70+
}
5771
},
5872
"jupyterlite": {
5973
"liteExtension": true

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,7 +2814,7 @@ __metadata:
28142814
resolution: "@jupyterlite/javascript-kernel-extension@workspace:packages/javascript-kernel-extension"
28152815
dependencies:
28162816
"@jupyterlab/builder": ~4.1.1
2817-
"@jupyterlite/javascript-kernel": ^0.2.1
2817+
"@jupyterlite/javascript-kernel": ^0.3.0-alpha.0
28182818
"@jupyterlite/kernel": ^0.2.1
28192819
"@jupyterlite/server": ^0.2.1
28202820
rimraf: ~5.0.1
@@ -2837,7 +2837,7 @@ __metadata:
28372837
languageName: unknown
28382838
linkType: soft
28392839

2840-
"@jupyterlite/javascript-kernel@^0.2.1, @jupyterlite/javascript-kernel@workspace:packages/javascript-kernel":
2840+
"@jupyterlite/javascript-kernel@^0.3.0-alpha.0, @jupyterlite/javascript-kernel@workspace:packages/javascript-kernel":
28412841
version: 0.0.0-use.local
28422842
resolution: "@jupyterlite/javascript-kernel@workspace:packages/javascript-kernel"
28432843
dependencies:

0 commit comments

Comments
 (0)