build: modernize packaging and tooling for 0.3.1#16
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking
FormSchematype →FormDefinition.validateSchema()→validateDefinition().FormRendererpropschema→definition(React and Vue).mainandmodulefields. Minimum Node is 18.Fixes
@formhaus/core(webpack couldn't follow extension-less ESM re-exports from the barrel file).@formhaus/vuetypes failed to resolve undermoduleResolution: "node16"/"nodenext".@formhaus/figmadevDep chain pulled 3 moderate CVEs via oldvitest@2. Bumped tovitest@4and[email protected].descriptionfields.Sizes (gzipped)
@formhaus/core: 2.87 KB@formhaus/react: 3.15 KB@formhaus/vue: 5.49 KBBuild and tooling
core,react:tsc→tsupsingle bundled ESM.vue:vue-tsc --declaration→vite-plugin-dtswith type rollup.exportsfield:typescondition first.sideEffects: falseon core/react/vue.engines.node: ">=18"on every published package.publint,@arethetypeswrong/cli --profile esm-only, and atest:resolvescript that imports builtdist/index.jsthrough native Node ESM as a regression guard.Verification
pnpm lint:packages→ All good × 3pnpm check:types→ all 🟢 (esm-only profile)pnpm --filter @formhaus/core --filter @formhaus/react run test:resolve→ ESM resolve OK × 2pnpm test→ 175 passing (core 136, react 14, vue 10, figma 15)pnpm audit→ 0 vulnerabilitiesAfter merge
v0.3.1on mainnpm publishcore, react, vue (figma skipped — Figma plugin, not npm)@formhaus/[email protected]