|
1 | 1 | { |
2 | 2 | "name": "smol-toml", |
3 | | - "version": "1.2.2", |
| 3 | + "license": "BSD-3-Clause", |
| 4 | + "version": "1.3.0", |
| 5 | + "description": "A small, fast, and correct TOML parser/serializer", |
| 6 | + "author": "Cynthia <cyyynthia@borkenware.com>", |
| 7 | + "repository": "github:squirrelchat/smol-toml", |
| 8 | + "bugs": "https://github.com/squirrelchat/smol-toml/issues", |
| 9 | + "funding": "https://github.com/sponsors/cyyynthia", |
4 | 10 | "keywords": [ |
5 | 11 | "toml", |
6 | 12 | "parser", |
7 | 13 | "serializer" |
8 | 14 | ], |
9 | | - "description": "A small, fast, and correct TOML parser/serializer", |
10 | | - "repository": { |
11 | | - "type": "git", |
12 | | - "url": "git+ssh://git@github.com/squirrelchat/smol-toml.git" |
13 | | - }, |
14 | | - "author": "Cynthia <cyyynthia@borkenware.com>", |
15 | | - "license": "BSD-3-Clause", |
| 15 | + "type": "module", |
| 16 | + "packageManager": "pnpm@9.4.0", |
16 | 17 | "engines": { |
17 | 18 | "node": ">= 18" |
18 | 19 | }, |
19 | 20 | "scripts": { |
20 | | - "build": "tsc", |
21 | 21 | "test": "vitest", |
22 | 22 | "test-ui": "vitest --ui", |
23 | | - "bench": "vitest bench" |
| 23 | + "bench": "vitest bench", |
| 24 | + "build": "pnpm run build:mjs && pnpm run build:cjs && node test/package/package-test.mjs", |
| 25 | + "build:mjs": "tsc", |
| 26 | + "build:cjs": "esbuild dist/index.js --bundle --platform=node --target=node18 --format=cjs --outfile=dist/index.cjs" |
24 | 27 | }, |
25 | 28 | "devDependencies": { |
26 | 29 | "@iarna/toml": "3.0.0", |
27 | 30 | "@ltd/j-toml": "^1.38.0", |
28 | 31 | "@tsconfig/node-lts": "^20.1.3", |
29 | 32 | "@tsconfig/strictest": "^2.0.5", |
30 | | - "@types/node": "^20.12.11", |
31 | | - "@vitest/ui": "^1.6.0", |
| 33 | + "@types/node": "^20.14.10", |
| 34 | + "@vitest/ui": "^2.0.3", |
| 35 | + "esbuild": "^0.23.0", |
32 | 36 | "fast-toml": "^0.5.4", |
33 | | - "typescript": "^5.4.5", |
34 | | - "vitest": "^1.6.0" |
| 37 | + "typescript": "^5.5.3", |
| 38 | + "vitest": "^2.0.3" |
35 | 39 | }, |
36 | | - "main": "./dist/index.js", |
| 40 | + "main": "./dist/index.cjs", |
| 41 | + "module": "./dist/index.js", |
37 | 42 | "types": "./dist/index.d.ts", |
| 43 | + "exports": { |
| 44 | + "types": "./dist/index.d.ts", |
| 45 | + "import": "./dist/index.js", |
| 46 | + "require": "./dist/index.cjs" |
| 47 | + }, |
38 | 48 | "files": [ |
39 | 49 | "README.md", |
40 | 50 | "LICENSE", |
|
0 commit comments