Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
63 lines (63 loc) · 1.86 KB
/
Copy pathpackage.json
File metadata and controls
63 lines (63 loc) · 1.86 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
{
"name": "binpackingjs",
"version": "4.1.0",
"description": "2D and 3D Bin Packing library with TypeScript and immutable design",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./2d": {
"import": {
"types": "./dist/types/2d/index.d.ts",
"default": "./dist/esm/2d/index.js"
},
"require": {
"types": "./dist/types/2d/index.d.ts",
"default": "./dist/cjs/2d/index.js"
}
},
"./3d": {
"import": {
"types": "./dist/types/3d/index.d.ts",
"default": "./dist/esm/3d/index.js"
},
"require": {
"types": "./dist/types/3d/index.d.ts",
"default": "./dist/cjs/3d/index.js"
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/olragon/binpackingjs"
},
"files": ["dist", "src", "LICENSE", "README.md"],
"scripts": {
"build": "bun run build:esm && bun run build:cjs && bun run build:types",
"build:esm": "bun build src/index.ts src/2d/index.ts src/3d/index.ts --outdir dist/esm --format esm --splitting",
"build:cjs": "bun build src/index.ts src/2d/index.ts src/3d/index.ts --outdir dist/cjs --format cjs",
"build:types": "tsc --emitDeclarationOnly --outDir dist/types",
"test": "bun test",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"playground:dev": "cd playground && bun run dev",
"playground:build": "cd playground && bun run build"
},
"author": "Long Nguyen",
"license": "MIT",
"devDependencies": {
"@types/bun": "^1.3.14",
"typescript": "^5.8"
}
}