Skip to content

Commit 5cccb36

Browse files
build: drop the git-install prepare hook (#60)
The package installs from npm; prepack builds dist for the tarball.
1 parent 8f9a154 commit 5cccb36

4 files changed

Lines changed: 5 additions & 105 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ contract — modules that are not exported are internal and may change in any re
1212

1313
### Breaking changes since 0.1.0
1414

15+
- **Git installs are no longer supported.** The `prepare` hook that built `dist/` on a
16+
`github:corbitsdev/react-ui#<sha>` install is gone, so such an install ships no build
17+
output. Install from npm: `npm add @corbits/react-ui`.
1518
- **84 modules removed — every module no known consumer imports.** A usage audit across
1619
the workbench, portal, scout and solutions-builder codebases showed these surfaces were
1720
unreachable from any consumer, so they were deleted rather than carried as semver

‎IMPLEMENTATION.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ by `&&`:
3535

3636
Source imports are relative and carry `.js` extensions. There is no path
3737
alias. `prepack` runs the whole build so a failing gate cannot be packed.
38-
`prepare` (`scripts/prepare.mjs`) builds `dist/` on a git install; it is a
39-
no-op when `dist/` is already present.
4038

4139
Other scripts: `bun run typecheck`, `bun run lint` (eslint),
4240
`bun run dep-guard` (`scripts/dep-guard.mjs` — fails if any file imports
@@ -73,6 +71,4 @@ the rest of the library does not.
7371
## Publish
7472

7573
Registry install is the documented path (`npm` / `pnpm` / `yarn` /
76-
`bun add @corbits/react-ui`). `publishConfig.access` is `public`. A git
77-
install still works via `prepare`, and under bun that requires
78-
`trustedDependencies: ["@corbits/react-ui"]`.
74+
`bun add @corbits/react-ui`). `publishConfig.access` is `public`.

‎package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
"contrast-test": "node scripts/contrast-test.mjs",
4141
"stories": "ladle serve --host 127.0.0.1",
4242
"stories:build": "ladle build",
43-
"prepack": "bun run build",
44-
"prepare": "node scripts/prepare.mjs"
43+
"prepack": "bun run build"
4544
},
4645
"dependencies": {
4746
"class-variance-authority": "^0.7.1",

‎scripts/prepare.mjs‎

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)