quickbundle 0.0.0-next-919d4ea → 0.0.0-next-d7cf4c6
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 +2 -2
- package/dist/index.mjs +7 -2
- package/package.json +31 -31
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ Quickbundle allows you to bundle a library in a **quick**, **fast** and **easy**
|
|
|
17
17
|
- Support of several loaders including JavaScript, TypeScript, JSX, JSON, and Images.
|
|
18
18
|
- TypeScript's declaration file (`.d.ts`) bundling.
|
|
19
19
|
- Automatic dependency inclusion:
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
- For the build and watch mode, `peerDependencies` and `dependencies` are not bundled in the final output, `devDependencies` are unless they're not imported.
|
|
21
|
+
- For the compile mode, all dependencies are included to make the code standalone.
|
|
22
22
|
|
|
23
23
|
[^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.
|
|
24
24
|
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { finished } from 'node:stream/promises';
|
|
|
3
3
|
import { Readable } from 'node:stream';
|
|
4
4
|
import process from 'node:process';
|
|
5
5
|
import { resolve, dirname, join, basename } from 'node:path';
|
|
6
|
-
import {
|
|
6
|
+
import { copyFile as copyFile$1, rm, writeFile as writeFile$1, rename, mkdir, readFile as readFile$1 } from 'node:fs/promises';
|
|
7
7
|
import { createWriteStream } from 'node:fs';
|
|
8
8
|
import decompress from 'decompress';
|
|
9
9
|
import { watch as watch$1, rollup } from 'rollup';
|
|
@@ -19,7 +19,7 @@ import os from 'node:os';
|
|
|
19
19
|
import { gzipSize } from 'gzip-size';
|
|
20
20
|
|
|
21
21
|
var name = "quickbundle";
|
|
22
|
-
var version = "0.0.0-next-
|
|
22
|
+
var version = "0.0.0-next-d7cf4c6";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Resolve a relative path from the Quickbundle node modules directory.
|
|
@@ -514,6 +514,11 @@ const compile = async ({ bin, input, osType })=>{
|
|
|
514
514
|
if (osType === "macos") {
|
|
515
515
|
await helpers.exec(`codesign --remove-signature ${executableFileName}`);
|
|
516
516
|
}
|
|
517
|
+
console.log({
|
|
518
|
+
blobFileName,
|
|
519
|
+
executableFileName,
|
|
520
|
+
seaConfigFileName
|
|
521
|
+
});
|
|
517
522
|
await helpers.exec(`npx postject ${executableFileName} NODE_SEA_BLOB ${blobFileName} --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 ${osType === "macos" ? "--macho-segment-name NODE_SEA" : ""}`);
|
|
518
523
|
if (osType === "macos") {
|
|
519
524
|
await helpers.exec(`codesign --sign - ${executableFileName}`);
|
package/package.json
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickbundle",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-d7cf4c6",
|
|
4
4
|
"description": "The zero-configuration transpiler and bundler for the web",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Ayoub Adib",
|
|
7
|
-
"email": "adbayb@gmail.com",
|
|
8
|
-
"url": "https://twitter.com/adbayb"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git@github.com:adbayb/quickbundle.git",
|
|
13
|
-
"directory": "quickbundle"
|
|
14
|
-
},
|
|
15
|
-
"license": "MIT",
|
|
16
5
|
"keywords": [
|
|
17
6
|
"library",
|
|
18
7
|
"bundle",
|
|
@@ -25,13 +14,17 @@
|
|
|
25
14
|
"swc",
|
|
26
15
|
"microbundle"
|
|
27
16
|
],
|
|
28
|
-
"
|
|
29
|
-
"
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git@github.com:adbayb/quickbundle.git",
|
|
20
|
+
"directory": "quickbundle"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "Ayoub Adib",
|
|
25
|
+
"email": "adbayb@gmail.com",
|
|
26
|
+
"url": "https://twitter.com/adbayb"
|
|
30
27
|
},
|
|
31
|
-
"files": [
|
|
32
|
-
"bin",
|
|
33
|
-
"dist"
|
|
34
|
-
],
|
|
35
28
|
"type": "module",
|
|
36
29
|
"exports": {
|
|
37
30
|
".": {
|
|
@@ -39,31 +32,38 @@
|
|
|
39
32
|
"default": "./dist/index.mjs"
|
|
40
33
|
}
|
|
41
34
|
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
},
|
|
45
|
-
"peerDependenciesMeta": {
|
|
46
|
-
"typescript": {
|
|
47
|
-
"optional": true
|
|
48
|
-
}
|
|
35
|
+
"bin": {
|
|
36
|
+
"quickbundle": "bin/index.mjs"
|
|
49
37
|
},
|
|
38
|
+
"files": [
|
|
39
|
+
"bin",
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
50
42
|
"dependencies": {
|
|
51
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
43
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
52
44
|
"@rollup/plugin-json": "^6.1.0",
|
|
53
|
-
"@rollup/plugin-node-resolve": "^
|
|
45
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
54
46
|
"@rollup/plugin-url": "^8.0.2",
|
|
55
|
-
"@swc/core": "^1.9
|
|
47
|
+
"@swc/core": "^1.10.9",
|
|
56
48
|
"decompress": "^4.2.1",
|
|
57
49
|
"gzip-size": "^7.0.0",
|
|
58
|
-
"rollup": "^4.
|
|
50
|
+
"rollup": "^4.32.0",
|
|
59
51
|
"rollup-plugin-dts": "^6.1.1",
|
|
60
|
-
"rollup-plugin-node-externals": "^
|
|
52
|
+
"rollup-plugin-node-externals": "^8.0.0",
|
|
61
53
|
"rollup-plugin-swc3": "^0.12.1",
|
|
62
54
|
"termost": "^1.4.0"
|
|
63
55
|
},
|
|
64
56
|
"devDependencies": {
|
|
65
57
|
"@types/decompress": "4.2.7",
|
|
66
|
-
"@types/node": "22.
|
|
58
|
+
"@types/node": "22.10.10"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"typescript": "^4.7.0 || ^5.0.0"
|
|
62
|
+
},
|
|
63
|
+
"peerDependenciesMeta": {
|
|
64
|
+
"typescript": {
|
|
65
|
+
"optional": true
|
|
66
|
+
}
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "rollup --config ./bundler.config.ts --configPlugin rollup-plugin-swc3",
|