Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
{
"name": "@hyphen/react-sdk",
"version": "1.1.1",
"version": "1.2.0",
"description": "Hyphen SDK for React",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"types": "dist/index.d.ts",
"types": "dist/index.d.mts",
"scripts": {
"lint": "biome check --write --error-on-warnings",
"test": "pnpm lint && vitest run --coverage",
"test:ci": "biome check --error-on-warnings && vitest run --coverage",
"build": "tsup",
"build": "tsdown",
"clean": "rimraf ./dist pnpm-lock.yaml node_modules coverage",
"prepare": "pnpm build"
"prepublishOnly": "pnpm build"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore prepare build hook for git/local installs

Replacing prepare with prepublishOnly means the build no longer runs when this package is installed from a git URL or local path, because npm/pnpm only run prepublishOnly on publish while prepare runs before packing/installing git dependencies. Since this repo does not commit dist/ but package entry points (main/exports) all target dist/*, those install paths now produce an unbuilt package that fails at runtime with missing module files.

Useful? React with 👍 / 👎.

},
"keywords": [
"hyphen",
Expand All @@ -34,7 +39,6 @@
"devDependencies": {
"@biomejs/biome": "^2.4.12",
"@faker-js/faker": "^10.4.0",
"@swc/core": "^1.15.21",
"@testing-library/react": "^16.3.2",
"@types/node": "^25.6.0",
"@types/react": "^19.2.14",
Expand All @@ -45,8 +49,8 @@
"react-dom": "^19.2.5",
"rimraf": "^6.1.3",
"tsd": "^0.33.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"tsdown": "^0.21.8",
"typescript": "^6.0.2",
"vitest": "^4.1.4"
},
"files": [
Expand Down
Loading
Loading