sprix
Version:
Sprites for your project, with pleasure
96 lines (95 loc) • 2.45 kB
JSON
{
"name": "sprix",
"type": "module",
"version": "0.0.2",
"description": "Sprites for your project, with pleasure",
"author": "Fayez Nazzal (https://fayez.io)",
"license": "MIT",
"keywords": [
"sprites",
"svg",
"icons",
"react",
"typescript",
"sprite-sheet",
"icon-management"
],
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"bin": {
"sprix": "./dist/cli.cjs"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
},
"scripts": {
"build": "pnpm run clean && pnpm run build:lib && pnpm run build:cli && pnpm run build:types",
"build:lib": "esbuild src/index.ts --bundle --platform=node --target=node16 --format=esm --outfile=dist/index.js --external:react && esbuild src/index.ts --bundle --platform=node --target=node16 --format=cjs --outfile=dist/index.cjs --external:react",
"build:cli": "esbuild src/cli/script.ts --bundle --platform=node --target=node16 --format=cjs --outfile=dist/cli.cjs --banner:js=\"#!/usr/bin/env node\"",
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
"clean": "rm -rf dist",
"prepublishOnly": "pnpm run build",
"test": "vitest"
},
"devDependencies": {
"@eslint/js": "9.14.0",
"@types/node": "22.9.0",
"esbuild": "^0.25.6",
"eslint": "9.14.0",
"glob": "^11.0.0",
"globals": "15.12.0",
"happy-dom": "^14.7.1",
"ink": "^5.0.1",
"react": "^18.3.1",
"typescript": "5.6.3",
"typescript-eslint": "8.13.0"
},
"peerDependencies": {
"react": "^18.3.1"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md}": [
"prettier --write"
]
},
"engines": {
"node": ">=16"
},
"repository": {
"type": "git",
"url": "https://github.com/fayez-nazzal/sprix.git"
},
"bugs": {
"url": "https://github.com/fayez-nazzal/sprix/issues"
},
"homepage": "https://github.com/fayez-nazzal/sprix#readme",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@types/lodash": "^4.17.20",
"lodash": "^4.17.21",
"vitest": "^3.2.4",
"zod": "^4.0.5",
"zx": "^8.7.0"
}
}