Files
term-color-render/package.json
2026-02-06 22:51:28 +08:00

51 lines
1.3 KiB
JSON

{
"name": "@hatterjiang/term-color-render",
"version": "1.0.2",
"description": "Render color for term use syntax like [red]text[/red]",
"license": "MIT",
"author": "Hatter Jiang",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/mjs/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/mjs/index.js"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"repository": {
"type": "git",
"url": "https://git.hatter.ink/hatter/term-color-render.git"
},
"keywords": [
"terminal",
"term",
"color"
],
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"scripts": {
"prebuild": "rm -rf dist",
"build": "npm run build:mjs && npm run build:cjs && npm run build:types",
"build:mjs": "tsc --module ESNext --outDir dist/mjs --moduleSuffixes .mjs",
"build:cjs": "tsc --module CommonJS --outDir dist/cjs --moduleSuffixes .cjs",
"build:types": "tsc --emitDeclarationOnly --outDir dist/types",
"lint": "eslint src --ext .ts",
"test": "jest"
},
"devDependencies": {
"@types/node": "^25.2.1",
"typescript": "^5.9.3"
}
}