Skip to content

Releases: cabify/package-build-javascript

v0.2.0

Choose a tag to compare

@carlostxm carlostxm released this 18 May 08:40

What's Changed

Read more

v0.2.0-beta.2

v0.2.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@carlostxm carlostxm released this 14 May 14:23

Test npm trusted publishing (OIDC) with provenance. Added missing repository field.

v0.2.0-beta.1

v0.2.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@carlostxm carlostxm released this 14 May 11:33

Test npm trusted publishing (OIDC) with provenance.

v0.2.0-beta.0

v0.2.0-beta.0 Pre-release
Pre-release

Choose a tag to compare

@carlostxm carlostxm released this 14 May 11:22
d9d8622

Test npm trusted publishing (OIDC) with provenance.

v0.2.1-beta.0

v0.2.1-beta.0 Pre-release
Pre-release

Choose a tag to compare

@carlostxm carlostxm released this 15 Dec 10:28

Release Notes - v0.2.1-beta.0

🚀 New Features

Tree Shaking Support (--preserve-modules)

New CLI flag that enables Rollup's preserveModules mode, generating individual files instead of a single monolithic bundle.

package-build -m
package-build --preserve-modules

Benefits:

  • Enables effective tree-shaking for consumers
  • Reduces bundle size significantly for libraries with many exports (e.g., icon libraries)
  • Preserves source directory structure in output

Output structure:

dist/          # CJS modules
es2015/        # ESM modules

📦 Recommended Configuration

For tree-shakable libraries, add to your package.json:

{
  "sideEffects": false,
  "exports": {
    ".": {
      "import": "./es2015/index.js",
      "require": "./dist/index.js"
    }
  }
}

v0.1.2-beta.1

v0.1.2-beta.1 Pre-release
Pre-release

Choose a tag to compare

@alexgallardo alexgallardo released this 04 Dec 12:02
1d04dae
0.1.2-beta.1

0.1.2-beta.0

0.1.2-beta.0 Pre-release
Pre-release

Choose a tag to compare

@alejandrofdiaz alejandrofdiaz released this 27 Mar 09:58

Changed

  • Use typescript 5.

0.1.1

Choose a tag to compare

@alexgallardo alexgallardo released this 06 Feb 12:38
07208ab

Fixed

  • Rollup regression.

0.1.0

Choose a tag to compare

@alejandrofdiaz alejandrofdiaz released this 27 Oct 07:11

Added

  • Allow defining typescript project with -p parameter to define a different tsconfig.ts file. p.eg: package-build -p tsconfig.build.json. This is useful to have a tsconfig.json in the root to allow IDE and library implementation to get a project file including files even if they won't be included in the NPM package (.spec, .test, .stories). Otherwise, a project including these files will transform every file defined, even those not desired in the final bundle, not only forcing to exclude them explicitly but increasing compilation times and errors. By default tsconfig.json will be used as it usually does.

0.0.3-beta.2

0.0.3-beta.2 Pre-release
Pre-release

Choose a tag to compare

@alejandrofdiaz alejandrofdiaz released this 27 Oct 06:52
v0.0.3-beta.2

0.0.3-beta.2