build: npm and Deno workspace with core's gates

Same lint, format and complexity gates as core, plus a lint rule that keeps
core a types-only import in plugin sources. Runtime suites are chosen from each
package's engines, so declaring a runtime is what puts a package under its test.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-17 23:00:49 -05:00
1 parent 9745a2f9aa
commit efffaebb96
10 files changed
+3103

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
{
"name": "green-tea-plugins",
"private": true,
"license": "MIT",
"type": "module",
"workspaces": ["packages/*"],
"engines": {
"node": ">=22"
},
"scripts": {
"lint": "eslint --no-error-on-unmatched-pattern packages test",
"format": "prettier --write \"packages/*/{src,test}/**/*.ts\" \"test/**/*.ts\"",
"format:check": "prettier --check \"packages/*/{src,test}/**/*.ts\" \"test/**/*.ts\"",
"complexity:check": "node scripts/check-complexity.mjs",
"typecheck": "tsc --noEmit -p tsconfig.json",
"test": "node --import tsx --test test/*.test.ts packages/*/test/*.test.ts",
"test:deno": "node scripts/run-runtime.mjs deno",
"test:bun": "node scripts/run-runtime.mjs bun",
"test:edge": "node scripts/run-runtime.mjs workerd",
"prepare": "git config core.hooksPath .githooks || true"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^22.0.0",
"cognitive-complexity-ts": "^0.8.2",
"eslint": "^9.39.5",
"prettier": "^3.9.6",
"tsx": "^4.23.5",
"typescript": "^5.5.0",
"typescript-eslint": "^8.70.0"
}
}