-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
59 lines (54 loc) · 1.92 KB
/
package.json
File metadata and controls
59 lines (54 loc) · 1.92 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
{
"name": "@ndp-software/lit-md",
"version": "0.4.0",
"description": "Literate test files that generate README.md",
"license": "UNLICENSED -- All rights reserved. See LICENSE file.",
"author": "Andy Peterson <andy@ndpsoftware.com>",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/ndp-software/lit-md"
},
"keywords": [
"literate programming",
"markdown",
"testing",
"readme",
"documentation",
"typescript"
],
"engines": {
"node": ">=22"
},
"sideEffects": false,
"bin": {
"lit-md": "dist/cli.js"
},
"files": [
"README.md",
"dist/**/*",
"docs/**/*",
"src/**/*"
],
"scripts": {
"readme": "node ./src/cli.ts --test --typecheck --out ./README.md src/docs/README.lit-md.ts",
"test": "node --test './test/**/*.test.ts'",
"test:acceptance": "node src/cli.ts --match-snapshot test/acceptance/*.ts test/acceptance/*.js",
"test:acceptance:update": "node src/cli.ts -u test/acceptance/*.ts test/acceptance/*.js",
"test:match": "node src/cli.ts --match-snapshot test/acceptance/*.ts test/acceptance/*.js",
"typecheck": "tsc -p ./tsconfig.check.json",
"verify": "npm run typecheck && npm run test && node ./src/cli.ts --test --typecheck --dryrun src/docs/README.lit-md.ts",
"build": "npm run build:types && npm run build:js",
"build:all": "npm run clean && npm run readme && npm run build",
"build:types": "tsc -p tsconfig.build.json",
"build:js": "esbuild ./src/cli.ts --bundle --format=esm --platform=node --target=es2022 --sourcemap --external:typescript --outfile=./dist/cli.js",
"build:docs": "find src/docs -name '*.lit-md.ts' | grep -v README | xargs node src/cli.ts --outDir ./docs",
"prepublishOnly": "npm run clean && npm run verify && npm run build",
"clean": "rm -rf dist"
},
"devDependencies": {
"@types/node": "^25",
"esbuild": "^0.27.3",
"typescript": "^5"
}
}