nf3 0.3.2 → 0.3.3

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
@@ -97,7 +97,7 @@ nf3 exports a list of known packages that include native code and require platfo
97
97
  These packages cannot be bundled and should be traced as external dependencies most of the time and often need tracing.
98
98
 
99
99
  ```js
100
- import { nodeNativePackages } from "nf3";
100
+ import { nodeNativePackages } from "nf3/db";
101
101
  ```
102
102
 
103
103
  ## Development
package/dist/db.d.mts ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/db.d.ts
2
+ /**
3
+ * Known packages that include native code and require platform-specific builds.
4
+ *
5
+ * These packages cannot be bundled and should be traced as external dependencies most of the time.
6
+ */
7
+ declare const NodeNativePackages: readonly string[];
8
+ //#endregion
9
+ export { NodeNativePackages };
package/dist/db.mjs ADDED
@@ -0,0 +1,42 @@
1
+ //#region src/db.ts
2
+ /**
3
+ * Known packages that include native code and require platform-specific builds.
4
+ *
5
+ * These packages cannot be bundled and should be traced as external dependencies most of the time.
6
+ */
7
+ const NodeNativePackages = Object.freeze([
8
+ "canvas",
9
+ "sharp",
10
+ "gl",
11
+ "bcrypt",
12
+ "kerberos",
13
+ "scrypt",
14
+ "blake-hash",
15
+ "sodium-native",
16
+ "better-sqlite3",
17
+ "leveldown",
18
+ "lmdb",
19
+ "sqlite3",
20
+ "lz4",
21
+ "deasync",
22
+ "node-gyp",
23
+ "node-sass",
24
+ "@parcel/watcher",
25
+ "@parcel/source-map",
26
+ "@mapbox/node-pre-gyp",
27
+ "edge-js",
28
+ "fsevents",
29
+ "node-pty",
30
+ "usb",
31
+ "ffi-napi",
32
+ "ref-napi",
33
+ "ref-struct-napi",
34
+ "ref-union-napi",
35
+ "grpc",
36
+ "bufferutil",
37
+ "utf-8-validate",
38
+ "keytar"
39
+ ]);
40
+
41
+ //#endregion
42
+ export { NodeNativePackages };
package/dist/index.d.mts CHANGED
@@ -1,15 +1,8 @@
1
+ import { NodeNativePackages } from "./db.mjs";
1
2
  import { n as ExternalsTraceOptions } from "./_chunks/types.mjs";
2
3
  import { PackageJson } from "pkg-types";
3
4
 
4
5
  //#region src/trace.d.ts
5
6
  declare function traceNodeModules(input: string[], opts: ExternalsTraceOptions): Promise<void>;
6
7
  //#endregion
7
- //#region src/db.d.ts
8
- /**
9
- * Known packages that include native code and require platform-specific builds.
10
- *
11
- * These packages cannot be bundled and should be traced as external dependencies most of the time.
12
- */
13
- declare const NodeNativePackages: readonly string[];
14
- //#endregion
15
8
  export { type ExternalsTraceOptions, NodeNativePackages, traceNodeModules };
package/dist/index.mjs CHANGED
@@ -1,44 +1,4 @@
1
1
  import { r as traceNodeModules } from "./_chunks/trace.mjs";
2
+ import { NodeNativePackages } from "./db.mjs";
2
3
 
3
- //#region src/db.ts
4
- /**
5
- * Known packages that include native code and require platform-specific builds.
6
- *
7
- * These packages cannot be bundled and should be traced as external dependencies most of the time.
8
- */
9
- const NodeNativePackages = Object.freeze([
10
- "canvas",
11
- "sharp",
12
- "gl",
13
- "bcrypt",
14
- "kerberos",
15
- "scrypt",
16
- "blake-hash",
17
- "sodium-native",
18
- "better-sqlite3",
19
- "leveldown",
20
- "lmdb",
21
- "sqlite3",
22
- "lz4",
23
- "deasync",
24
- "node-gyp",
25
- "node-sass",
26
- "@parcel/watcher",
27
- "@parcel/source-map",
28
- "@mapbox/node-pre-gyp",
29
- "edge-js",
30
- "fsevents",
31
- "node-pty",
32
- "usb",
33
- "ffi-napi",
34
- "ref-napi",
35
- "ref-struct-napi",
36
- "ref-union-napi",
37
- "grpc",
38
- "bufferutil",
39
- "utf-8-validate",
40
- "keytar"
41
- ]);
42
-
43
- //#endregion
44
4
  export { NodeNativePackages, traceNodeModules };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nf3",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "",
5
5
  "repository": "unjs/nf3",
6
6
  "license": "MIT",
@@ -8,6 +8,7 @@
8
8
  "type": "module",
9
9
  "exports": {
10
10
  ".": "./dist/index.mjs",
11
+ "./db": "./dist/db.mjs",
11
12
  "./plugin": "./dist/plugin.mjs"
12
13
  },
13
14
  "types": "./dist/index.d.mts",