[LevK]: Build and test as a standalone package

Split out of actions/toolkit (packages/io, history kept by filter-repo).
Brings the 2024 [LevK] packaging edits forward onto current upstream:

- tsconfig.json: the monorepo root's compiler options inlined, no extends
- jest.config.cjs: the root's ts-jest transform, rooted at tests/
  (isolatedModules: ESM lib/ and sources run through CommonJS)
- __tests__/ -> tests/
- package.json: test = jest, build = tsc; jest/ts-jest/typescript as
  devDependencies; repository, homepage, bugs on git.levk.dev
- .gitignore: node_modules/, lib/, audit.json, tests/_temp/

Not carried over from 2024: version reset to 1.0.0 (dependents' ranges
need upstream's numbering) and the Unlicense field (the code is MIT).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UHXzGrsxfkGk8LmwrBbHNZ
This commit is contained in:
levaliciousandClaude Opus 5.5 committed 2026-10-12 15:01:22 -04:00
1 parent 9f91c0c628
commit b36ff5cdcd
6 files changed
+3904 -9

No files matched your search

+14 -7
View File
@@ -7,7 +7,7 @@
"actions",
"io"
],
"homepage": "https://github.com/actions/toolkit/tree/main/packages/io",
"homepage": "https://git.levk.dev/actions/io",
"license": "MIT",
"type": "module",
"main": "lib/io.js",
@@ -24,7 +24,7 @@
},
"directories": {
"lib": "lib",
"test": "__tests__"
"test": "tests"
},
"files": [
"lib"
@@ -34,15 +34,22 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/actions/toolkit.git",
"directory": "packages/io"
"url": "https://git.levk.dev/actions/io.git"
},
"scripts": {
"audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json",
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc"
"test": "jest",
"tsc": "tsc",
"build": "tsc"
},
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
"url": "https://git.levk.dev/actions/io/issues"
},
"devDependencies": {
"@types/jest": "^29.5.4",
"@types/node": "^24.1.0",
"jest": "^29.6.4",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
}
}