@rspack/binding 0.0.24 → 0.0.25
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 +1 -1
- package/binding.d.ts +20 -11
- package/package.json +22 -13
package/README.md
CHANGED
package/binding.d.ts
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
/* auto-generated by NAPI-RS */
|
|
5
5
|
|
|
6
|
+
export interface ThreadsafeNodeFS {
|
|
7
|
+
writeFile: (...args: any[]) => any
|
|
8
|
+
mkdir: (...args: any[]) => any
|
|
9
|
+
mkdirp: (...args: any[]) => any
|
|
10
|
+
}
|
|
11
|
+
export interface NodeFS {
|
|
12
|
+
writeFile: (...args: any[]) => any
|
|
13
|
+
mkdir: (...args: any[]) => any
|
|
14
|
+
mkdirp: (...args: any[]) => any
|
|
15
|
+
}
|
|
6
16
|
export interface RawPattern {
|
|
7
17
|
from: string
|
|
8
18
|
to?: string
|
|
@@ -259,11 +269,18 @@ export interface RawLibraryName {
|
|
|
259
269
|
commonjs?: string
|
|
260
270
|
root?: Array<string>
|
|
261
271
|
}
|
|
272
|
+
export interface RawLibraryAuxiliaryComment {
|
|
273
|
+
root?: string
|
|
274
|
+
commonjs?: string
|
|
275
|
+
commonjs2?: string
|
|
276
|
+
amd?: string
|
|
277
|
+
}
|
|
262
278
|
export interface RawLibraryOptions {
|
|
263
279
|
name?: RawLibraryName
|
|
264
280
|
export?: Array<string>
|
|
265
281
|
libraryType: string
|
|
266
282
|
umdNamedDefine?: boolean
|
|
283
|
+
auxiliaryComment?: RawLibraryAuxiliaryComment
|
|
267
284
|
}
|
|
268
285
|
export interface RawOutputOptions {
|
|
269
286
|
path: string
|
|
@@ -277,6 +294,8 @@ export interface RawOutputOptions {
|
|
|
277
294
|
library?: RawLibraryOptions
|
|
278
295
|
strictModuleErrorHandling: boolean
|
|
279
296
|
enabledLibraryTypes?: Array<string>
|
|
297
|
+
globalObject: string
|
|
298
|
+
importFunctionName: string
|
|
280
299
|
}
|
|
281
300
|
export interface RawResolveOptions {
|
|
282
301
|
preferRelative?: boolean
|
|
@@ -332,7 +351,7 @@ export interface RawOptions {
|
|
|
332
351
|
module: RawModuleOptions
|
|
333
352
|
builtins: RawBuiltins
|
|
334
353
|
externals: Record<string, string>
|
|
335
|
-
externalsType:
|
|
354
|
+
externalsType: string
|
|
336
355
|
devtool: string
|
|
337
356
|
optimization: RawOptimizationOptions
|
|
338
357
|
stats: RawStatsOptions
|
|
@@ -342,16 +361,6 @@ export interface RawOptions {
|
|
|
342
361
|
experiments: RawExperiments
|
|
343
362
|
node: RawNodeOption
|
|
344
363
|
}
|
|
345
|
-
export interface ThreadsafeNodeFs {
|
|
346
|
-
writeFile: (...args: any[]) => any
|
|
347
|
-
mkdir: (...args: any[]) => any
|
|
348
|
-
mkdirp: (...args: any[]) => any
|
|
349
|
-
}
|
|
350
|
-
export interface NodeFs {
|
|
351
|
-
writeFile: (...args: any[]) => any
|
|
352
|
-
mkdir: (...args: any[]) => any
|
|
353
|
-
mkdirp: (...args: any[]) => any
|
|
354
|
-
}
|
|
355
364
|
export interface JsAssetInfoRelated {
|
|
356
365
|
sourceMap?: string
|
|
357
366
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -13,27 +13,36 @@
|
|
|
13
13
|
"binding.d.ts"
|
|
14
14
|
],
|
|
15
15
|
"homepage": "https://rspack.org",
|
|
16
|
-
"bugs": "https://github.com/
|
|
17
|
-
"repository": "
|
|
16
|
+
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
17
|
+
"repository": "web-infra-dev/rspack",
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@napi-rs/cli": "2.14.2",
|
|
20
20
|
"why-is-node-running": "2.2.1",
|
|
21
21
|
"npm-run-all": "4.1.5"
|
|
22
22
|
},
|
|
23
|
+
"napi": {
|
|
24
|
+
"name": "rspack"
|
|
25
|
+
},
|
|
23
26
|
"optionalDependencies": {
|
|
24
|
-
"@rspack/binding-darwin-arm64": "0.0.
|
|
25
|
-
"@rspack/binding-
|
|
26
|
-
"@rspack/binding-win32-
|
|
27
|
-
"@rspack/binding-linux-
|
|
27
|
+
"@rspack/binding-darwin-arm64": "0.0.25",
|
|
28
|
+
"@rspack/binding-linux-arm64-gnu": "0.0.25",
|
|
29
|
+
"@rspack/binding-win32-arm64-msvc": "0.0.25",
|
|
30
|
+
"@rspack/binding-linux-arm64-musl": "0.0.25",
|
|
31
|
+
"@rspack/binding-win32-ia32-msvc": "0.0.25",
|
|
32
|
+
"@rspack/binding-darwin-x64": "0.0.25",
|
|
33
|
+
"@rspack/binding-win32-x64-msvc": "0.0.25",
|
|
34
|
+
"@rspack/binding-linux-x64-gnu": "0.0.25",
|
|
35
|
+
"@rspack/binding-linux-x64-musl": "0.0.25"
|
|
28
36
|
},
|
|
29
37
|
"scripts": {
|
|
30
|
-
"build:debug": "
|
|
31
|
-
"build:debug:x64": "
|
|
38
|
+
"build:debug": "node scripts/build.js",
|
|
39
|
+
"build:debug:x64": "RUST_TARGET=x86_64-apple-darwin node scripts/build.js",
|
|
40
|
+
"build:debug:linux": "RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js",
|
|
32
41
|
"build:release:all": "run-p build:release build:release:x64 build:release:linux && pnpm move-binding",
|
|
33
|
-
"build:release": "
|
|
34
|
-
"build:release:x64": "
|
|
35
|
-
"build:release:linux": "
|
|
36
|
-
"build:release:win": "
|
|
42
|
+
"build:release": "node scripts/build.js --release",
|
|
43
|
+
"build:release:x64": "RUST_TARGET=x86_64-apple-darwin node scripts/build.js --release",
|
|
44
|
+
"build:release:linux": "RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release",
|
|
45
|
+
"build:release:win": "RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release",
|
|
37
46
|
"move-binding": "node scripts/move-binding"
|
|
38
47
|
}
|
|
39
48
|
}
|