/
package.json
54 lines (54 loc) · 1.86 KB
/
package.json
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
{
"name": "tabito-lib",
"version": "1.3.0",
"description": "Express a Japanese sentence with furigana and with synonyms, then match it against text input",
"keywords": [
"Japanese",
"sentence",
"furigana",
"quiz"
],
"author": "Ahmed Fasih",
"repository": {
"type": "git",
"url": "https://github.com/fasiha/tabito-lib.git"
},
"homepage": "https://github.com/fasiha/tabito-lib",
"bugs": "https://github.com/fasiha/tabito-lib/issues",
"license": "Unlicense",
"scripts": {
"clean": "rm -f tests/*.js *.js",
"build": "esbuild index.ts --outfile=dist/index.min.mjs --bundle --sourcemap --minify --format=esm",
"build:cjs": "esbuild index.ts --outfile=dist/index.cjs --bundle --format=cjs",
"build:browser": "esbuild index.ts --outfile=dist/tabito.min.js --bundle --sourcemap --minify --format=iife --global-name=tabito && cp dist/tabito.min.js* docs",
"bundle": "npm run build && npm run build:browser && npm run build:cjs",
"build:dev": "esbuild demo.ts --bundle --outdir=. --platform=node --format=cjs",
"demo": "npm run build:dev && node demo.js",
"build:test": "npm run bundle && npm run build:dev && esbuild tests/*.ts --outdir=tests --platform=node --format=cjs",
"test": "npm run build:test && tape 'tests/**/*js'"
},
"main": "dist/index.cjs",
"module": "dist/index.min.mjs",
"types": "dist/index.ts",
"exports": {
".": {
"browser": "./dist/index.min.mjs",
"node": {
"import": "./dist/index.min.mjs",
"require": "./dist/index.cjs"
},
"types": "./index.ts",
"import": "./dist/index.min.mjs"
},
"./package.json": "./package.json",
"./*.ts": "./*.ts",
"./dist/*": "./dist/*"
},
"devDependencies": {
"@types/node": "^20.8.10",
"@types/tape": "^5.6.3",
"esbuild": "^0.19.5",
"tape": "^5.7.2",
"typescript": "^5.2.2"
}
}