preconstruct

🎁 Dev and build your code painlessly in monorepos

MIT License

Downloads
211.5K
Stars
1.2K
Committers
39

Bot releases are visible (Hide)

preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] 8 days ago

Patch Changes

  • #604 79b6d1c Thanks @emmatown! - Fix outputting .d.ts files with extension-less imports that are invalid when using the experimental flag typeModule with moduleResolution: "nodenext" and type: "module" in dev and build
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] 18 days ago

Patch Changes

  • #599 4b920e7 Thanks @VanTanev! - Remove unnecessary dependency on meow CLI parsing library, as @preconstruct/cli only takes a single positional argument denoting a preconstruct command.

  • #602 b62bd19 Thanks @emmatown! - Fix referencing a type from another package in the same preconstruct build that has a .d.ts file at the entrypoint

preconstruct - @preconstruct/[email protected] Latest Release

Published by github-actions[bot] 3 months ago

Patch Changes

  • #596 022bbc4 Thanks @emmatown! - Fix Error when using sourcemap for reporting an error: Can't resolve original location of error error caused by changes to @babel/helpers in newer versions of Babel
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • #592 c05b2a9 Thanks @emmatown! - Fix generating TypeScript declarations where imports to JSON files are emitted in the .d.ts files
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fa66c34 Thanks @emmatown! - Fix preconstruct dev with exports: { importConditionDefaultExport: "default" } with a .d.ts file
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #567 d4006c8 Thanks @Andarist! - Fixed .mjs proxies generation with ___experimentalFlags_WILL_CHANGE_IN_PATCH.importsConditions and exports.importConditionDefaultExport: 'default'
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #565 484c6a7 Thanks @Andarist! - package.json#exports have been added to limit what (and how) code might be imported from the package.
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #565 484c6a7 Thanks @Andarist! - package.json#exports have been added to limit what (and how) code might be imported from the package.

  • #566 9d4f0dc Thanks @emmatown! - Preconstruct no longer emits unnecessary .d.ts files that aren't referenced by an entrypoint

Patch Changes

  • 58df49f Thanks @emmatown! - Fix require hook skipping compiling files when just an entrypoint is loaded

  • #559 a58f021 Thanks @emmatown! - Extend import path normalisation in generated declaration files to manually written declaration files as well

preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #556 908c43e Thanks @Andarist! - Always emit relative paths used in generated TS declaration files with resolved extensions of their runtime equivalents. This currently requires one of the 2 experimental flags: importsConditions or onlyEmitUsedTypeScriptDeclarations

Patch Changes

  • #554 1147fee Thanks @Andarist! - Fix types like import('#foo').Foo<import('#bar').Bar> not replacing the import to #bar in generated declarations under the importsConditions experimental flag
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • e78203b Thanks @emmatown! - Fix .d.ts files under importsConditions experimental flag incorrectly pointing to the source files
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #546 c28b10a Thanks @emmatown! - importConditionDefaultExport is now re-enabled and works with "moduleResolution": "bundler"
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 5380890 Thanks @emmatown! - Disable specifying importConditionDefaultExport because it doesn't work correctly in "moduleResoltion": "bundler", @preconstruct/[email protected] is npm deprecated, importConditionDefaultExport will come back in the future.
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #543 93106e3 Thanks @Andarist! - Added a new exports.importConditionDefaultExport config option. It allows you to generate import exports condition (and corresponding files) to fix the export shape incompatibility between node and bundlers.

    With this option set to "default" this will always resolve to what has been written as a default export:

    // lib/src/index.js
    export default 42;
    export const named = "awesome";
    
    // app/consume.mjs
    import smth from "lib";
    smth; // 42, and not `{ default: 42, named: 'awesome' }`
    
  • 233ee25 Thanks @emmatown! - Top-level 'use server' directives are now also preserved like 'use client' directives.

Patch Changes

  • 4e72d99 Thanks @emmatown! - Fix 'use client' directives with comments preceding them not being detected
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #540 261140b Thanks @emmatown! - Self-referencing a package with its name is now allowed. They are emitted as written (not resolved to a particular bundle ahead of time).

Patch Changes

preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 1f83965 Thanks @emmatown! - Fix preconstruct dev throwing a syntax error when an entrypoint has a .d.ts file with a default export.
preconstruct - @preconstruct/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes