@rspack/binding 1.2.2 → 1.2.4

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.
Files changed (2) hide show
  1. package/binding.d.ts +230 -20
  2. package/package.json +15 -29
package/binding.d.ts CHANGED
@@ -67,6 +67,7 @@ export declare class JsChunk {
67
67
  getAllInitialChunks(): JsChunk[]
68
68
  getAllReferencedChunks(): JsChunk[]
69
69
  groups(): JsChunkGroup[]
70
+ getEntryOptions(): EntryOptionsDTO | undefined
70
71
  }
71
72
 
72
73
  export declare class JsChunkGraph {
@@ -77,6 +78,8 @@ export declare class JsChunkGraph {
77
78
  getChunkModulesIterableBySourceType(chunk: JsChunk, sourceType: string): JsModule[]
78
79
  getModuleChunks(module: JsModule): JsChunk[]
79
80
  getModuleId(jsModule: JsModule): string | null
81
+ getModuleHash(module: JsModule, runtime: string | string[] | undefined): string | null
82
+ getBlockChunkGroup(jsBlock: JsDependenciesBlock): JsChunkGroup | null
80
83
  }
81
84
 
82
85
  export declare class JsChunkGroup {
@@ -84,6 +87,7 @@ export declare class JsChunkGroup {
84
87
  get index(): number | undefined
85
88
  get name(): string | undefined
86
89
  get origins(): Array<JsChunkGroupOrigin>
90
+ get childrenIterable(): JsChunkGroup[]
87
91
  isInitial(): boolean
88
92
  getParents(): JsChunkGroup[]
89
93
  getRuntimeChunk(): JsChunk
@@ -102,18 +106,17 @@ export declare class JsCompilation {
102
106
  getOptimizationBailout(): Array<JsStatsOptimizationBailout>
103
107
  getChunks(): JsChunk[]
104
108
  getNamedChunkKeys(): Array<string>
105
- getNamedChunk(name: string): JsChunk
109
+ getNamedChunk(name: string): JsChunk | null
106
110
  getNamedChunkGroupKeys(): Array<string>
107
111
  getNamedChunkGroup(name: string): JsChunkGroup
108
112
  setAssetSource(name: string, source: JsCompatSource): void
109
113
  deleteAssetSource(name: string): void
110
114
  getAssetFilenames(): Array<string>
111
115
  hasAsset(name: string): boolean
112
- emitAssetFromLoader(filename: string, source: JsCompatSource, assetInfo: JsAssetInfo, module: string): void
113
116
  emitAsset(filename: string, source: JsCompatSource, assetInfo: JsAssetInfo): void
114
117
  deleteAsset(filename: string): void
115
118
  renameAsset(filename: string, newName: string): void
116
- get entrypoints(): Record<string, JsChunkGroup>
119
+ get entrypoints(): JsChunkGroup[]
117
120
  get chunkGroups(): JsChunkGroup[]
118
121
  get hash(): string | null
119
122
  dependencies(): JsDependencies
@@ -146,6 +149,15 @@ export declare class JsCompilation {
146
149
  addInclude(args: [string, RawDependency, JsEntryOptions | undefined][], callback: (errMsg: Error | null, results: [string | null, JsModule][]) => void): void
147
150
  }
148
151
 
152
+ export declare class JsCompiler {
153
+ constructor(compilerPath: string, options: RawOptions, builtinPlugins: Array<BuiltinPlugin>, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS | undefined | null, resolverFactoryReference: JsResolverFactory)
154
+ setNonSkippableRegisters(kinds: Array<RegisterJsTapKind>): void
155
+ /** Build with the given option passed to the constructor */
156
+ build(callback: (err: null | Error) => void): void
157
+ /** Rebuild with the given option passed to the constructor */
158
+ rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void
159
+ }
160
+
149
161
  export declare class JsContextModuleFactoryAfterResolveData {
150
162
  get resource(): string
151
163
  set resource(resource: string)
@@ -197,6 +209,7 @@ export declare class JsDependency {
197
209
  get request(): string | undefined
198
210
  get critical(): boolean
199
211
  set critical(val: boolean)
212
+ get ids(): Array<string> | undefined
200
213
  }
201
214
 
202
215
  export declare class JsEntries {
@@ -235,6 +248,10 @@ export declare class JsModule {
235
248
  size(ty?: string | undefined | null): number
236
249
  get modules(): JsModule[] | undefined
237
250
  get useSourceMap(): boolean
251
+ libIdent(options: JsLibIdentOptions): string | null
252
+ get resourceResolveData(): JsResourceData | undefined
253
+ get matchResource(): string | undefined
254
+ emitFile(filename: string, source: JsCompatSource, assetInfo: JsAssetInfo): void
238
255
  }
239
256
 
240
257
  export declare class JsModuleGraph {
@@ -246,11 +263,16 @@ export declare class JsModuleGraph {
246
263
  getConnection(dependency: JsDependency): JsModuleGraphConnection | null
247
264
  getOutgoingConnections(module: JsModule): JsModuleGraphConnection[]
248
265
  getIncomingConnections(module: JsModule): JsModuleGraphConnection[]
266
+ getParentModule(jsDependency: JsDependency): JsModule | null
267
+ getParentBlockIndex(jsDependency: JsDependency): number
268
+ isAsync(module: JsModule): boolean
249
269
  }
250
270
 
251
271
  export declare class JsModuleGraphConnection {
252
272
  get dependency(): JsDependency
253
273
  get module(): JsModule | null
274
+ get resolvedModule(): JsModule | null
275
+ get originModule(): JsModule | null
254
276
  }
255
277
 
256
278
  export declare class JsResolver {
@@ -275,15 +297,6 @@ export declare class RawExternalItemFnCtx {
275
297
  getResolver(): JsResolver
276
298
  }
277
299
 
278
- export declare class Rspack {
279
- constructor(compilerPath: string, options: RawOptions, builtinPlugins: Array<BuiltinPlugin>, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS | undefined | null, resolverFactoryReference: JsResolverFactory)
280
- setNonSkippableRegisters(kinds: Array<RegisterJsTapKind>): void
281
- /** Build with the given option passed to the constructor */
282
- build(callback: (err: null | Error) => void): void
283
- /** Rebuild with the given option passed to the constructor */
284
- rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void
285
- }
286
-
287
300
  export interface BuiltinPlugin {
288
301
  name: BuiltinPluginName
289
302
  options: unknown
@@ -366,8 +379,10 @@ export declare enum BuiltinPluginName {
366
379
  LightningCssMinimizerRspackPlugin = 'LightningCssMinimizerRspackPlugin',
367
380
  BundlerInfoRspackPlugin = 'BundlerInfoRspackPlugin',
368
381
  CssExtractRspackPlugin = 'CssExtractRspackPlugin',
382
+ RsdoctorPlugin = 'RsdoctorPlugin',
369
383
  JsLoaderRspackPlugin = 'JsLoaderRspackPlugin',
370
- LazyCompilationPlugin = 'LazyCompilationPlugin'
384
+ LazyCompilationPlugin = 'LazyCompilationPlugin',
385
+ SubresourceIntegrityPlugin = 'SubresourceIntegrityPlugin'
371
386
  }
372
387
 
373
388
  export declare function cleanupGlobalTrace(): void
@@ -399,6 +414,7 @@ export interface JsAdditionalTreeRuntimeRequirementsResult {
399
414
 
400
415
  export interface JsAfterEmitData {
401
416
  outputName: string
417
+ compilationId: number
402
418
  }
403
419
 
404
420
  export interface JsAfterResolveData {
@@ -416,6 +432,7 @@ export interface JsAfterTemplateExecutionData {
416
432
  headTags: Array<JsHtmlPluginTag>
417
433
  bodyTags: Array<JsHtmlPluginTag>
418
434
  outputName: string
435
+ compilationId: number
419
436
  }
420
437
 
421
438
  export interface JsAlterAssetTagGroupsData {
@@ -423,12 +440,14 @@ export interface JsAlterAssetTagGroupsData {
423
440
  bodyTags: Array<JsHtmlPluginTag>
424
441
  publicPath: string
425
442
  outputName: string
443
+ compilationId: number
426
444
  }
427
445
 
428
446
  export interface JsAlterAssetTagsData {
429
447
  assetTags: JsHtmlPluginAssetTags
430
448
  outputName: string
431
449
  publicPath: string
450
+ compilationId: number
432
451
  }
433
452
 
434
453
  export interface JsAsset {
@@ -496,11 +515,13 @@ export interface JsBannerContentFnCtx {
496
515
  export interface JsBeforeAssetTagGenerationData {
497
516
  assets: JsHtmlPluginAssets
498
517
  outputName: string
518
+ compilationId: number
499
519
  }
500
520
 
501
521
  export interface JsBeforeEmitData {
502
522
  html: string
503
523
  outputName: string
524
+ compilationId: number
504
525
  }
505
526
 
506
527
  export interface JsBeforeResolveArgs {
@@ -515,8 +536,6 @@ export interface JsBuildMeta {
515
536
  esm: boolean
516
537
  exportsType: 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic'
517
538
  defaultObject: 'false' | 'redirect' | JsBuildMetaDefaultObjectRedirectWarn
518
- moduleArgument: 'module' | 'webpackModule'
519
- exportsArgument: 'exports' | 'webpackExports'
520
539
  sideEffectFree?: boolean
521
540
  exportsFinalName?: Array<[string, string]> | undefined
522
541
  }
@@ -659,7 +678,6 @@ export interface JsExecuteModuleResult {
659
678
  buildDependencies: Array<string>
660
679
  missingDependencies: Array<string>
661
680
  cacheable: boolean
662
- assets: Array<string>
663
681
  id: number
664
682
  error?: string
665
683
  }
@@ -679,6 +697,8 @@ export interface JsHtmlPluginAssets {
679
697
  js: Array<string>
680
698
  css: Array<string>
681
699
  favicon?: string
700
+ jsIntegrity?: Array<string | undefined | null>
701
+ cssIntegrity?: Array<string | undefined | null>
682
702
  }
683
703
 
684
704
  export interface JsHtmlPluginAssetTags {
@@ -695,6 +715,10 @@ export interface JsHtmlPluginTag {
695
715
  asset?: string
696
716
  }
697
717
 
718
+ export interface JsLibIdentOptions {
719
+ context: string
720
+ }
721
+
698
722
  export interface JsLibraryAuxiliaryComment {
699
723
  root?: string
700
724
  commonjs?: string
@@ -828,6 +852,157 @@ export interface JsResourceData {
828
852
  fragment?: string
829
853
  }
830
854
 
855
+ export interface JsRsdoctorAsset {
856
+ ukey: number
857
+ path: string
858
+ chunks: Array<number>
859
+ size: number
860
+ }
861
+
862
+ export interface JsRsdoctorAssetPatch {
863
+ assets: Array<JsRsdoctorAsset>
864
+ chunkAssets: Array<JsRsdoctorChunkAssets>
865
+ entrypointAssets: Array<JsRsdoctorEntrypointAssets>
866
+ }
867
+
868
+ export interface JsRsdoctorChunk {
869
+ ukey: number
870
+ name: string
871
+ initial: boolean
872
+ entry: boolean
873
+ dependencies: Array<number>
874
+ imported: Array<number>
875
+ }
876
+
877
+ export interface JsRsdoctorChunkAssets {
878
+ chunk: number
879
+ assets: Array<number>
880
+ }
881
+
882
+ export interface JsRsdoctorChunkGraph {
883
+ chunks: Array<JsRsdoctorChunk>
884
+ entrypoints: Array<JsRsdoctorEntrypoint>
885
+ }
886
+
887
+ export interface JsRsdoctorChunkModules {
888
+ chunk: number
889
+ modules: Array<number>
890
+ }
891
+
892
+ export interface JsRsdoctorDependency {
893
+ ukey: number
894
+ kind: string
895
+ request: string
896
+ module: number
897
+ dependency: number
898
+ }
899
+
900
+ export interface JsRsdoctorEntrypoint {
901
+ ukey: number
902
+ name: string
903
+ chunks: Array<number>
904
+ }
905
+
906
+ export interface JsRsdoctorEntrypointAssets {
907
+ entrypoint: number
908
+ assets: Array<number>
909
+ }
910
+
911
+ export interface JsRsdoctorExportInfo {
912
+ ukey: number
913
+ name: string
914
+ from?: number
915
+ variable?: number
916
+ identifier?: JsRsdoctorStatement
917
+ sideEffects: Array<number>
918
+ }
919
+
920
+ export interface JsRsdoctorModule {
921
+ ukey: number
922
+ identifier: string
923
+ path: string
924
+ isEntry: boolean
925
+ kind: 'normal' | 'concatenated'
926
+ layer?: string
927
+ dependencies: Array<number>
928
+ imported: Array<number>
929
+ modules: Array<number>
930
+ belongModules: Array<number>
931
+ chunks: Array<number>
932
+ }
933
+
934
+ export interface JsRsdoctorModuleGraph {
935
+ modules: Array<JsRsdoctorModule>
936
+ dependencies: Array<JsRsdoctorDependency>
937
+ chunkModules: Array<JsRsdoctorChunkModules>
938
+ }
939
+
940
+ export interface JsRsdoctorModuleGraphModule {
941
+ ukey: number
942
+ module: number
943
+ exports: Array<number>
944
+ sideEffects: Array<number>
945
+ variables: Array<number>
946
+ dynamic: boolean
947
+ }
948
+
949
+ export interface JsRsdoctorModuleId {
950
+ module: number
951
+ renderId: string
952
+ }
953
+
954
+ export interface JsRsdoctorModuleIdsPatch {
955
+ moduleIds: Array<JsRsdoctorModuleId>
956
+ }
957
+
958
+ export interface JsRsdoctorModuleOriginalSource {
959
+ module: number
960
+ source: string
961
+ size: number
962
+ }
963
+
964
+ export interface JsRsdoctorModuleSourcesPatch {
965
+ moduleOriginalSources: Array<JsRsdoctorModuleOriginalSource>
966
+ }
967
+
968
+ export interface JsRsdoctorSideEffect {
969
+ ukey: number
970
+ name: string
971
+ originName?: string
972
+ module: number
973
+ identifier: JsRsdoctorStatement
974
+ isNameSpace: boolean
975
+ fromDependency?: number
976
+ exports: Array<number>
977
+ variable?: number
978
+ }
979
+
980
+ export interface JsRsdoctorSourcePosition {
981
+ line?: number
982
+ column?: number
983
+ index?: number
984
+ }
985
+
986
+ export interface JsRsdoctorSourceRange {
987
+ start: JsRsdoctorSourcePosition
988
+ end?: JsRsdoctorSourcePosition
989
+ }
990
+
991
+ export interface JsRsdoctorStatement {
992
+ module: number
993
+ sourcePosition?: JsRsdoctorSourceRange
994
+ transformedPosition: JsRsdoctorSourceRange
995
+ }
996
+
997
+ export interface JsRsdoctorVariable {
998
+ ukey: number
999
+ name: string
1000
+ module: number
1001
+ usedInfo: string
1002
+ identififer: JsRsdoctorStatement
1003
+ exported?: number
1004
+ }
1005
+
831
1006
  export interface JsRspackDiagnostic {
832
1007
  severity: JsRspackSeverity
833
1008
  error: JsRspackError
@@ -1221,7 +1396,7 @@ export interface RawCacheGroupOptions {
1221
1396
  /** What kind of chunks should be selected. */
1222
1397
  chunks?: RegExp | 'async' | 'initial' | 'all'
1223
1398
  type?: RegExp | string
1224
- layer?: RegExp | string
1399
+ layer?: RegExp | string | ((layer?: string) => boolean)
1225
1400
  automaticNameDelimiter?: string
1226
1401
  minChunks?: number
1227
1402
  minSize?: number | RawSplitChunkSizes
@@ -1410,6 +1585,7 @@ export interface RawEnvironment {
1410
1585
  module?: boolean
1411
1586
  optionalChaining?: boolean
1412
1587
  templateLiteral?: boolean
1588
+ dynamicImportInWorker?: boolean
1413
1589
  }
1414
1590
 
1415
1591
  export interface RawEvalDevToolModulePluginOptions {
@@ -1493,8 +1669,10 @@ export interface RawFlagAllModulesAsUsedPluginOptions {
1493
1669
  export interface RawFuncUseCtx {
1494
1670
  resource?: string
1495
1671
  realResource?: string
1496
- resourceQuery?: string
1497
- issuer?: string
1672
+ resourceQuery: string
1673
+ resourceFragment: string
1674
+ issuer: string
1675
+ issuerLayer: string
1498
1676
  }
1499
1677
 
1500
1678
  export interface RawGeneratorOptions {
@@ -1579,6 +1757,15 @@ export interface RawInfo {
1579
1757
  version?: string
1580
1758
  }
1581
1759
 
1760
+ export interface RawIntegrityData {
1761
+ integerities: Array<RawIntegrityItem>
1762
+ }
1763
+
1764
+ export interface RawIntegrityItem {
1765
+ asset: string
1766
+ integrity: string
1767
+ }
1768
+
1582
1769
  export interface RawJavascriptParserOptions {
1583
1770
  dynamicImportMode?: string
1584
1771
  dynamicImportPreload?: string
@@ -1788,6 +1975,7 @@ export interface RawOptimizationOptions {
1788
1975
  usedExports: boolean | string
1789
1976
  providedExports: boolean
1790
1977
  innerGraph: boolean
1978
+ realContentHash: boolean
1791
1979
  mangleExports: boolean | string
1792
1980
  concatenateModules: boolean
1793
1981
  avoidEntryIife: boolean
@@ -1962,6 +2150,11 @@ export interface RawResolveTsconfigOptions {
1962
2150
  references?: Array<string>
1963
2151
  }
1964
2152
 
2153
+ export interface RawRsdoctorPluginOptions {
2154
+ moduleGraphFeatures: boolean | Array<'graph' | 'ids' | 'sources'>
2155
+ chunkGraphFeatures: boolean | Array<'graph' | 'assets'>
2156
+ }
2157
+
1965
2158
  export interface RawRspackFuture {
1966
2159
 
1967
2160
  }
@@ -2029,6 +2222,7 @@ export interface RawSplitChunkSizes {
2029
2222
  export interface RawSplitChunksOptions {
2030
2223
  fallbackCacheGroup?: RawFallbackCacheGroupOptions
2031
2224
  name?: string | false | Function
2225
+ filename?: JsFilename
2032
2226
  cacheGroups?: Array<RawCacheGroupOptions>
2033
2227
  /** What kind of chunks should be selected. */
2034
2228
  chunks?: RegExp | 'async' | 'initial' | 'all' | Function
@@ -2056,6 +2250,12 @@ export interface RawStorageOptions {
2056
2250
  directory: string
2057
2251
  }
2058
2252
 
2253
+ export interface RawSubresourceIntegrityPluginOptions {
2254
+ integrityCallback?: (data: RawIntegrityData) => void
2255
+ hashFuncNames: Array<string>
2256
+ htmlPlugin: "JavaScript" | "Native" | "Disabled"
2257
+ }
2258
+
2059
2259
  export interface RawSwcJsMinimizerOptions {
2060
2260
  compress: any
2061
2261
  mangle: any
@@ -2135,7 +2335,12 @@ export declare enum RegisterJsTapKind {
2135
2335
  HtmlPluginAfterEmit = 40,
2136
2336
  RuntimePluginCreateScript = 41,
2137
2337
  RuntimePluginLinkPreload = 42,
2138
- RuntimePluginLinkPrefetch = 43
2338
+ RuntimePluginLinkPrefetch = 43,
2339
+ RsdoctorPluginModuleGraph = 44,
2340
+ RsdoctorPluginChunkGraph = 45,
2341
+ RsdoctorPluginModuleIds = 46,
2342
+ RsdoctorPluginModuleSources = 47,
2343
+ RsdoctorPluginAssets = 48
2139
2344
  }
2140
2345
 
2141
2346
  export interface RegisterJsTaps {
@@ -2183,6 +2388,11 @@ export interface RegisterJsTaps {
2183
2388
  registerRuntimePluginCreateScriptTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCreateScriptData) => String); stage: number; }>
2184
2389
  registerRuntimePluginLinkPreloadTaps: (stages: Array<number>) => Array<{ function: ((arg: JsLinkPreloadData) => String); stage: number; }>
2185
2390
  registerRuntimePluginLinkPrefetchTaps: (stages: Array<number>) => Array<{ function: ((arg: JsLinkPrefetchData) => String); stage: number; }>
2391
+ registerRsdoctorPluginModuleGraphTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorModuleGraph) => Promise<boolean | undefined>); stage: number; }>
2392
+ registerRsdoctorPluginChunkGraphTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorChunkGraph) => Promise<boolean | undefined>); stage: number; }>
2393
+ registerRsdoctorPluginModuleIdsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorModuleIdsPatch) => Promise<boolean | undefined>); stage: number; }>
2394
+ registerRsdoctorPluginModuleSourcesTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorModuleSourcesPatch) => Promise<boolean | undefined>); stage: number; }>
2395
+ registerRsdoctorPluginAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorAssetPatch) => Promise<boolean | undefined>); stage: number; }>
2186
2396
  }
2187
2397
 
2188
2398
  export interface ThreadsafeNodeFS {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -18,41 +18,27 @@
18
18
  "repository": "web-infra-dev/rspack",
19
19
  "devDependencies": {
20
20
  "@napi-rs/cli": "3.0.0-alpha.65",
21
- "typescript": "^5.7.2"
21
+ "typescript": "^5.7.3"
22
22
  },
23
23
  "napi": {
24
24
  "binaryName": "rspack"
25
25
  },
26
26
  "optionalDependencies": {
27
- "@rspack/binding-darwin-arm64": "1.2.2",
28
- "@rspack/binding-win32-arm64-msvc": "1.2.2",
29
- "@rspack/binding-linux-arm64-musl": "1.2.2",
30
- "@rspack/binding-linux-arm64-gnu": "1.2.2",
31
- "@rspack/binding-darwin-x64": "1.2.2",
32
- "@rspack/binding-win32-ia32-msvc": "1.2.2",
33
- "@rspack/binding-win32-x64-msvc": "1.2.2",
34
- "@rspack/binding-linux-x64-musl": "1.2.2",
35
- "@rspack/binding-linux-x64-gnu": "1.2.2"
27
+ "@rspack/binding-darwin-arm64": "1.2.4",
28
+ "@rspack/binding-win32-arm64-msvc": "1.2.4",
29
+ "@rspack/binding-linux-arm64-gnu": "1.2.4",
30
+ "@rspack/binding-linux-arm64-musl": "1.2.4",
31
+ "@rspack/binding-win32-ia32-msvc": "1.2.4",
32
+ "@rspack/binding-darwin-x64": "1.2.4",
33
+ "@rspack/binding-linux-x64-gnu": "1.2.4",
34
+ "@rspack/binding-win32-x64-msvc": "1.2.4",
35
+ "@rspack/binding-linux-x64-musl": "1.2.4"
36
36
  },
37
37
  "scripts": {
38
- "build:debug": "node scripts/build.js",
39
- "watch:debug": "node scripts/build.js --watch",
40
- "build:debug:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js",
41
- "build:debug:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js",
42
- "build:release": "node scripts/build.js --release",
43
- "watch:release": "node scripts/build.js --release --watch",
44
- "build:release:arm64": "cross-env RUST_TARGET=aarch64-apple-darwin node scripts/build.js --release",
45
- "build:release:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js --release",
46
- "build:release:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release",
47
- "build:release:musl": "cross-env RUST_TARGET=aarch64-unknown-linux-musl node scripts/build.js --release",
48
- "build:release:win": "cross-env RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release",
49
- "build:release-prod": "node scripts/build.js --release-prod",
50
- "watch:release-prod": "node scripts/build.js --release-prod --watch",
51
- "build:release-prod:arm64": "cross-env RUST_TARGET=aarch64-apple-darwin node scripts/build.js --release-prod",
52
- "build:release-prod:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js --release-prod",
53
- "build:release-prod:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release-prod",
54
- "build:release-prod:win": "cross-env RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release-prod",
55
- "build:release-debug": "node scripts/build.js --release-debug",
38
+ "build:dev": "node scripts/build.js",
39
+ "build:ci": "node scripts/build.js --profile ci",
40
+ "build:profiling": "node scripts/build.js --profile profiling",
41
+ "build:release": "node scripts/build.js --profile release",
56
42
  "move-binding": "node scripts/move-binding",
57
43
  "test": "tsc -p tsconfig.type-test.json"
58
44
  }