From 0cb4344bac59a06242ad8dd6867376f00cd8ef54 Mon Sep 17 00:00:00 2001 From: Matthieu Morin Date: Tue, 4 Jun 2024 00:00:29 +0200 Subject: [PATCH] all scripts --- package.json | 145 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 92 insertions(+), 53 deletions(-) diff --git a/package.json b/package.json index 21d2eae..f23989f 100644 --- a/package.json +++ b/package.json @@ -1,56 +1,95 @@ { - "name": "templ8-lib-tsup", - "author": "Madmin42", - "version": "0.0.1", - "description": "", - "keywords": [ - "template", - "yo" - ], - "license": "GPL-3.0-or-later", - "homepage": "https://www.mattmor.in/projects/TS-Lib-tsup", - "repository": { - "type": "git", - "url": "git+https://git.mattmor.in/web/TS-Lib-tsup.git" - }, - "bugs": { - "url": "https://git.mattmor.in/web/TS-Lib-tsup/issues" - }, - "type": "module", - "types": "./dist/index.d.ts", - "main": "./dist/index.js", - "files": [ - "./dist/**/*" - ], - "module": "./dist/index.js", - "exports": { - ".": { - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "require": { - "types": "./dist/index.d.ts", - "default": "./distindex.cjs" - } + "name": "templ8-lib-tsup", + "version": "0.0.1", + "type": "module", + "description": "", + "repository": { + "type": "git", + "url": "git+https://git.mattmor.in/web/TS-Lib-tsup.git" + }, + "homepage": "https://www.mattmor.in/projects/TS-Lib-tsup", + "bugs": { + "url": "https://git.mattmor.in/web/TS-Lib-tsup/issues" + }, + "author": "Madmin42", + "license": "GPL-3.0-or-later", + "engines": { + "node": ">=16.0.0" + }, + "main": "./dist/index.js", + "module": "./dist/index.js", + "exports": { + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./distindex.cjs" + } + } + }, + "types": "./dist/index.d.ts", + "files": [ + "./dist/**/*" + ], + "keywords": [ + "template", + "yo" + ], + "scripts": { + "build": "npm run lint && npm run clean && npm run build:start", + "build:start": "tsup ./src/index.ts --format cjs,esm,iife --dts", + "build:types-check": "tsc --project tsconfig.check.json", + "build:types-temp": "tsup --dts-only --outDir temp -p src/node", + "clean": "rimraf ./dist", + "cm": "cz", + "format": "prettier --write --cache", + "format:check": "prettier --check .", + "lint": "eslint --fix", + "lint:check": "eslint --cache", + "prepare": "husky", + "test": "jest --coverage", + "test:watch": "jest --watch", + "typecheck": "tsc --noEmit" + }, + "config": { + "commitizen": { + "path": "./node_modules/cz-conventional-changelog" + } + }, + "devDependencies": { + "@eslint/js": "^9.4.0", + "@prettier/plugin-pug": "^3.0.0", + "@types/jest": "^29.5.12", + "cz-conventional-changelog": "^3.3.0", + "eslint": "^9.4.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-svelte": "^2.39.0", + "globals": "^15.3.0", + "husky": "^9.0.11", + "jest": "^29.7.0", + "lint-staged": "^15.2.5", + "npm-run-all": "^4.1.5", + "prettier": "3.2.5", + "prettier-plugin-pkg": "^0.18.1", + "prettier-plugin-svelte": "^3.2.3", + "rimraf": "^5.0.7", + "svelte": "^4.2.17", + "ts-jest": "^29.1.4", + "ts-node": "^10.9.2", + "tsup": "^8.1.0", + "typescript": "^5.4.5", + "typescript-eslint": "^7.11.0" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "**/*": "prettier --write --ignore-unknown" } - }, - "scripts": { - "clean": "rimraf ./dist", - "build": "npm run lint && npm run clean && npm run build:start", - "build:start": "tsup ./src/index.ts --format cjs,esm,iife --dts", - "build:types-temp": "tsup --dts-only --outDir temp -p src/node", - "build:types-check": "tsc --project tsconfig.check.json", - "typecheck": "tsc --noEmit", - "lint": "eslint --cache --ext .ts src/**", - "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"" - }, - "devDependencies": { - "cz-conventional-changelog": "^3.3.0" - }, - "config": { - "commitizen": { - "path": "./node_modules/cz-conventional-changelog" - } - } }