From d1620f7fdbf28c66980c008cbb92372feb3ffcd5 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 4 Jul 2026 20:20:52 +0200 Subject: [PATCH] feat: add binary --- package.json | 13 +++++++------ pnpm-lock.yaml | 37 +++---------------------------------- src/index.ts | 2 ++ 3 files changed, 12 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index be77692..ddc983b 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,13 @@ { - "name": "graph", - "private": true, - "version": "0.0.0", + "name": "gen-doctests", + "private": false, + "version": "0.1.0", "type": "module", + "bin": "dist/index.js", "scripts": { "test": "vitest --run --reporter=tree", "build": "tsc -b && esbuild --minify --bundle src/index.ts --outdir=dist --define:import.meta.vitest=undefined --platform=node --format=esm --packages=external", + "prepublishOnly": "pnpm build", "fmt": "prettier --write .", "lint": "eslint .", "preview": "vite preview" @@ -19,13 +21,12 @@ "eslint": "^10.3.0", "jiti": "^2.7.0", "prettier": "^3.8.4", - "typescript": "~6.0.2", "typescript-eslint": "^8.59.2", "vitest": "^4.1.9" }, "dependencies": { - "arktype": "^2.2.2", "citty": "^0.2.2", - "picomatch": "^4.0.5" + "picomatch": "^4.0.5", + "typescript": "^6.0.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a0265ef..0a64e63 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,15 +8,15 @@ importers: .: dependencies: - arktype: - specifier: ^2.2.2 - version: 2.2.2 citty: specifier: ^0.2.2 version: 0.2.2 picomatch: specifier: ^4.0.5 version: 4.0.5 + typescript: + specifier: ^6.0.3 + version: 6.0.3 devDependencies: '@eslint/js': specifier: ^10.0.1 @@ -42,9 +42,6 @@ importers: prettier: specifier: ^3.8.4 version: 3.8.4 - typescript: - specifier: ~6.0.2 - version: 6.0.3 typescript-eslint: specifier: ^8.59.2 version: 8.61.1(eslint@10.5.0(jiti@2.7.0))(typescript@6.0.3) @@ -54,12 +51,6 @@ importers: packages: - '@ark/schema@0.56.1': - resolution: {integrity: sha512-1Cf2g9nKD8K/3JGRu+gCCfYw5d4qR8YLLjDs5W5kpmaButCYWAPFUJqSXyBATPjglzCd4tIkp398iPYVs8MjRA==} - - '@ark/util@0.56.1': - resolution: {integrity: sha512-Tp1rTik3q5Z+jAeeDxr5JZpmVIw0miti1ykSEHyZv5Pw3TIJl2xbN6KTacOxITp0l3s9ytlrWd30Zvqcy5vzoQ==} - '@emnapi/core@1.10.0': resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} @@ -516,12 +507,6 @@ packages: ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - arkregex@0.0.7: - resolution: {integrity: sha512-O/Ltrn9EUSn3ui0KVzfyrWGDUsHlzKxDVBtpQxL/6JmLRMAZAebfSNf/A/J5Ny5S6QIwrXX+RfXsu888HMs35A==} - - arktype@2.2.2: - resolution: {integrity: sha512-YYf1xhL2dh5aPZFlsY0RAsxv5HZqfLGLptH2ZP3JidTmsGRW8VOymhPjjMTkerL12vR2YtX0SK4c1mATtae8SA==} - assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} @@ -1034,12 +1019,6 @@ packages: snapshots: - '@ark/schema@0.56.1': - dependencies: - '@ark/util': 0.56.1 - - '@ark/util@0.56.1': {} - '@emnapi/core@1.10.0': dependencies: '@emnapi/wasi-threads': 1.2.1 @@ -1417,16 +1396,6 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - arkregex@0.0.7: - dependencies: - '@ark/util': 0.56.1 - - arktype@2.2.2: - dependencies: - '@ark/schema': 0.56.1 - '@ark/util': 0.56.1 - arkregex: 0.0.7 - assertion-error@2.0.1: {} balanced-match@4.0.4: {} diff --git a/src/index.ts b/src/index.ts index 4d4cd77..ad18a1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { globSync } from "fs"; import { runCli } from "./cli"; import { DEFAULT_OPTIONS } from "./options";