UNPKG

@jsheaven/astro-client-generator

Version:

Generates TypeScript API client code for your Astro endpoints. No manual `fetch()` code writing anymore.

71 lines (70 loc) 2.1 kB
{ "name": "@jsheaven/astro-client-generator", "version": "1.1.4", "type": "module", "publishConfig": { "access": "public" }, "bin": { "astro-client-generator": "./dist/cli.esm.js", "astro-client-generator-cjs": "./dist/cli.cjs.js" }, "license": "MIT", "description": "Generates TypeScript API client code for your Astro endpoints. No manual `fetch()` code writing anymore.", "keywords": [ "client-generator", "fetch", "api-client", "codegen", "Astro", "endpoints" ], "repository": { "url": "git+https://github.com/jsheaven/astro-client-generator.git", "type": "git" }, "scripts": { "presandbox:example:dev": "yarn build && IS_SANDBOX=true yarn --cwd ./example/todo-list", "sandbox:example:dev": "IS_SANDBOX=true yarn --cwd ./example/todo-list build", "postsandbox:example:dev": "IS_SANDBOX=true yarn --cwd ./example/todo-list dev", "pretest": "yarn build", "test": "NODE_OPTIONS='--experimental-vm-modules --enable-source-maps --no-warnings' jest ./test/*.test.ts", "clean": "rm -rf ./dist && rm -rf ./coverage", "prebuild": "yarn clean", "build": "yarn node --enable-source-maps ./build.mjs", "precli": "yarn build", "cli": "yarn node --enable-source-maps ./dist/cli.esm.js generate", "cli-cjs": "yarn node --enable-source-maps ./dist/cli.cjs.js generate" }, "stackblitz": { "startCommand": "yarn sandbox:example:dev" }, "author": "Aron Homberg <info@aron-homberg.de>", "sideEffects": false, "exports": { ".": { "require": "./dist/index.cjs.js", "import": "./dist/index.esm.js" } }, "module": "./dist/index.esm.js", "main": "./dist/index.cjs.js", "types": "./dist/index.esm.d.ts", "files": [ "dist" ], "devDependencies": { "@jsheaven/easybuild": "^1.1.4", "@types/jest": "^29.4.0", "astro": "^4.1.2", "jest": "^29.4.2", "ts-jest": "^29.0.5", "typescript": "^4.9.5" }, "dependencies": { "chokidar": "^3.5.3", "kleur": "^4.1.5", "ts-morph": "^21.0.1", "yargs-parser": "^21.1.1" } }