You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB
JSON

{
"name": "@haina/npm",
3 months ago
"version": "0.1.2",
"main": "./build/cjs/index.js",
"module": "./build/esm/index.js",
"exports": {
".": {
"import": "./build/esm/index.js",
"require": "./build/cjs/index.js"
},
"./esm/*": "./build/esm/*",
"./cjs/*": "./build/cjs/*"
},
"files": [
"build"
],
"scripts": {
"clean": "rimraf build",
"generate-indexes": "node scripts/generate-indexes.js",
"build:cjs": "npm run generate-indexes && babel src --out-dir build/cjs --plugins=@babel/plugin-transform-modules-commonjs",
"build:esm": "npm run generate-indexes && babel src --out-dir build/esm",
"build:individual": "npm run generate-indexes && rollup -c",
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:individual",
"pack": "npm run build && node scripts/pack-modules.js",
"pack:all": "npm run build && npm pack --pack-destination ./dist && node scripts/pack-modules.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"peerDependencies": {
"react": "^18.3.0"
},
"devDependencies": {
"@babel/cli": "^7.28.3",
"@babel/core": "^7.28.5",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"react": "^18.3.1",
"rimraf": "^6.1.2",
"rollup": "^4.24.0"
}
}