Files
mridatalib/package.json
T
orrisroot 56d1cf0bc2 build: modernize build system and tooling
Migrate from tsc to tsdown for multi-format (ESM/CJS) builds.
Replace Prettier with Biome for formatting and linting.
Upgrade ESLint to flat config (v10) and TypeScript to v6.
Drop Yarn in favor of npm for package management.
Configure dual ESM/CJS exports with proper type declarations.
Add publishing configuration and release scripts.
Reformat source files to 2-space indentation.
2026-05-28 20:20:50 +09:00

56 lines
1.3 KiB
JSON

{
"name": "mridatalib",
"publishConfig": {
"registry": "https://git.ni.riken.jp/api/packages/niu/npm/"
},
"version": "1.0.0",
"type": "module",
"license": "MIT",
"files": [
"dist"
],
"exports": {
"./g3d": {
"import": {
"types": "./dist/g3d.d.mts",
"default": "./dist/g3d.mjs"
},
"require": {
"types": "./dist/g3d.d.cts",
"default": "./dist/g3d.cjs"
}
},
"./m3d": {
"import": {
"types": "./dist/m3d.d.mts",
"default": "./dist/m3d.mjs"
},
"require": {
"types": "./dist/m3d.d.cts",
"default": "./dist/m3d.cjs"
}
}
},
"scripts": {
"build": "tsdown",
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint --fix 'src/**/*.ts'",
"format": "biome format --write .",
"format:check": "biome format .",
"check": "biome check .",
"check:fix": "biome check --write .",
"prepublishOnly": "npm run build",
"publish:dry": "npm publish --dry-run",
"release": "npm publish"
},
"devDependencies": {
"@biomejs/biome": "^2.4.16",
"@eslint/js": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^8.60.0",
"@typescript-eslint/parser": "^8.60.0",
"eslint": "^10.4.0",
"tsdown": "^0.22.0",
"typescript": "^6.0.3"
}
}