quickbundle 2.4.0 → 2.5.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 CHANGED
@@ -10,13 +10,17 @@
10
10
 
11
11
  Quickbundle allows you to bundle a library in a **quick**, **fast** and **easy** way:
12
12
 
13
- - Fast build and watch mode powered by [Rollup module bundler](https://rollupjs.org/) and [SWC transpiler](https://swc.rs/).
13
+ - Fast build and watch mode powered by Rollup[^1] and SWC[^2].
14
14
  - Zero configuration: define the build artifacts in your `package.json`, and you're all set!
15
15
  - Support of `cjs` & `esm` module formats output.
16
16
  - Support of several loaders including JavaScript, TypeScript, JSX, JSON, and Images.
17
17
  - TypeScript's declaration file (`.d.ts`) bundling.
18
18
  - Automatic dependency inclusion (`peerDependencies` and `dependencies` are not bundled in the final output, `devDependencies` are unless they're not imported).
19
19
 
20
+ [^1]: A [module bundler](https://rollupjs.org/) optimized for better tree-shaking processing and seamless interoperability of CommonJS and ESM formats with minimal code footprint.
21
+
22
+ [^2]: A [TypeScript / JavaScript transpiler](https://swc.rs/) for quicker code processing including TypeScript transpilation, JavaScript transformation, and, minification.
23
+
20
24
  <br>
21
25
 
22
26
  ## 🚀 Quick Start
package/bin/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { createRequire } from "node:module";
4
+ import { join } from "node:path";
5
+
6
+ const pkg = createRequire(import.meta.url)("../package.json");
7
+
8
+ import(join("..", pkg.exports["."].default));
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickbundle",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "The zero-configuration transpiler and bundler for the web",
5
5
  "author": {
6
6
  "name": "Ayoub Adib",
@@ -26,16 +26,17 @@
26
26
  "microbundle"
27
27
  ],
28
28
  "bin": {
29
- "quickbundle": "dist/index.js"
29
+ "quickbundle": "bin/index.mjs"
30
30
  },
31
31
  "files": [
32
+ "bin",
32
33
  "dist"
33
34
  ],
34
35
  "type": "module",
35
36
  "exports": {
36
37
  ".": {
37
38
  "source": "./src/index.ts",
38
- "import": "./dist/index.js"
39
+ "default": "./dist/index.mjs"
39
40
  }
40
41
  },
41
42
  "peerDependencies": {
@@ -47,7 +48,7 @@
47
48
  }
48
49
  },
49
50
  "dependencies": {
50
- "@rollup/plugin-commonjs": "^28.0.0",
51
+ "@rollup/plugin-commonjs": "^28.0.1",
51
52
  "@rollup/plugin-json": "^6.1.0",
52
53
  "@rollup/plugin-node-resolve": "^15.3.0",
53
54
  "@rollup/plugin-url": "^8.0.2",
@@ -62,7 +63,7 @@
62
63
  "@types/node": "20.16.11"
63
64
  },
64
65
  "scripts": {
65
- "build": "rollup --config ./src/bundler/config.ts --configPlugin rollup-plugin-swc3 && chmod +x ./dist/index.js",
66
+ "build": "rollup --config ./src/bundler/config.ts --configPlugin rollup-plugin-swc3",
66
67
  "watch": "rollup --watch --config ./src/bundler/config.ts --configPlugin rollup-plugin-swc3"
67
68
  }
68
69
  }