adding monkeytype
Some checks failed
Mark Stale PRs / stale (push) Has been cancelled

This commit is contained in:
Benjamin Falch
2026-04-23 13:53:44 +02:00
parent e214a2fd35
commit 2bc741fb78
1930 changed files with 7590652 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{
"ignorePatterns": ["node_modules", "dist", ".turbo"],
"extends": [
"../oxlint-config/index.jsonc"
// "@monkeytype/oxlint-config"
]
}

View File

@@ -0,0 +1,27 @@
{
"name": "@monkeytype/tsup-config",
"private": true,
"exports": {
".": {
"types": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"scripts": {
"dev": "tsup-node --watch",
"build": "tsup-node",
"ts-check": "tsc --noEmit",
"lint": "oxlint . --type-aware --type-check",
"lint-fast": "oxlint ."
},
"devDependencies": {
"@monkeytype/typescript-config": "workspace:*",
"oxlint": "1.60.0",
"oxlint-tsgolint": "0.21.0",
"typescript": "6.0.2"
},
"peerDependencies": {
"tsup": "8.4.0"
}
}

View File

@@ -0,0 +1,21 @@
import { defineConfig, Options } from "tsup";
export function extendConfig(
customizer?: (options: Options) => Options,
): (options: Options) => unknown {
return (options) => {
const overrideOptions = customizer?.(options);
const config: Options = {
entry: ["src/**/*.ts"],
splitting: false,
sourcemap: true,
clean: !(options.watch === true || options.watch === "true"),
format: ["cjs", "esm"],
dts: false,
minify: true,
...overrideOptions,
};
return defineConfig(config);
};
}

View File

@@ -0,0 +1,13 @@
{
"extends": "@monkeytype/typescript-config/base.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"moduleResolution": "NodeNext",
"module": "NodeNext",
"target": "ES2015",
"lib": ["es2016"]
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}

View File

@@ -0,0 +1,10 @@
import { defineConfig } from "tsup";
export default defineConfig((_options) => ({
entry: ["src/index.ts"],
splitting: false,
sourcemap: false,
clear: !_options?.watch,
format: ["cjs", "esm"],
dts: false,
}));