Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 4.67 KB
/
Copy pathpackage.json
File metadata and controls
122 lines (122 loc) · 4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "@samline/string",
"version": "2.0.1",
"description": "Case conversion, slugify, accents, truncate and initials built on one Unicode-aware word splitter, for vanilla JavaScript, TypeScript and plain HTML.",
"keywords": [
"string",
"case",
"camelcase",
"kebab-case",
"snake-case",
"slugify",
"slug",
"title-case",
"accents",
"truncate"
],
"author": "Samuel Olvera (samline)",
"license": "MIT",
"homepage": "https://samline.github.io/string/",
"repository": {
"type": "git",
"url": "git+https://github.com/samline/string.git"
},
"bugs": {
"url": "https://github.com/samline/string/issues"
},
"type": "module",
"sideEffects": [
"./dist/browser/string.global.js"
],
"files": [
"dist",
"CHANGELOG.md",
"LICENSE.md"
],
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@12.9.1",
"publishConfig": {
"access": "public"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"unpkg": "./dist/browser/string.global.js",
"jsdelivr": "./dist/browser/string.global.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./vanilla": {
"types": "./dist/vanilla/index.d.ts",
"import": "./dist/vanilla/index.js",
"require": "./dist/vanilla/index.cjs"
},
"./browser": "./dist/browser/string.global.js",
"./package.json": "./package.json"
},
"scripts": {
"clean": "rm -rf dist coverage",
"build": "tsup",
"dev": "tsup --watch",
"typecheck": "tsc --noEmit -p tsconfig.json",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:e2e": "playwright test",
"size": "node scripts/check-size.mjs",
"format": "prettier --write .",
"format:check": "prettier --check .",
"check": "bun run format:check && bun run typecheck && bun run test:coverage && bun run build && bun run size && bun run test:e2e",
"prepublishOnly": "bun run clean && bun run build && bun run typecheck && bun run test:coverage",
"release": "bun run check && pnpm publish",
"site:dev": "node site-tools/assets.mjs && node site-tools/dev.mjs",
"site:build": "node site-tools/assets.mjs && npm --workspace docs run build && npm --workspace landing run build && node site-tools/assemble.mjs && node site-tools/check-site.mjs",
"site:preview": "node site-tools/preview.mjs",
"site:check": "node site-tools/assets.mjs && node site-tools/check-config.mjs && npm run site:check:design && npm --workspace landing run check && npm --workspace docs run check",
"site:format": "prettier --plugin prettier-plugin-astro --write landing docs/src docs/scripts shared site-tools site-tests site-e2e skills playwright.site.config.ts project.config.json content-audit.json design-reference.json SITE.md --ignore-path .site-prettierignore",
"site:format:check": "prettier --plugin prettier-plugin-astro --check landing docs/src docs/scripts shared site-tools site-tests site-e2e skills playwright.site.config.ts project.config.json content-audit.json design-reference.json SITE.md --ignore-path .site-prettierignore",
"site:test": "node --test site-tests/*.test.mjs",
"site:test:browser": "playwright test --config playwright.site.config.ts",
"site:verify": "npm run site:check && npm run site:format:check && npm run site:test && npm run site:test:adaptation && npm run site:build && npm run site:check:identity && npm run site:check:content && npm run site:test:browser",
"site:configure": "node site-tools/configure.mjs",
"site:check:release": "npm run site:check:identity && node site-tools/check-release.mjs",
"site:check:content": "node site-tools/check-content.mjs",
"site:accent": "node site-tools/accent-pair.mjs",
"site:test:adaptation": "node site-tools/test-adaptation.mjs",
"site:check:design": "node site-tools/check-design.mjs",
"site:check:identity": "node site-tools/check-identity.mjs",
"test:package": "node scripts/test-package.mjs"
},
"devDependencies": {
"@playwright/test": "^1.65.0",
"@samline/internal": "^1.0.0",
"@types/node": "^24.13.5",
"@vitest/coverage-v8": "^5.0.1",
"axe-core": "^4.14.0",
"esbuild": "^0.28.2",
"jsdom": "^26.1.0",
"prettier": "^3.9.0",
"prettier-plugin-astro": "^1.1.1",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
"vitest": "^5.0.1"
},
"size": {
"./dist/index.js": 5500,
"./dist/vanilla/index.js": 10500,
"./dist/browser/string.global.js": 10500
},
"workspaces": [
"landing",
"docs",
"shared"
],
"overrides": {
"parse5": "^8.1.0",
"@emnapi/runtime": "1.11.3"
}
}