Skip to content

Commit f5758ed

Browse files
committed
Restructure to npm workspace
Root package.json owns devDependencies (changesets, typescript). packages/rothko/ is the published package with no devDeps.
1 parent b3180e0 commit f5758ed

11 files changed

Lines changed: 51 additions & 42 deletions

File tree

package.json

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,13 @@
11
{
2-
"name": "rothko",
3-
"version": "0.1.4",
4-
"description": "What color is your landscape? — Perceptual color palette extraction",
5-
"type": "module",
6-
"main": "dist/index.js",
7-
"types": "dist/index.d.ts",
8-
"exports": {
9-
".": {
10-
"types": "./dist/index.d.ts",
11-
"default": "./dist/index.js"
12-
},
13-
"./dom": {
14-
"types": "./dist/dom.d.ts",
15-
"default": "./dist/dom.js"
16-
}
17-
},
18-
"files": [
19-
"dist"
2+
"private": true,
3+
"workspaces": [
4+
"packages/*"
205
],
216
"scripts": {
22-
"build": "tsc",
23-
"typecheck": "tsc --noEmit",
24-
"release": "changeset publish",
25-
"prepublishOnly": "npm run build"
26-
},
27-
"repository": {
28-
"type": "git",
29-
"url": "git+https://github.com/zeakd/rothko.js.git"
30-
},
31-
"keywords": [
32-
"color",
33-
"palette",
34-
"extraction",
35-
"oklab",
36-
"oklch",
37-
"perceptual",
38-
"image",
39-
"dominant-color"
40-
],
41-
"author": "zeakd <stuzeakd@kaist.ac.kr>",
42-
"license": "MIT",
43-
"bugs": {
44-
"url": "https://github.com/zeakd/rothko.js/issues"
7+
"build": "npm run build --workspace=packages/rothko",
8+
"typecheck": "npm run typecheck --workspace=packages/rothko",
9+
"release": "changeset publish"
4510
},
46-
"homepage": "https://github.com/zeakd/rothko.js#readme",
4711
"devDependencies": {
4812
"@changesets/changelog-github": "^0.6.0",
4913
"@changesets/cli": "^2.30.0",
File renamed without changes.

packages/rothko/package.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "rothko",
3+
"version": "0.1.4",
4+
"description": "What color is your landscape? — Perceptual color palette extraction",
5+
"type": "module",
6+
"main": "dist/index.js",
7+
"types": "dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
12+
},
13+
"./dom": {
14+
"types": "./dist/dom.d.ts",
15+
"default": "./dist/dom.js"
16+
}
17+
},
18+
"files": [
19+
"dist"
20+
],
21+
"scripts": {
22+
"build": "tsc",
23+
"typecheck": "tsc --noEmit"
24+
},
25+
"repository": {
26+
"type": "git",
27+
"url": "git+https://github.com/zeakd/rothko.js.git"
28+
},
29+
"keywords": [
30+
"color",
31+
"palette",
32+
"extraction",
33+
"oklab",
34+
"oklch",
35+
"perceptual",
36+
"image",
37+
"dominant-color"
38+
],
39+
"author": "zeakd <stuzeakd@kaist.ac.kr>",
40+
"license": "MIT",
41+
"bugs": {
42+
"url": "https://github.com/zeakd/rothko.js/issues"
43+
},
44+
"homepage": "https://github.com/zeakd/rothko.js#readme"
45+
}
File renamed without changes.

0 commit comments

Comments
 (0)