Skip to content

Commit

Permalink
feat: dual-package
Browse files Browse the repository at this point in the history
closes #25
  • Loading branch information
cyyynthia committed Jul 16, 2024
1 parent a93a9c3 commit 6d4ed89
Show file tree
Hide file tree
Showing 9 changed files with 672 additions and 456 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
Expand All @@ -33,8 +31,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down
40 changes: 25 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,50 @@
{
"name": "smol-toml",
"version": "1.2.2",
"license": "BSD-3-Clause",
"version": "1.3.0",
"description": "A small, fast, and correct TOML parser/serializer",
"author": "Cynthia <cyyynthia@borkenware.com>",
"repository": "github:squirrelchat/smol-toml",
"bugs": "https://github.com/squirrelchat/smol-toml/issues",
"funding": "https://github.com/sponsors/cyyynthia",
"keywords": [
"toml",
"parser",
"serializer"
],
"description": "A small, fast, and correct TOML parser/serializer",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/squirrelchat/smol-toml.git"
},
"author": "Cynthia <cyyynthia@borkenware.com>",
"license": "BSD-3-Clause",
"type": "module",
"packageManager": "pnpm@9.4.0",
"engines": {
"node": ">= 18"
},
"scripts": {
"build": "tsc",
"test": "vitest",
"test-ui": "vitest --ui",
"bench": "vitest bench"
"bench": "vitest bench",
"build": "pnpm run build:mjs && pnpm run build:cjs && node test/package/package-test.mjs",
"build:mjs": "tsc",
"build:cjs": "esbuild dist/index.js --bundle --platform=node --target=node18 --format=cjs --outfile=dist/index.cjs"
},
"devDependencies": {
"@iarna/toml": "3.0.0",
"@ltd/j-toml": "^1.38.0",
"@tsconfig/node-lts": "^20.1.3",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^20.12.11",
"@vitest/ui": "^1.6.0",
"@types/node": "^20.14.10",
"@vitest/ui": "^2.0.3",
"esbuild": "^0.23.0",
"fast-toml": "^0.5.4",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
"typescript": "^5.5.3",
"vitest": "^2.0.3"
},
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"README.md",
"LICENSE",
Expand Down
Loading

0 comments on commit 6d4ed89

Please sign in to comment.