@diskette/palette 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{src/cli → cli}/cli.js +1 -2
- package/package.json +3 -3
- package/dist/package.json +0 -62
- /package/dist/{src/cli → cli}/cli.d.ts +0 -0
- /package/dist/{src/cli → cli}/utils.d.ts +0 -0
- /package/dist/{src/cli → cli}/utils.js +0 -0
- /package/dist/{src/colors → colors}/amber.d.ts +0 -0
- /package/dist/{src/colors → colors}/amber.js +0 -0
- /package/dist/{src/colors → colors}/black-alpha.d.ts +0 -0
- /package/dist/{src/colors → colors}/black-alpha.js +0 -0
- /package/dist/{src/colors → colors}/blue.d.ts +0 -0
- /package/dist/{src/colors → colors}/blue.js +0 -0
- /package/dist/{src/colors → colors}/bronze.d.ts +0 -0
- /package/dist/{src/colors → colors}/bronze.js +0 -0
- /package/dist/{src/colors → colors}/brown.d.ts +0 -0
- /package/dist/{src/colors → colors}/brown.js +0 -0
- /package/dist/{src/colors → colors}/crimson.d.ts +0 -0
- /package/dist/{src/colors → colors}/crimson.js +0 -0
- /package/dist/{src/colors → colors}/cyan.d.ts +0 -0
- /package/dist/{src/colors → colors}/cyan.js +0 -0
- /package/dist/{src/colors → colors}/gold.d.ts +0 -0
- /package/dist/{src/colors → colors}/gold.js +0 -0
- /package/dist/{src/colors → colors}/grass.d.ts +0 -0
- /package/dist/{src/colors → colors}/grass.js +0 -0
- /package/dist/{src/colors → colors}/gray.d.ts +0 -0
- /package/dist/{src/colors → colors}/gray.js +0 -0
- /package/dist/{src/colors → colors}/green.d.ts +0 -0
- /package/dist/{src/colors → colors}/green.js +0 -0
- /package/dist/{src/colors → colors}/index.d.ts +0 -0
- /package/dist/{src/colors → colors}/index.js +0 -0
- /package/dist/{src/colors → colors}/indigo.d.ts +0 -0
- /package/dist/{src/colors → colors}/indigo.js +0 -0
- /package/dist/{src/colors → colors}/iris.d.ts +0 -0
- /package/dist/{src/colors → colors}/iris.js +0 -0
- /package/dist/{src/colors → colors}/jade.d.ts +0 -0
- /package/dist/{src/colors → colors}/jade.js +0 -0
- /package/dist/{src/colors → colors}/lime.d.ts +0 -0
- /package/dist/{src/colors → colors}/lime.js +0 -0
- /package/dist/{src/colors → colors}/mauve.d.ts +0 -0
- /package/dist/{src/colors → colors}/mauve.js +0 -0
- /package/dist/{src/colors → colors}/mint.d.ts +0 -0
- /package/dist/{src/colors → colors}/mint.js +0 -0
- /package/dist/{src/colors → colors}/olive.d.ts +0 -0
- /package/dist/{src/colors → colors}/olive.js +0 -0
- /package/dist/{src/colors → colors}/orange.d.ts +0 -0
- /package/dist/{src/colors → colors}/orange.js +0 -0
- /package/dist/{src/colors → colors}/pink.d.ts +0 -0
- /package/dist/{src/colors → colors}/pink.js +0 -0
- /package/dist/{src/colors → colors}/plum.d.ts +0 -0
- /package/dist/{src/colors → colors}/plum.js +0 -0
- /package/dist/{src/colors → colors}/purple.d.ts +0 -0
- /package/dist/{src/colors → colors}/purple.js +0 -0
- /package/dist/{src/colors → colors}/red.d.ts +0 -0
- /package/dist/{src/colors → colors}/red.js +0 -0
- /package/dist/{src/colors → colors}/ruby.d.ts +0 -0
- /package/dist/{src/colors → colors}/ruby.js +0 -0
- /package/dist/{src/colors → colors}/sage.d.ts +0 -0
- /package/dist/{src/colors → colors}/sage.js +0 -0
- /package/dist/{src/colors → colors}/sand.d.ts +0 -0
- /package/dist/{src/colors → colors}/sand.js +0 -0
- /package/dist/{src/colors → colors}/sky.d.ts +0 -0
- /package/dist/{src/colors → colors}/sky.js +0 -0
- /package/dist/{src/colors → colors}/slate.d.ts +0 -0
- /package/dist/{src/colors → colors}/slate.js +0 -0
- /package/dist/{src/colors → colors}/teal.d.ts +0 -0
- /package/dist/{src/colors → colors}/teal.js +0 -0
- /package/dist/{src/colors → colors}/tomato.d.ts +0 -0
- /package/dist/{src/colors → colors}/tomato.js +0 -0
- /package/dist/{src/colors → colors}/violet.d.ts +0 -0
- /package/dist/{src/colors → colors}/violet.js +0 -0
- /package/dist/{src/colors → colors}/white-alpha.d.ts +0 -0
- /package/dist/{src/colors → colors}/white-alpha.js +0 -0
- /package/dist/{src/colors → colors}/yellow.d.ts +0 -0
- /package/dist/{src/colors → colors}/yellow.js +0 -0
- /package/dist/{src/css.d.ts → css.d.ts} +0 -0
- /package/dist/{src/css.js → css.js} +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{src/types.js → types.js} +0 -0
- /package/dist/{src/utils.d.ts → utils.d.ts} +0 -0
- /package/dist/{src/utils.js → utils.js} +0 -0
|
@@ -2,7 +2,6 @@ import * as p from '@clack/prompts';
|
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { mkdirSync } from 'node:fs';
|
|
4
4
|
import { relative, resolve } from 'node:path';
|
|
5
|
-
import pkg from '../../package.json' with { type: 'json' };
|
|
6
5
|
import { accentColors, grayColors, } from "../types.js";
|
|
7
6
|
import { getMatchingGrayColor } from "../utils.js";
|
|
8
7
|
import { alphaColors, capitalize, getColorHex, writeAccentsFile, writeColorFiles, writeTailwindFile, } from "./utils.js";
|
|
@@ -25,7 +24,7 @@ const grayOptions = grayColors.map((c) => {
|
|
|
25
24
|
return { value: c, label: `${swatch}${capitalize(c)}` };
|
|
26
25
|
});
|
|
27
26
|
async function main() {
|
|
28
|
-
p.intro(`palette
|
|
27
|
+
p.intro(`palette v0.22.1`);
|
|
29
28
|
const results = await p.group({
|
|
30
29
|
colors: () => p.groupMultiselect({
|
|
31
30
|
message: 'Select accent colors',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diskette/palette",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.22.
|
|
4
|
+
"version": "0.22.1",
|
|
5
5
|
"bin": {
|
|
6
6
|
"palette": "./dist/cli/cli.js"
|
|
7
7
|
},
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
},
|
|
52
52
|
"license": "MIT",
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
54
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/inject-meta.ts",
|
|
55
55
|
"typecheck": "tsc",
|
|
56
56
|
"test": "vitest run",
|
|
57
57
|
"lint": "oxlint --type-aware src",
|
|
58
|
-
"release": "changeset version && changeset publish && git push --follow-tags"
|
|
58
|
+
"release": "changeset version && pnpm build && changeset publish && git push --follow-tags"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/dist/package.json
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@diskette/palette",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "0.22.0",
|
|
5
|
-
"bin": {
|
|
6
|
-
"palette": "./dist/cli/cli.js"
|
|
7
|
-
},
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"default": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./colors": {
|
|
14
|
-
"types": "./dist/colors/index.d.ts",
|
|
15
|
-
"default": "./dist/colors/index.js"
|
|
16
|
-
},
|
|
17
|
-
"./colors/*": {
|
|
18
|
-
"types": "./dist/colors/*.d.ts",
|
|
19
|
-
"default": "./dist/colors/*.js"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist"
|
|
24
|
-
],
|
|
25
|
-
"packageManager": "pnpm@10.22.0",
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
28
|
-
"prepublishOnly": "pnpm build",
|
|
29
|
-
"typecheck": "tsc",
|
|
30
|
-
"test": "vitest run",
|
|
31
|
-
"lint": "oxlint --type-aware src",
|
|
32
|
-
"release": "changeset version && changeset publish && git push --follow-tags"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@clack/prompts": "1.0.0-alpha.8",
|
|
36
|
-
"chalk": "^5.6.2"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@changesets/cli": "^2.29.8",
|
|
40
|
-
"@diskette/fs": "^0.17.0",
|
|
41
|
-
"@types/node": "^24.10.2",
|
|
42
|
-
"@types/react": "^19.2.7",
|
|
43
|
-
"magicast": "^0.5.1",
|
|
44
|
-
"oxlint": "^1.32.0",
|
|
45
|
-
"oxlint-tsgolint": "^0.8.5",
|
|
46
|
-
"prettier": "^3.7.4",
|
|
47
|
-
"react": "^19.2.1",
|
|
48
|
-
"tsx": "^4.21.0",
|
|
49
|
-
"typescript": "^5.9.2",
|
|
50
|
-
"vitest": "^4.0.15"
|
|
51
|
-
},
|
|
52
|
-
"repository": {
|
|
53
|
-
"type": "git",
|
|
54
|
-
"url": "git+https://github.com/diskettejs/palette.git"
|
|
55
|
-
},
|
|
56
|
-
"keywords": [],
|
|
57
|
-
"prettier": {
|
|
58
|
-
"semi": false,
|
|
59
|
-
"singleQuote": true
|
|
60
|
-
},
|
|
61
|
-
"license": "MIT"
|
|
62
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|