@flytedan/flytebot-design-system 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/dist/index.cjs +502 -390
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.js +502 -390
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -81,7 +81,8 @@ pnpm run docs
|
|
|
81
81
|
pnpm run build # tsup — emits dist/{index.js,index.cjs,index.d.ts}
|
|
82
82
|
pnpm run typecheck # tsc --noEmit
|
|
83
83
|
pnpm run lint # eslint .
|
|
84
|
-
pnpm run test #
|
|
84
|
+
pnpm run test # vitest run — needs no build
|
|
85
|
+
pnpm run test:dist # tsup, then the checks of the built dist/ (scripts/vitest.dist.config.ts)
|
|
85
86
|
```
|
|
86
87
|
|
|
87
88
|
## Releasing
|
|
@@ -111,10 +112,17 @@ bash scripts/release.sh <new-version> "<summary>"
|
|
|
111
112
|
- refuses a dirty tree, and takes a `.release.lock` so two runs can't overlap;
|
|
112
113
|
- fetches `origin` and checks out `origin/main`'s exact tip — never unmerged
|
|
113
114
|
work;
|
|
115
|
+
- re-executes the `scripts/release.sh` it just checked out, handing over the
|
|
116
|
+
lock, so every later step (gates, bump, publish) is the released commit's
|
|
117
|
+
own script, never the one that was on disk before the checkout (bash reads a
|
|
118
|
+
script from the file it opened). The second pass is marked by
|
|
119
|
+
`RELEASE_REEXEC_SHA`, which carries the checked-out commit: it asserts `HEAD`
|
|
120
|
+
is that commit and skips the fetch and checkout;
|
|
114
121
|
- installs with `pnpm install --frozen-lockfile`;
|
|
115
|
-
- runs the gates: `tsup
|
|
116
|
-
`vitest run
|
|
117
|
-
`
|
|
122
|
+
- runs the gates: `tsup`, then straight away the checks of that build
|
|
123
|
+
(`vitest run --config scripts/vitest.dist.config.ts`), then `vitest run`,
|
|
124
|
+
`tsc --noEmit`, `tsc --noEmit -p tsconfig.docs.json`, the docs `vite build`,
|
|
125
|
+
and `lint` if the repo has that script;
|
|
118
126
|
- refuses `<new-version>` unless it is greater than both the working
|
|
119
127
|
checkout's `package.json` version and npm's currently published `latest`;
|
|
120
128
|
- bumps `package.json`, commits `chore(release): <new-version> — <summary>`,
|
|
@@ -125,8 +133,9 @@ bash scripts/release.sh <new-version> "<summary>"
|
|
|
125
133
|
success.
|
|
126
134
|
|
|
127
135
|
`scripts/release.test.ts` covers its guards (wrong directory, dirty tree,
|
|
128
|
-
held lock, missing/malformed version argument)
|
|
129
|
-
|
|
136
|
+
held lock, missing/malformed version argument) and the re-execution (a fake
|
|
137
|
+
origin whose `release.sh` changed runs the new body; the second pass's `HEAD`
|
|
138
|
+
and lock checks) against throwaway git repos — no network, no real publish.
|
|
130
139
|
|
|
131
140
|
## License
|
|
132
141
|
|