UNPKG

@mccann-hub/create-typescript-template

Version:

CLI tool to initialize a TypeScript project with dual CommonJS and ESM support, path aliases, unit testing, and linting for NPM publishing.

71 lines (70 loc) 2.13 kB
{ "name": "@mccann-hub/create-typescript-template", "version": "0.3.0", "publishConfig": { "access": "public" }, "description": "CLI tool to initialize a TypeScript project with dual CommonJS and ESM support, path aliases, unit testing, and linting for NPM publishing.", "main": "./dist/cjs/index.js", "bin": "./bin/index.js", "scripts": { "test": "cross-env TSX_TSCONFIG_PATH='./tsconfig.test.json' mocha", "build:cjs": "tsc --project tsconfig.commonjs.json && tsc-alias -p tsconfig.commonjs.json", "build:esm": "tsc --project tsconfig.esm.json && tsc-alias -p tsconfig.esm.json", "build": "npm run build:cjs && npm run build:esm", "prepublishOnly": "npm run build", "clean": "node -e \"require('fs').rmSync('./dist', { recursive: true, force: true })\"", "prebuild": "npm run clean", "lint": "eslint . --ext .ts,.js --fix" }, "keywords": [ "typescript", "typescript-init", "project-generator", "typescript-starter", "cli", "project-setup", "module-support", "npm-package", "dual-module", "commonjs", "esm", "module-resolution", "path-alias", "typescript-config", "linting", "unit-testing", "npm-publish" ], "author": "jabez007", "license": "ISC", "devDependencies": { "@types/mocha": "^10.0.9", "@types/node": "^22.8.2", "@typescript-eslint/eslint-plugin": "^8.12.2", "@typescript-eslint/parser": "^8.12.2", "cross-env": "^7.0.3", "eslint": "^8.57.1", "mocha": "^10.7.3", "tsc-alias": "^1.8.10", "tsconfig-paths": "^4.2.0", "tsx": "^4.19.2", "typescript": "^5.6.3" }, "types": "./dist/cjs/index.d.ts", "module": "./dist/esm/index.js", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" } }, "repository": { "type": "git", "url": "git+https://github.com/McCann-Hub/create-typescript-template.git" }, "bugs": { "url": "https://github.com/McCann-Hub/create-typescript-template/issues" }, "homepage": "https://github.com/McCann-Hub/create-typescript-template#readme" }