UNPKG

@basictech/cli

Version:

Basic CLI for creating & managing your projects

74 lines (73 loc) 2.68 kB
{ "name": "@basictech/cli", "version": "0.0.37", "type": "module", "description": "Basic CLI for creating & managing your projects", "main": "dist/index.js", "bin": { "basic": "dist/index.js" }, "scripts": { "build": "tsc && node -e \"const fs = require('fs'); const path = require('path'); function fixImports(dir) { const files = fs.readdirSync(dir); files.forEach(file => { const filePath = path.join(dir, file); const stat = fs.statSync(filePath); if (stat.isDirectory()) { fixImports(filePath); } else if (file.endsWith('.js')) { let content = fs.readFileSync(filePath, 'utf8'); content = content.replace(/from\\s+['\\\"]\\.\\.?\\/([^'\\\"]*)['\\\"];/g, (match, p1) => { if (p1.includes('.')) return match; return match.replace(p1, p1 + '.js'); }); fs.writeFileSync(filePath, content); } }); } fixImports('dist');\" && npm run bundle", "bundle": "node -e \"const pkg=require('./package.json'); require('esbuild').buildSync({entryPoints:['dist/index.js'],bundle:true,platform:'node',outfile:'dist/index.js',packages:'external',format:'esm',allowOverwrite:true,define:{'CLI_VERSION':JSON.stringify(pkg.version)}})\"", "dev": "tsx src/index.ts", "dev:watch": "tsx watch src/index.ts", "test": "vitest run --exclude='tests/components/**'", "test:all": "vitest run", "test:components": "vitest run tests/components", "test:watch": "vitest watch --exclude='tests/components/**'", "test:ui": "vitest --ui", "test:coverage": "vitest --coverage", "prepublishOnly": "npm run build" }, "dependencies": { "@babel/parser": "^7.29.2", "@babel/types": "^7.29.0", "commander": "^14.0.3", "ink": "^6.8.0", "react": "^19.2.4" }, "devDependencies": { "@types/node": "^22.19.0", "@types/react": "^19.2.13", "@typescript-eslint/parser": "^8.34.0", "@typescript-eslint/types": "^8.34.0", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "esbuild": "^0.27.4", "ink-testing-library": "^4.0.0", "tsx": "^4.21.0", "typescript": "^5.9.3", "vite": "^6.3.5", "vitest": "^3.2.4" }, "files": [ "dist/**/*.js", "dist/**/*.d.ts", "dist/**/*.js.map", "dist/**/*.d.ts.map" ], "keywords": [ "cli", "basic", "database", "development", "schema", "typescript", "react-ink" ], "author": "Basic Team", "license": "MIT", "homepage": "https://basic.tech", "repository": { "type": "git", "url": "https://github.com/basicdb/basic-admin.git", "directory": "apps/cli" }, "bugs": { "url": "https://github.com/basicdb/basic-admin/issues" }, "engines": { "node": ">=22.0.0 <25.0.0" } }