Skip to content

Commit

Permalink
Merge pull request #26 from squirrelchat/chore/dual-build
Browse files Browse the repository at this point in the history
feat: dual-package
  • Loading branch information
cyyynthia authored Jul 17, 2024
2 parents a93a9c3 + 6d4ed89 commit f72e14a
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 <[email protected]>",
"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://[email protected]/squirrelchat/smol-toml.git"
},
"author": "Cynthia <[email protected]>",
"license": "BSD-3-Clause",
"type": "module",
"packageManager": "[email protected]",
"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 f72e14a

Please sign in to comment.