mirror of
https://github.com/tabler/tabler-flags.git
synced 2026-01-25 04:06:25 +00:00
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "@tabler/flags-react",
|
|
"version": "0.0.1",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/cjs/index.cjs",
|
|
"types": "./dist/cjs/index.d.cts",
|
|
"module": "./dist/esm/index.js",
|
|
"exports": {
|
|
".": {
|
|
"require": {
|
|
"types": "./dist/cjs/index.d.cts",
|
|
"default": "./dist/cjs/index.cjs"
|
|
},
|
|
"import": {
|
|
"types": "./dist/esm/index.d.ts",
|
|
"default": "./dist/esm/index.js"
|
|
}
|
|
}
|
|
},
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"build": "pnpm run clean && pnpm run copy && node ./build.mjs && pnpm run build:tsup",
|
|
"build:tsup": "concurrently \"npm run build:cjs\" \"npm run build:esm\"",
|
|
"build:cjs": "tsup --format cjs --external react",
|
|
"build:esm": "tsup --format esm --external react",
|
|
"copy": "pnpm run copy:license",
|
|
"copy:license": "cp ../../LICENSE ./LICENSE",
|
|
"clean": "find . ! -name '.gitkeep' -path './dist/*' -exec rm -rf {} + && rm -rf ./src/flags/*",
|
|
"test": "vitest run --typecheck"
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.2.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "16 || 17 || 18"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^14.2.2",
|
|
"@types/react": "^18.2.64",
|
|
"@vitejs/plugin-react": "^4.2.1"
|
|
}
|
|
}
|