@powerlines/plugin-napi-rs 0.2.264 → 0.2.266
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/dist/helpers/format-path.d.cts +1 -1
- package/dist/helpers/format-path.d.mts +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -0
- package/dist/plugin-B-1yl745.d.mts +179 -0
- package/dist/plugin-B-1yl745.d.mts.map +1 -0
- package/dist/plugin-Dt_UnGO5.d.cts +179 -0
- package/dist/plugin-Dt_UnGO5.d.cts.map +1 -0
- package/dist/targets-UYPuvlbd.d.cts +16 -0
- package/dist/targets-UYPuvlbd.d.cts.map +1 -0
- package/dist/targets-UYPuvlbd.d.mts +16 -0
- package/dist/targets-UYPuvlbd.d.mts.map +1 -0
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/plugin.d.cts +2 -179
- package/dist/types/plugin.d.mts +2 -179
- package/dist/types/targets.d.cts +2 -16
- package/dist/types/targets.d.mts +2 -16
- package/dist/types/wasm.d.cts +2 -44
- package/dist/types/wasm.d.mts +2 -44
- package/dist/wasm-CtwgfyF_.d.cts +44 -0
- package/dist/wasm-CtwgfyF_.d.cts.map +1 -0
- package/dist/wasm-CtwgfyF_.d.mts +44 -0
- package/dist/wasm-CtwgfyF_.d.mts.map +1 -0
- package/package.json +7 -7
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/types/targets.d.cts.map +0 -1
- package/dist/types/targets.d.mts.map +0 -1
- package/dist/types/wasm.d.cts.map +0 -1
- package/dist/types/wasm.d.mts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_types_targets = require('./types/targets.cjs');
|
|
3
|
+
require('./types/index.cjs');
|
|
3
4
|
const require_helpers_format_path = require('./helpers/format-path.cjs');
|
|
4
5
|
let _stryke_path_append = require("@stryke/path/append");
|
|
5
6
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "./targets-UYPuvlbd.cjs";
|
|
2
|
+
import { n as WasmOptions, t as WasmBrowserOptions } from "./wasm-CtwgfyF_.cjs";
|
|
3
|
+
import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "./plugin-Dt_UnGO5.cjs";
|
|
4
4
|
import "./types/index.cjs";
|
|
5
5
|
import { Plugin } from "powerlines";
|
|
6
6
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "./targets-UYPuvlbd.mjs";
|
|
2
|
+
import { n as WasmOptions, t as WasmBrowserOptions } from "./wasm-CtwgfyF_.mjs";
|
|
3
|
+
import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "./plugin-B-1yl745.mjs";
|
|
4
4
|
import "./types/index.mjs";
|
|
5
5
|
import { Plugin } from "powerlines";
|
|
6
6
|
//#region src/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { a as TargetTriple, i as Target } from "./targets-UYPuvlbd.mjs";
|
|
2
|
+
import { n as WasmOptions } from "./wasm-CtwgfyF_.mjs";
|
|
3
|
+
import { NapiCli } from "@napi-rs/cli";
|
|
4
|
+
import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
5
|
+
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
|
|
6
|
+
import { RequiredKeys } from "@stryke/types/base";
|
|
7
|
+
//#region src/types/plugin.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* The options for the N-API Rust plugin.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* These options are based on the options for the N-API Rust CLI, and are used to configure the plugin's behavior when building and generating bindings for N-API Rust modules.
|
|
13
|
+
*
|
|
14
|
+
* @see https://napi.rs/docs/cli/build#options
|
|
15
|
+
*/
|
|
16
|
+
interface NapiPluginOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Build only the specified binary
|
|
19
|
+
*/
|
|
20
|
+
binaryName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Package name in generated JS binding file. Works only with --platform
|
|
23
|
+
*/
|
|
24
|
+
packageName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Path to the build output dir, only needed when targets contains wasm32-wasi-*
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts). This is required because the plugin needs to copy the generated wasm file to the output dir, and the default output dir is the crate folder, which is not suitable for wasm files. Relative to the project root. If not specified, it will default to the crate folder. This is only used for wasm targets, and will be ignored for non-wasm targets.
|
|
30
|
+
*/
|
|
31
|
+
buildOutputDir?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Path to the folder where the npm packages are located.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts)
|
|
37
|
+
*/
|
|
38
|
+
npmDir?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Build for the target triple, bypassed to `cargo build --target`
|
|
41
|
+
*/
|
|
42
|
+
target?: TargetTriple | Target;
|
|
43
|
+
/**
|
|
44
|
+
* Specify multiple targets to build for, bypassed to `cargo build --target` with cargo-multi-target. If specified, the plugin will build for all the specified targets and generate bindings for each target. The generated binding files will have the target triple as a suffix, e.g. [name].linux-x64-gnu.node and [name].wasm32-wasi.node.
|
|
45
|
+
*/
|
|
46
|
+
targets?: (TargetTriple | Target)[];
|
|
47
|
+
/**
|
|
48
|
+
* Build artifacts with the specified Cargo profile
|
|
49
|
+
*/
|
|
50
|
+
profile?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Wasm compilation options. If specified, the plugin will compile the N-API Rust module to WebAssembly and generate the corresponding bindings.
|
|
53
|
+
*/
|
|
54
|
+
wasm?: WasmOptions;
|
|
55
|
+
/**
|
|
56
|
+
* Build in release mode
|
|
57
|
+
*/
|
|
58
|
+
release?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* List of Cargo features to activate
|
|
61
|
+
*/
|
|
62
|
+
features?: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Activate all available Cargo features
|
|
65
|
+
*/
|
|
66
|
+
allFeatures?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Do not activate the default features
|
|
69
|
+
*
|
|
70
|
+
* @defaultValue false
|
|
71
|
+
*/
|
|
72
|
+
noDefaultFeatures?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Path and filename of generated JS binding file. Only works with {@link platform} flag. Relative to {@link outputPath}.
|
|
75
|
+
*
|
|
76
|
+
* @defaultValue "binding.js"
|
|
77
|
+
*/
|
|
78
|
+
jsBinding?: string;
|
|
79
|
+
/**
|
|
80
|
+
* DTS Binding File
|
|
81
|
+
*
|
|
82
|
+
* The path to the output TypeScript declaration file
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue "binding.d.ts"
|
|
85
|
+
*/
|
|
86
|
+
dts?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The path to the Cargo.toml manifest file
|
|
89
|
+
*/
|
|
90
|
+
manifestPath?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Path to [NAPI-RS config file](https://napi.rs/docs/cli/napi-config)
|
|
93
|
+
*/
|
|
94
|
+
configPath?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Path to where all the built files would be put. Default to the crate folder if not specified. Relative to the project root.
|
|
97
|
+
*/
|
|
98
|
+
outputDir?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Directory for all crate generated artifacts, see `cargo build --target-dir`
|
|
101
|
+
*/
|
|
102
|
+
targetDir?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Path to the package.json file to read the version and other metadata from, used for generating the JS binding file. If not specified, it will default to the package.json file in the project root.
|
|
105
|
+
*/
|
|
106
|
+
packageJsonPath?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Add platform triple suffix to generated Node.js binding file, e.g. [name].linux-x64-gnu.node
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue true
|
|
111
|
+
*/
|
|
112
|
+
platform?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Specify a different NPM client for usage when executing NPM actions such as publishing.
|
|
115
|
+
*/
|
|
116
|
+
npmClient?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Whether to generate const enum for TypeScript bindings
|
|
119
|
+
*/
|
|
120
|
+
constEnum?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Disable generation of JS binding file. Works only with --platform
|
|
123
|
+
*/
|
|
124
|
+
noJsBinding?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Custom file header for generated type def file (requires typedef feature)
|
|
127
|
+
*/
|
|
128
|
+
dtsHeader?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Path to the custom file header for generated type def file (requires typedef feature)
|
|
131
|
+
*/
|
|
132
|
+
dtsHeaderFile?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Disable default file header for generated type def file (requires typedef feature)
|
|
135
|
+
*/
|
|
136
|
+
noDtsHeader?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Enable the DTS cache
|
|
139
|
+
*/
|
|
140
|
+
dtsCache?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Strip the library to minimize file size
|
|
143
|
+
*/
|
|
144
|
+
strip?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Cross-compile for the specified target with cargo-xwin on Windows and cargo-zigbuild on other platforms
|
|
147
|
+
*/
|
|
148
|
+
crossCompile?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Use [cross-rs](https://github.com/cross-rs/cross) instead of cargo
|
|
151
|
+
*/
|
|
152
|
+
useCross?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Use \@napi-rs/cross-toolchain to cross-compile Linux arm/arm64/x64 gnu targets
|
|
155
|
+
*/
|
|
156
|
+
useNapiCross?: boolean;
|
|
157
|
+
}
|
|
158
|
+
type NapiPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
|
|
159
|
+
napi: NapiPluginOptions;
|
|
160
|
+
};
|
|
161
|
+
type NapiResolvedPluginOptions = Omit<RequiredKeys<NapiPluginOptions, "dts" | "jsBinding" | "manifestPath" | "outputDir" | "platform" | "packageJsonPath">, "target" | "targets"> & {
|
|
162
|
+
/**
|
|
163
|
+
* The resolved target triple to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `target` option, and are used internally by the plugin to determine how to build the N-API Rust module for the target.
|
|
164
|
+
*/
|
|
165
|
+
target: Target;
|
|
166
|
+
/**
|
|
167
|
+
* The resolved list of target triples to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `targets` option, and are used internally by the plugin to determine how to build the N-API Rust module for each target.
|
|
168
|
+
*/
|
|
169
|
+
targets: Target[];
|
|
170
|
+
};
|
|
171
|
+
type NapiPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
172
|
+
napi: NapiResolvedPluginOptions;
|
|
173
|
+
};
|
|
174
|
+
interface NapiPluginContext<TResolvedConfig extends NapiPluginResolvedConfig = NapiPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
|
|
175
|
+
napi: NapiCli;
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
export { NapiResolvedPluginOptions as a, NapiPluginUserConfig as i, NapiPluginOptions as n, NapiPluginResolvedConfig as r, NapiPluginContext as t };
|
|
179
|
+
//# sourceMappingURL=plugin-B-1yl745.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-B-1yl745.d.mts","names":[],"sources":["../src/types/plugin.ts"],"mappings":""}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { a as TargetTriple, i as Target } from "./targets-UYPuvlbd.cjs";
|
|
2
|
+
import { n as WasmOptions } from "./wasm-CtwgfyF_.cjs";
|
|
3
|
+
import { NapiCli } from "@napi-rs/cli";
|
|
4
|
+
import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
5
|
+
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
|
|
6
|
+
import { RequiredKeys } from "@stryke/types/base";
|
|
7
|
+
//#region src/types/plugin.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* The options for the N-API Rust plugin.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* These options are based on the options for the N-API Rust CLI, and are used to configure the plugin's behavior when building and generating bindings for N-API Rust modules.
|
|
13
|
+
*
|
|
14
|
+
* @see https://napi.rs/docs/cli/build#options
|
|
15
|
+
*/
|
|
16
|
+
interface NapiPluginOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Build only the specified binary
|
|
19
|
+
*/
|
|
20
|
+
binaryName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Package name in generated JS binding file. Works only with --platform
|
|
23
|
+
*/
|
|
24
|
+
packageName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Path to the build output dir, only needed when targets contains wasm32-wasi-*
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts). This is required because the plugin needs to copy the generated wasm file to the output dir, and the default output dir is the crate folder, which is not suitable for wasm files. Relative to the project root. If not specified, it will default to the crate folder. This is only used for wasm targets, and will be ignored for non-wasm targets.
|
|
30
|
+
*/
|
|
31
|
+
buildOutputDir?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Path to the folder where the npm packages are located.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts)
|
|
37
|
+
*/
|
|
38
|
+
npmDir?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Build for the target triple, bypassed to `cargo build --target`
|
|
41
|
+
*/
|
|
42
|
+
target?: TargetTriple | Target;
|
|
43
|
+
/**
|
|
44
|
+
* Specify multiple targets to build for, bypassed to `cargo build --target` with cargo-multi-target. If specified, the plugin will build for all the specified targets and generate bindings for each target. The generated binding files will have the target triple as a suffix, e.g. [name].linux-x64-gnu.node and [name].wasm32-wasi.node.
|
|
45
|
+
*/
|
|
46
|
+
targets?: (TargetTriple | Target)[];
|
|
47
|
+
/**
|
|
48
|
+
* Build artifacts with the specified Cargo profile
|
|
49
|
+
*/
|
|
50
|
+
profile?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Wasm compilation options. If specified, the plugin will compile the N-API Rust module to WebAssembly and generate the corresponding bindings.
|
|
53
|
+
*/
|
|
54
|
+
wasm?: WasmOptions;
|
|
55
|
+
/**
|
|
56
|
+
* Build in release mode
|
|
57
|
+
*/
|
|
58
|
+
release?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* List of Cargo features to activate
|
|
61
|
+
*/
|
|
62
|
+
features?: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Activate all available Cargo features
|
|
65
|
+
*/
|
|
66
|
+
allFeatures?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Do not activate the default features
|
|
69
|
+
*
|
|
70
|
+
* @defaultValue false
|
|
71
|
+
*/
|
|
72
|
+
noDefaultFeatures?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Path and filename of generated JS binding file. Only works with {@link platform} flag. Relative to {@link outputPath}.
|
|
75
|
+
*
|
|
76
|
+
* @defaultValue "binding.js"
|
|
77
|
+
*/
|
|
78
|
+
jsBinding?: string;
|
|
79
|
+
/**
|
|
80
|
+
* DTS Binding File
|
|
81
|
+
*
|
|
82
|
+
* The path to the output TypeScript declaration file
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue "binding.d.ts"
|
|
85
|
+
*/
|
|
86
|
+
dts?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The path to the Cargo.toml manifest file
|
|
89
|
+
*/
|
|
90
|
+
manifestPath?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Path to [NAPI-RS config file](https://napi.rs/docs/cli/napi-config)
|
|
93
|
+
*/
|
|
94
|
+
configPath?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Path to where all the built files would be put. Default to the crate folder if not specified. Relative to the project root.
|
|
97
|
+
*/
|
|
98
|
+
outputDir?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Directory for all crate generated artifacts, see `cargo build --target-dir`
|
|
101
|
+
*/
|
|
102
|
+
targetDir?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Path to the package.json file to read the version and other metadata from, used for generating the JS binding file. If not specified, it will default to the package.json file in the project root.
|
|
105
|
+
*/
|
|
106
|
+
packageJsonPath?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Add platform triple suffix to generated Node.js binding file, e.g. [name].linux-x64-gnu.node
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue true
|
|
111
|
+
*/
|
|
112
|
+
platform?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Specify a different NPM client for usage when executing NPM actions such as publishing.
|
|
115
|
+
*/
|
|
116
|
+
npmClient?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Whether to generate const enum for TypeScript bindings
|
|
119
|
+
*/
|
|
120
|
+
constEnum?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Disable generation of JS binding file. Works only with --platform
|
|
123
|
+
*/
|
|
124
|
+
noJsBinding?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Custom file header for generated type def file (requires typedef feature)
|
|
127
|
+
*/
|
|
128
|
+
dtsHeader?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Path to the custom file header for generated type def file (requires typedef feature)
|
|
131
|
+
*/
|
|
132
|
+
dtsHeaderFile?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Disable default file header for generated type def file (requires typedef feature)
|
|
135
|
+
*/
|
|
136
|
+
noDtsHeader?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Enable the DTS cache
|
|
139
|
+
*/
|
|
140
|
+
dtsCache?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Strip the library to minimize file size
|
|
143
|
+
*/
|
|
144
|
+
strip?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Cross-compile for the specified target with cargo-xwin on Windows and cargo-zigbuild on other platforms
|
|
147
|
+
*/
|
|
148
|
+
crossCompile?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Use [cross-rs](https://github.com/cross-rs/cross) instead of cargo
|
|
151
|
+
*/
|
|
152
|
+
useCross?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Use \@napi-rs/cross-toolchain to cross-compile Linux arm/arm64/x64 gnu targets
|
|
155
|
+
*/
|
|
156
|
+
useNapiCross?: boolean;
|
|
157
|
+
}
|
|
158
|
+
type NapiPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
|
|
159
|
+
napi: NapiPluginOptions;
|
|
160
|
+
};
|
|
161
|
+
type NapiResolvedPluginOptions = Omit<RequiredKeys<NapiPluginOptions, "dts" | "jsBinding" | "manifestPath" | "outputDir" | "platform" | "packageJsonPath">, "target" | "targets"> & {
|
|
162
|
+
/**
|
|
163
|
+
* The resolved target triple to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `target` option, and are used internally by the plugin to determine how to build the N-API Rust module for the target.
|
|
164
|
+
*/
|
|
165
|
+
target: Target;
|
|
166
|
+
/**
|
|
167
|
+
* The resolved list of target triples to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `targets` option, and are used internally by the plugin to determine how to build the N-API Rust module for each target.
|
|
168
|
+
*/
|
|
169
|
+
targets: Target[];
|
|
170
|
+
};
|
|
171
|
+
type NapiPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
172
|
+
napi: NapiResolvedPluginOptions;
|
|
173
|
+
};
|
|
174
|
+
interface NapiPluginContext<TResolvedConfig extends NapiPluginResolvedConfig = NapiPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
|
|
175
|
+
napi: NapiCli;
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
export { NapiResolvedPluginOptions as a, NapiPluginUserConfig as i, NapiPluginOptions as n, NapiPluginResolvedConfig as r, NapiPluginContext as t };
|
|
179
|
+
//# sourceMappingURL=plugin-Dt_UnGO5.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-Dt_UnGO5.d.cts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;;;;;;;;;;;;UA0CiB;;;;EAIf;;;;EAKA;;;;;;;EAQA;;;;;;;EAQA;;;;EAKA,SAAS,eAAe;;;;EAKxB,WAAW,eAAe;;;;EAK1B;;;;EAKA,OAAO;;;;EAKP;;;;EAKA,WAAW;;;;EAKX;;;;;;EAOA;;;;;;EAOA;;;;;;;;EASA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;KAGU,uBAAuB,wBACjC;EACE,MAAM;;KAGE,4BAA4B,KACtC,aACE;;;;EAaF,QAAQ;;;;EAKR,SAAS;;KAGC,2BAA2B,4BACrC;EACE,MAAM;;UAGO,kBACf,wBAAwB,2BAA2B,kCAGjD,mBAAmB,kBACnB,mBAAmB;EACrB,MAAM"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/types/targets.d.ts
|
|
2
|
+
declare const AVAILABLE_TARGETS: readonly ["aarch64-apple-darwin", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "aarch64-unknown-linux-ohos", "aarch64-pc-windows-msvc", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-pc-windows-gnu", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-unknown-linux-ohos", "x86_64-unknown-freebsd", "i686-pc-windows-msvc", "armv7-unknown-linux-gnueabihf", "armv7-unknown-linux-musleabihf", "armv7-linux-androideabi", "universal-apple-darwin", "loongarch64-unknown-linux-gnu", "riscv64gc-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-wasi-preview1-threads", "wasm32-wasip1-threads"];
|
|
3
|
+
type TargetTriple = (typeof AVAILABLE_TARGETS)[number];
|
|
4
|
+
declare const DEFAULT_TARGETS: readonly ["x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"];
|
|
5
|
+
type Platform = NodeJS.Platform | "wasm" | "wasi" | "wasip1" | "openharmony";
|
|
6
|
+
type NodeJSArch = "arm" | "arm64" | "ia32" | "loong64" | "mips" | "mipsel" | "ppc" | "ppc64" | "riscv64" | "s390" | "s390x" | "x32" | "x64" | "universal" | "wasm32";
|
|
7
|
+
interface Target {
|
|
8
|
+
triple: string;
|
|
9
|
+
platformArchABI: string;
|
|
10
|
+
platform: Platform;
|
|
11
|
+
arch: NodeJSArch;
|
|
12
|
+
abi: string | null;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TargetTriple as a, Target as i, DEFAULT_TARGETS as n, Platform as r, AVAILABLE_TARGETS as t };
|
|
16
|
+
//# sourceMappingURL=targets-UYPuvlbd.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targets-UYPuvlbd.d.cts","names":[],"sources":["../src/types/targets.ts"],"mappings":";cAkBa;KA2BD,uBAAuB;cAEtB;KAOD,WACV,OAAO;KAGJ;UAiBY;EACf;EACA;EACA,UAAU;EACV,MAAM;EACN"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/types/targets.d.ts
|
|
2
|
+
declare const AVAILABLE_TARGETS: readonly ["aarch64-apple-darwin", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "aarch64-unknown-linux-ohos", "aarch64-pc-windows-msvc", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-pc-windows-gnu", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-unknown-linux-ohos", "x86_64-unknown-freebsd", "i686-pc-windows-msvc", "armv7-unknown-linux-gnueabihf", "armv7-unknown-linux-musleabihf", "armv7-linux-androideabi", "universal-apple-darwin", "loongarch64-unknown-linux-gnu", "riscv64gc-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-wasi-preview1-threads", "wasm32-wasip1-threads"];
|
|
3
|
+
type TargetTriple = (typeof AVAILABLE_TARGETS)[number];
|
|
4
|
+
declare const DEFAULT_TARGETS: readonly ["x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"];
|
|
5
|
+
type Platform = NodeJS.Platform | "wasm" | "wasi" | "wasip1" | "openharmony";
|
|
6
|
+
type NodeJSArch = "arm" | "arm64" | "ia32" | "loong64" | "mips" | "mipsel" | "ppc" | "ppc64" | "riscv64" | "s390" | "s390x" | "x32" | "x64" | "universal" | "wasm32";
|
|
7
|
+
interface Target {
|
|
8
|
+
triple: string;
|
|
9
|
+
platformArchABI: string;
|
|
10
|
+
platform: Platform;
|
|
11
|
+
arch: NodeJSArch;
|
|
12
|
+
abi: string | null;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TargetTriple as a, Target as i, DEFAULT_TARGETS as n, Platform as r, AVAILABLE_TARGETS as t };
|
|
16
|
+
//# sourceMappingURL=targets-UYPuvlbd.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targets-UYPuvlbd.d.mts","names":[],"sources":["../src/types/targets.ts"],"mappings":""}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "../targets-UYPuvlbd.cjs";
|
|
2
|
+
import { n as WasmOptions, t as WasmBrowserOptions } from "../wasm-CtwgfyF_.cjs";
|
|
3
|
+
import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-Dt_UnGO5.cjs";
|
|
4
4
|
export { AVAILABLE_TARGETS, DEFAULT_TARGETS, NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions, Platform, Target, TargetTriple, WasmBrowserOptions, WasmOptions };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "../targets-UYPuvlbd.mjs";
|
|
2
|
+
import { n as WasmOptions, t as WasmBrowserOptions } from "../wasm-CtwgfyF_.mjs";
|
|
3
|
+
import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-B-1yl745.mjs";
|
|
4
4
|
export { AVAILABLE_TARGETS, DEFAULT_TARGETS, NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions, Platform, Target, TargetTriple, WasmBrowserOptions, WasmOptions };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,179 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { NapiCli } from "@napi-rs/cli";
|
|
4
|
-
import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
5
|
-
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
|
|
6
|
-
import { RequiredKeys } from "@stryke/types/base";
|
|
7
|
-
//#region src/types/plugin.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* The options for the N-API Rust plugin.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* These options are based on the options for the N-API Rust CLI, and are used to configure the plugin's behavior when building and generating bindings for N-API Rust modules.
|
|
13
|
-
*
|
|
14
|
-
* @see https://napi.rs/docs/cli/build#options
|
|
15
|
-
*/
|
|
16
|
-
interface NapiPluginOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Build only the specified binary
|
|
19
|
-
*/
|
|
20
|
-
binaryName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Package name in generated JS binding file. Works only with --platform
|
|
23
|
-
*/
|
|
24
|
-
packageName?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Path to the build output dir, only needed when targets contains wasm32-wasi-*
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts). This is required because the plugin needs to copy the generated wasm file to the output dir, and the default output dir is the crate folder, which is not suitable for wasm files. Relative to the project root. If not specified, it will default to the crate folder. This is only used for wasm targets, and will be ignored for non-wasm targets.
|
|
30
|
-
*/
|
|
31
|
-
buildOutputDir?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Path to the folder where the npm packages are located.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts)
|
|
37
|
-
*/
|
|
38
|
-
npmDir?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Build for the target triple, bypassed to `cargo build --target`
|
|
41
|
-
*/
|
|
42
|
-
target?: TargetTriple | Target;
|
|
43
|
-
/**
|
|
44
|
-
* Specify multiple targets to build for, bypassed to `cargo build --target` with cargo-multi-target. If specified, the plugin will build for all the specified targets and generate bindings for each target. The generated binding files will have the target triple as a suffix, e.g. [name].linux-x64-gnu.node and [name].wasm32-wasi.node.
|
|
45
|
-
*/
|
|
46
|
-
targets?: (TargetTriple | Target)[];
|
|
47
|
-
/**
|
|
48
|
-
* Build artifacts with the specified Cargo profile
|
|
49
|
-
*/
|
|
50
|
-
profile?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Wasm compilation options. If specified, the plugin will compile the N-API Rust module to WebAssembly and generate the corresponding bindings.
|
|
53
|
-
*/
|
|
54
|
-
wasm?: WasmOptions;
|
|
55
|
-
/**
|
|
56
|
-
* Build in release mode
|
|
57
|
-
*/
|
|
58
|
-
release?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* List of Cargo features to activate
|
|
61
|
-
*/
|
|
62
|
-
features?: Array<string>;
|
|
63
|
-
/**
|
|
64
|
-
* Activate all available Cargo features
|
|
65
|
-
*/
|
|
66
|
-
allFeatures?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Do not activate the default features
|
|
69
|
-
*
|
|
70
|
-
* @defaultValue false
|
|
71
|
-
*/
|
|
72
|
-
noDefaultFeatures?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Path and filename of generated JS binding file. Only works with {@link platform} flag. Relative to {@link outputPath}.
|
|
75
|
-
*
|
|
76
|
-
* @defaultValue "binding.js"
|
|
77
|
-
*/
|
|
78
|
-
jsBinding?: string;
|
|
79
|
-
/**
|
|
80
|
-
* DTS Binding File
|
|
81
|
-
*
|
|
82
|
-
* The path to the output TypeScript declaration file
|
|
83
|
-
*
|
|
84
|
-
* @defaultValue "binding.d.ts"
|
|
85
|
-
*/
|
|
86
|
-
dts?: string;
|
|
87
|
-
/**
|
|
88
|
-
* The path to the Cargo.toml manifest file
|
|
89
|
-
*/
|
|
90
|
-
manifestPath?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Path to [NAPI-RS config file](https://napi.rs/docs/cli/napi-config)
|
|
93
|
-
*/
|
|
94
|
-
configPath?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Path to where all the built files would be put. Default to the crate folder if not specified. Relative to the project root.
|
|
97
|
-
*/
|
|
98
|
-
outputDir?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Directory for all crate generated artifacts, see `cargo build --target-dir`
|
|
101
|
-
*/
|
|
102
|
-
targetDir?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Path to the package.json file to read the version and other metadata from, used for generating the JS binding file. If not specified, it will default to the package.json file in the project root.
|
|
105
|
-
*/
|
|
106
|
-
packageJsonPath?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Add platform triple suffix to generated Node.js binding file, e.g. [name].linux-x64-gnu.node
|
|
109
|
-
*
|
|
110
|
-
* @defaultValue true
|
|
111
|
-
*/
|
|
112
|
-
platform?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Specify a different NPM client for usage when executing NPM actions such as publishing.
|
|
115
|
-
*/
|
|
116
|
-
npmClient?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Whether to generate const enum for TypeScript bindings
|
|
119
|
-
*/
|
|
120
|
-
constEnum?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Disable generation of JS binding file. Works only with --platform
|
|
123
|
-
*/
|
|
124
|
-
noJsBinding?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Custom file header for generated type def file (requires typedef feature)
|
|
127
|
-
*/
|
|
128
|
-
dtsHeader?: string;
|
|
129
|
-
/**
|
|
130
|
-
* Path to the custom file header for generated type def file (requires typedef feature)
|
|
131
|
-
*/
|
|
132
|
-
dtsHeaderFile?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Disable default file header for generated type def file (requires typedef feature)
|
|
135
|
-
*/
|
|
136
|
-
noDtsHeader?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Enable the DTS cache
|
|
139
|
-
*/
|
|
140
|
-
dtsCache?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Strip the library to minimize file size
|
|
143
|
-
*/
|
|
144
|
-
strip?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Cross-compile for the specified target with cargo-xwin on Windows and cargo-zigbuild on other platforms
|
|
147
|
-
*/
|
|
148
|
-
crossCompile?: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Use [cross-rs](https://github.com/cross-rs/cross) instead of cargo
|
|
151
|
-
*/
|
|
152
|
-
useCross?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Use \@napi-rs/cross-toolchain to cross-compile Linux arm/arm64/x64 gnu targets
|
|
155
|
-
*/
|
|
156
|
-
useNapiCross?: boolean;
|
|
157
|
-
}
|
|
158
|
-
type NapiPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
|
|
159
|
-
napi: NapiPluginOptions;
|
|
160
|
-
};
|
|
161
|
-
type NapiResolvedPluginOptions = Omit<RequiredKeys<NapiPluginOptions, "dts" | "jsBinding" | "manifestPath" | "outputDir" | "platform" | "packageJsonPath">, "target" | "targets"> & {
|
|
162
|
-
/**
|
|
163
|
-
* The resolved target triple to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `target` option, and are used internally by the plugin to determine how to build the N-API Rust module for the target.
|
|
164
|
-
*/
|
|
165
|
-
target: Target;
|
|
166
|
-
/**
|
|
167
|
-
* The resolved list of target triples to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `targets` option, and are used internally by the plugin to determine how to build the N-API Rust module for each target.
|
|
168
|
-
*/
|
|
169
|
-
targets: Target[];
|
|
170
|
-
};
|
|
171
|
-
type NapiPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
172
|
-
napi: NapiResolvedPluginOptions;
|
|
173
|
-
};
|
|
174
|
-
interface NapiPluginContext<TResolvedConfig extends NapiPluginResolvedConfig = NapiPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
|
|
175
|
-
napi: NapiCli;
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
export { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions };
|
|
179
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
1
|
+
import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-Dt_UnGO5.cjs";
|
|
2
|
+
export { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,179 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { NapiCli } from "@napi-rs/cli";
|
|
4
|
-
import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
5
|
-
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
|
|
6
|
-
import { RequiredKeys } from "@stryke/types/base";
|
|
7
|
-
//#region src/types/plugin.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* The options for the N-API Rust plugin.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* These options are based on the options for the N-API Rust CLI, and are used to configure the plugin's behavior when building and generating bindings for N-API Rust modules.
|
|
13
|
-
*
|
|
14
|
-
* @see https://napi.rs/docs/cli/build#options
|
|
15
|
-
*/
|
|
16
|
-
interface NapiPluginOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Build only the specified binary
|
|
19
|
-
*/
|
|
20
|
-
binaryName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Package name in generated JS binding file. Works only with --platform
|
|
23
|
-
*/
|
|
24
|
-
packageName?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Path to the build output dir, only needed when targets contains wasm32-wasi-*
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts). This is required because the plugin needs to copy the generated wasm file to the output dir, and the default output dir is the crate folder, which is not suitable for wasm files. Relative to the project root. If not specified, it will default to the crate folder. This is only used for wasm targets, and will be ignored for non-wasm targets.
|
|
30
|
-
*/
|
|
31
|
-
buildOutputDir?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Path to the folder where the npm packages are located.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* This is used by the [Artifacts command](https://napi.rs/docs/cli/artifacts)
|
|
37
|
-
*/
|
|
38
|
-
npmDir?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Build for the target triple, bypassed to `cargo build --target`
|
|
41
|
-
*/
|
|
42
|
-
target?: TargetTriple | Target;
|
|
43
|
-
/**
|
|
44
|
-
* Specify multiple targets to build for, bypassed to `cargo build --target` with cargo-multi-target. If specified, the plugin will build for all the specified targets and generate bindings for each target. The generated binding files will have the target triple as a suffix, e.g. [name].linux-x64-gnu.node and [name].wasm32-wasi.node.
|
|
45
|
-
*/
|
|
46
|
-
targets?: (TargetTriple | Target)[];
|
|
47
|
-
/**
|
|
48
|
-
* Build artifacts with the specified Cargo profile
|
|
49
|
-
*/
|
|
50
|
-
profile?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Wasm compilation options. If specified, the plugin will compile the N-API Rust module to WebAssembly and generate the corresponding bindings.
|
|
53
|
-
*/
|
|
54
|
-
wasm?: WasmOptions;
|
|
55
|
-
/**
|
|
56
|
-
* Build in release mode
|
|
57
|
-
*/
|
|
58
|
-
release?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* List of Cargo features to activate
|
|
61
|
-
*/
|
|
62
|
-
features?: Array<string>;
|
|
63
|
-
/**
|
|
64
|
-
* Activate all available Cargo features
|
|
65
|
-
*/
|
|
66
|
-
allFeatures?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Do not activate the default features
|
|
69
|
-
*
|
|
70
|
-
* @defaultValue false
|
|
71
|
-
*/
|
|
72
|
-
noDefaultFeatures?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Path and filename of generated JS binding file. Only works with {@link platform} flag. Relative to {@link outputPath}.
|
|
75
|
-
*
|
|
76
|
-
* @defaultValue "binding.js"
|
|
77
|
-
*/
|
|
78
|
-
jsBinding?: string;
|
|
79
|
-
/**
|
|
80
|
-
* DTS Binding File
|
|
81
|
-
*
|
|
82
|
-
* The path to the output TypeScript declaration file
|
|
83
|
-
*
|
|
84
|
-
* @defaultValue "binding.d.ts"
|
|
85
|
-
*/
|
|
86
|
-
dts?: string;
|
|
87
|
-
/**
|
|
88
|
-
* The path to the Cargo.toml manifest file
|
|
89
|
-
*/
|
|
90
|
-
manifestPath?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Path to [NAPI-RS config file](https://napi.rs/docs/cli/napi-config)
|
|
93
|
-
*/
|
|
94
|
-
configPath?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Path to where all the built files would be put. Default to the crate folder if not specified. Relative to the project root.
|
|
97
|
-
*/
|
|
98
|
-
outputDir?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Directory for all crate generated artifacts, see `cargo build --target-dir`
|
|
101
|
-
*/
|
|
102
|
-
targetDir?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Path to the package.json file to read the version and other metadata from, used for generating the JS binding file. If not specified, it will default to the package.json file in the project root.
|
|
105
|
-
*/
|
|
106
|
-
packageJsonPath?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Add platform triple suffix to generated Node.js binding file, e.g. [name].linux-x64-gnu.node
|
|
109
|
-
*
|
|
110
|
-
* @defaultValue true
|
|
111
|
-
*/
|
|
112
|
-
platform?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Specify a different NPM client for usage when executing NPM actions such as publishing.
|
|
115
|
-
*/
|
|
116
|
-
npmClient?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Whether to generate const enum for TypeScript bindings
|
|
119
|
-
*/
|
|
120
|
-
constEnum?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Disable generation of JS binding file. Works only with --platform
|
|
123
|
-
*/
|
|
124
|
-
noJsBinding?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Custom file header for generated type def file (requires typedef feature)
|
|
127
|
-
*/
|
|
128
|
-
dtsHeader?: string;
|
|
129
|
-
/**
|
|
130
|
-
* Path to the custom file header for generated type def file (requires typedef feature)
|
|
131
|
-
*/
|
|
132
|
-
dtsHeaderFile?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Disable default file header for generated type def file (requires typedef feature)
|
|
135
|
-
*/
|
|
136
|
-
noDtsHeader?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Enable the DTS cache
|
|
139
|
-
*/
|
|
140
|
-
dtsCache?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Strip the library to minimize file size
|
|
143
|
-
*/
|
|
144
|
-
strip?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Cross-compile for the specified target with cargo-xwin on Windows and cargo-zigbuild on other platforms
|
|
147
|
-
*/
|
|
148
|
-
crossCompile?: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Use [cross-rs](https://github.com/cross-rs/cross) instead of cargo
|
|
151
|
-
*/
|
|
152
|
-
useCross?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Use \@napi-rs/cross-toolchain to cross-compile Linux arm/arm64/x64 gnu targets
|
|
155
|
-
*/
|
|
156
|
-
useNapiCross?: boolean;
|
|
157
|
-
}
|
|
158
|
-
type NapiPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
|
|
159
|
-
napi: NapiPluginOptions;
|
|
160
|
-
};
|
|
161
|
-
type NapiResolvedPluginOptions = Omit<RequiredKeys<NapiPluginOptions, "dts" | "jsBinding" | "manifestPath" | "outputDir" | "platform" | "packageJsonPath">, "target" | "targets"> & {
|
|
162
|
-
/**
|
|
163
|
-
* The resolved target triple to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `target` option, and are used internally by the plugin to determine how to build the N-API Rust module for the target.
|
|
164
|
-
*/
|
|
165
|
-
target: Target;
|
|
166
|
-
/**
|
|
167
|
-
* The resolved list of target triples to build for, with additional metadata such as platform, architecture, and ABI information. These are derived from the `targets` option, and are used internally by the plugin to determine how to build the N-API Rust module for each target.
|
|
168
|
-
*/
|
|
169
|
-
targets: Target[];
|
|
170
|
-
};
|
|
171
|
-
type NapiPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
172
|
-
napi: NapiResolvedPluginOptions;
|
|
173
|
-
};
|
|
174
|
-
interface NapiPluginContext<TResolvedConfig extends NapiPluginResolvedConfig = NapiPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
|
|
175
|
-
napi: NapiCli;
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
export { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions };
|
|
179
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
1
|
+
import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-B-1yl745.mjs";
|
|
2
|
+
export { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions };
|
package/dist/types/targets.d.cts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type TargetTriple = (typeof AVAILABLE_TARGETS)[number];
|
|
4
|
-
declare const DEFAULT_TARGETS: readonly ["x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"];
|
|
5
|
-
type Platform = NodeJS.Platform | "wasm" | "wasi" | "wasip1" | "openharmony";
|
|
6
|
-
type NodeJSArch = "arm" | "arm64" | "ia32" | "loong64" | "mips" | "mipsel" | "ppc" | "ppc64" | "riscv64" | "s390" | "s390x" | "x32" | "x64" | "universal" | "wasm32";
|
|
7
|
-
interface Target {
|
|
8
|
-
triple: string;
|
|
9
|
-
platformArchABI: string;
|
|
10
|
-
platform: Platform;
|
|
11
|
-
arch: NodeJSArch;
|
|
12
|
-
abi: string | null;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple };
|
|
16
|
-
//# sourceMappingURL=targets.d.cts.map
|
|
1
|
+
import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "../targets-UYPuvlbd.cjs";
|
|
2
|
+
export { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple };
|
package/dist/types/targets.d.mts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type TargetTriple = (typeof AVAILABLE_TARGETS)[number];
|
|
4
|
-
declare const DEFAULT_TARGETS: readonly ["x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"];
|
|
5
|
-
type Platform = NodeJS.Platform | "wasm" | "wasi" | "wasip1" | "openharmony";
|
|
6
|
-
type NodeJSArch = "arm" | "arm64" | "ia32" | "loong64" | "mips" | "mipsel" | "ppc" | "ppc64" | "riscv64" | "s390" | "s390x" | "x32" | "x64" | "universal" | "wasm32";
|
|
7
|
-
interface Target {
|
|
8
|
-
triple: string;
|
|
9
|
-
platformArchABI: string;
|
|
10
|
-
platform: Platform;
|
|
11
|
-
arch: NodeJSArch;
|
|
12
|
-
abi: string | null;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple };
|
|
16
|
-
//# sourceMappingURL=targets.d.mts.map
|
|
1
|
+
import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "../targets-UYPuvlbd.mjs";
|
|
2
|
+
export { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple };
|
package/dist/types/wasm.d.cts
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Wasm Browser compilation options
|
|
4
|
-
*/
|
|
5
|
-
interface WasmBrowserOptions {
|
|
6
|
-
/**
|
|
7
|
-
* Whether to use fs module in browser
|
|
8
|
-
*/
|
|
9
|
-
fs?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Whether to initialize wasm asynchronously
|
|
12
|
-
*/
|
|
13
|
-
asyncInit?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Whether to inject `buffer` to emnapi context
|
|
16
|
-
*/
|
|
17
|
-
buffer?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Whether to emit custom events for errors in worker
|
|
20
|
-
*/
|
|
21
|
-
errorEvent?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Wasm compilation options
|
|
25
|
-
*/
|
|
26
|
-
interface WasmOptions {
|
|
27
|
-
/**
|
|
28
|
-
* https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory
|
|
29
|
-
*
|
|
30
|
-
* @defaultValue 4000 pages (256MiB)
|
|
31
|
-
*/
|
|
32
|
-
initialMemory?: number;
|
|
33
|
-
/**
|
|
34
|
-
* @defaultValue 65536 pages (4GiB)
|
|
35
|
-
*/
|
|
36
|
-
maximumMemory?: number;
|
|
37
|
-
/**
|
|
38
|
-
* Browser wasm binding configuration
|
|
39
|
-
*/
|
|
40
|
-
browser: WasmBrowserOptions;
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
export { WasmBrowserOptions, WasmOptions };
|
|
44
|
-
//# sourceMappingURL=wasm.d.cts.map
|
|
1
|
+
import { n as WasmOptions, t as WasmBrowserOptions } from "../wasm-CtwgfyF_.cjs";
|
|
2
|
+
export { WasmBrowserOptions, WasmOptions };
|
package/dist/types/wasm.d.mts
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Wasm Browser compilation options
|
|
4
|
-
*/
|
|
5
|
-
interface WasmBrowserOptions {
|
|
6
|
-
/**
|
|
7
|
-
* Whether to use fs module in browser
|
|
8
|
-
*/
|
|
9
|
-
fs?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Whether to initialize wasm asynchronously
|
|
12
|
-
*/
|
|
13
|
-
asyncInit?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Whether to inject `buffer` to emnapi context
|
|
16
|
-
*/
|
|
17
|
-
buffer?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Whether to emit custom events for errors in worker
|
|
20
|
-
*/
|
|
21
|
-
errorEvent?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Wasm compilation options
|
|
25
|
-
*/
|
|
26
|
-
interface WasmOptions {
|
|
27
|
-
/**
|
|
28
|
-
* https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory
|
|
29
|
-
*
|
|
30
|
-
* @defaultValue 4000 pages (256MiB)
|
|
31
|
-
*/
|
|
32
|
-
initialMemory?: number;
|
|
33
|
-
/**
|
|
34
|
-
* @defaultValue 65536 pages (4GiB)
|
|
35
|
-
*/
|
|
36
|
-
maximumMemory?: number;
|
|
37
|
-
/**
|
|
38
|
-
* Browser wasm binding configuration
|
|
39
|
-
*/
|
|
40
|
-
browser: WasmBrowserOptions;
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
export { WasmBrowserOptions, WasmOptions };
|
|
44
|
-
//# sourceMappingURL=wasm.d.mts.map
|
|
1
|
+
import { n as WasmOptions, t as WasmBrowserOptions } from "../wasm-CtwgfyF_.mjs";
|
|
2
|
+
export { WasmBrowserOptions, WasmOptions };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/types/wasm.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Wasm Browser compilation options
|
|
4
|
+
*/
|
|
5
|
+
interface WasmBrowserOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to use fs module in browser
|
|
8
|
+
*/
|
|
9
|
+
fs?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to initialize wasm asynchronously
|
|
12
|
+
*/
|
|
13
|
+
asyncInit?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to inject `buffer` to emnapi context
|
|
16
|
+
*/
|
|
17
|
+
buffer?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether to emit custom events for errors in worker
|
|
20
|
+
*/
|
|
21
|
+
errorEvent?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Wasm compilation options
|
|
25
|
+
*/
|
|
26
|
+
interface WasmOptions {
|
|
27
|
+
/**
|
|
28
|
+
* https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue 4000 pages (256MiB)
|
|
31
|
+
*/
|
|
32
|
+
initialMemory?: number;
|
|
33
|
+
/**
|
|
34
|
+
* @defaultValue 65536 pages (4GiB)
|
|
35
|
+
*/
|
|
36
|
+
maximumMemory?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Browser wasm binding configuration
|
|
39
|
+
*/
|
|
40
|
+
browser: WasmBrowserOptions;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { WasmOptions as n, WasmBrowserOptions as t };
|
|
44
|
+
//# sourceMappingURL=wasm-CtwgfyF_.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wasm-CtwgfyF_.d.cts","names":[],"sources":["../src/types/wasm.ts"],"mappings":";;;;UAqBiB;;;;EAIf;;;;EAKA;;;;EAKA;;;;EAKA;;;;;UAMe;;;;;;EAMf;;;;EAKA;;;;EAKA,SAAS"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/types/wasm.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Wasm Browser compilation options
|
|
4
|
+
*/
|
|
5
|
+
interface WasmBrowserOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to use fs module in browser
|
|
8
|
+
*/
|
|
9
|
+
fs?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to initialize wasm asynchronously
|
|
12
|
+
*/
|
|
13
|
+
asyncInit?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to inject `buffer` to emnapi context
|
|
16
|
+
*/
|
|
17
|
+
buffer?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether to emit custom events for errors in worker
|
|
20
|
+
*/
|
|
21
|
+
errorEvent?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Wasm compilation options
|
|
25
|
+
*/
|
|
26
|
+
interface WasmOptions {
|
|
27
|
+
/**
|
|
28
|
+
* https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue 4000 pages (256MiB)
|
|
31
|
+
*/
|
|
32
|
+
initialMemory?: number;
|
|
33
|
+
/**
|
|
34
|
+
* @defaultValue 65536 pages (4GiB)
|
|
35
|
+
*/
|
|
36
|
+
maximumMemory?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Browser wasm binding configuration
|
|
39
|
+
*/
|
|
40
|
+
browser: WasmBrowserOptions;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { WasmOptions as n, WasmBrowserOptions as t };
|
|
44
|
+
//# sourceMappingURL=wasm-CtwgfyF_.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wasm-CtwgfyF_.d.mts","names":[],"sources":["../src/types/wasm.ts"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-napi-rs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.266",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for integrating with N-API Rust modules.",
|
|
6
6
|
"keywords": ["napi-rs", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
"@alloy-js/json": "^0.24.0",
|
|
137
137
|
"@alloy-js/markdown": "^0.24.0",
|
|
138
138
|
"@alloy-js/typescript": "^0.24.0",
|
|
139
|
-
"@napi-rs/cli": "^3.8.
|
|
140
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
141
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
139
|
+
"@napi-rs/cli": "^3.8.5",
|
|
140
|
+
"@powerlines/plugin-alloy": "^0.26.306",
|
|
141
|
+
"@powerlines/plugin-automd": "^0.1.670",
|
|
142
142
|
"@stryke/convert": "^0.7.39",
|
|
143
143
|
"@stryke/fs": "^0.33.110",
|
|
144
144
|
"@stryke/path": "^0.29.35",
|
|
@@ -147,15 +147,15 @@
|
|
|
147
147
|
"@stryke/types": "^0.12.36",
|
|
148
148
|
"automd": "^0.4.3",
|
|
149
149
|
"defu": "^6.1.7",
|
|
150
|
-
"powerlines": "^0.47.
|
|
150
|
+
"powerlines": "^0.47.208"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
153
|
"@napi-rs/wasm-runtime": "^1.2.2",
|
|
154
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
154
|
+
"@powerlines/plugin-plugin": "^0.12.621",
|
|
155
155
|
"@types/node": "^25.9.5"
|
|
156
156
|
},
|
|
157
157
|
"peerDependencies": { "@napi-rs/wasm-runtime": ">=1.1.4" },
|
|
158
158
|
"peerDependenciesMeta": { "@napi-rs/wasm-runtime": { "optional": true } },
|
|
159
159
|
"publishConfig": { "access": "public" },
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "a060bb776b719e7628c30f82d4fb4305fbcd1581"
|
|
161
161
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;;;;;UA0CiB;;;;EAIf;;;;EAKA;;;;;;;EAQA;;;;;;;EAQA;;;;EAKA,SAAS,eAAe;;;;EAKxB,WAAW,eAAe;;;;EAK1B;;;;EAKA,OAAO;;;;EAKP;;;;EAKA,WAAW;;;;EAKX;;;;;;EAOA;;;;;;EAOA;;;;;;;;EASA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;KAGU,uBAAuB,wBACjC;EACE,MAAM;;KAGE,4BAA4B,KACtC,aACE;;;;EAaF,QAAQ;;;;EAKR,SAAS;;KAGC,2BAA2B,4BACrC;EACE,MAAM;;UAGO,kBACf,wBAAwB,2BAA2B,kCAGjD,mBAAmB,kBACnB,mBAAmB;EACrB,MAAM"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"targets.d.cts","names":[],"sources":["../../src/types/targets.ts"],"mappings":";cAkBa;KA2BD,uBAAuB;cAEtB;KAOD,WACV,OAAO;KAGJ;UAiBY;EACf;EACA;EACA,UAAU;EACV,MAAM;EACN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"targets.d.mts","names":[],"sources":["../../src/types/targets.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm.d.cts","names":[],"sources":["../../src/types/wasm.ts"],"mappings":";;;;UAqBiB;;;;EAIf;;;;EAKA;;;;EAKA;;;;EAKA;;;;;UAMe;;;;;;EAMf;;;;EAKA;;;;EAKA,SAAS"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm.d.mts","names":[],"sources":["../../src/types/wasm.ts"],"mappings":""}
|