@powerlines/plugin-napi-rs 0.2.194 → 0.2.196
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 -0
- package/dist/helpers/format-path.d.cts.map +1 -1
- package/dist/helpers/format-path.d.mts +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -0
- package/dist/types/plugin.d.cts +0 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +0 -1
- package/dist/types/targets.d.cts.map +1 -1
- package/dist/types/wasm.d.cts.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-path.d.cts","names":[],"sources":["../../src/helpers/format-path.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-path.d.cts","names":[],"sources":["../../src/helpers/format-path.ts"],"mappings":";;;;;;;;;;;;;iBAiCgB,WACd,SAAS,mBACT,eACA"}
|
package/dist/index.cjs
CHANGED
|
@@ -36,6 +36,8 @@ const plugin = (options = {}) => {
|
|
|
36
36
|
else this.config.napi.targets = require_types_targets.DEFAULT_TARGETS.map((target) => (0, _napi_rs_cli.parseTriple)(target));
|
|
37
37
|
if (!this.config.napi.profile && this.additionalArgs.profile && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.profile) || Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0)) this.config.napi.profile = Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0 ? this.additionalArgs.profile[0] : String(this.additionalArgs.profile);
|
|
38
38
|
if (!this.config.napi.release && this.additionalArgs.release) this.config.napi.release = Boolean(this.additionalArgs.release);
|
|
39
|
+
if (!this.config.napi.crossCompile && this.additionalArgs.crossCompile) this.config.napi.crossCompile = Boolean(this.additionalArgs.crossCompile);
|
|
40
|
+
if (!this.config.napi.useNapiCross && this.additionalArgs.useNapiCross) this.config.napi.useNapiCross = Boolean(this.additionalArgs.useNapiCross);
|
|
39
41
|
if (!this.config.napi.configPath && this.additionalArgs.configPath && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.configPath) || Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0)) this.config.napi.configPath = Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0 ? this.additionalArgs.configPath[0] : String(this.additionalArgs.configPath);
|
|
40
42
|
if (!this.config.napi.manifestPath && this.additionalArgs.manifestPath && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.manifestPath) || Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0)) this.config.napi.manifestPath = Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0 ? this.additionalArgs.manifestPath[0] : String(this.additionalArgs.manifestPath);
|
|
41
43
|
if (!this.config.napi.npmDir && this.additionalArgs.npmDir && ((0, _stryke_type_checks_is_string.isString)(this.additionalArgs.npmDir) || Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0)) this.config.napi.npmDir = Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0 ? this.additionalArgs.npmDir[0] : String(this.additionalArgs.npmDir);
|
|
@@ -95,6 +97,8 @@ const plugin = (options = {}) => {
|
|
|
95
97
|
jsBinding: this.config.napi.jsBinding,
|
|
96
98
|
dts: this.config.napi.dts,
|
|
97
99
|
dtsCache: this.config.napi.dtsCache ?? !this.config.skipCache,
|
|
100
|
+
crossCompile: this.config.napi.crossCompile,
|
|
101
|
+
useNapiCross: this.config.napi.useNapiCross,
|
|
98
102
|
verbose: (0, powerlines_plugin_utils.isVerbose)(this)
|
|
99
103
|
});
|
|
100
104
|
const outputs = await task;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple } from "./types/targets.cjs";
|
|
2
2
|
import { WasmBrowserOptions, WasmOptions } from "./types/wasm.cjs";
|
|
3
3
|
import { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions } from "./types/plugin.cjs";
|
|
4
|
+
import "./types/index.cjs";
|
|
4
5
|
import { Plugin } from "powerlines";
|
|
5
|
-
|
|
6
6
|
//#region src/index.d.ts
|
|
7
7
|
declare module "powerlines" {
|
|
8
8
|
interface Config {
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAkCY
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;YAkCY;IACR,OAAO;;;;;;;;cASE,SAAU,iBAAiB,oBAAoB,mBAC1D,UAAS,sBAsQJ,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AVAILABLE_TARGETS, DEFAULT_TARGETS, Platform, Target, TargetTriple } from "./types/targets.mjs";
|
|
2
2
|
import { WasmBrowserOptions, WasmOptions } from "./types/wasm.mjs";
|
|
3
3
|
import { NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions } from "./types/plugin.mjs";
|
|
4
|
+
import "./types/index.mjs";
|
|
4
5
|
import { Plugin } from "powerlines";
|
|
5
|
-
|
|
6
6
|
//#region src/index.d.ts
|
|
7
7
|
declare module "powerlines" {
|
|
8
8
|
interface Config {
|
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,8 @@ const plugin = (options = {}) => {
|
|
|
35
35
|
else this.config.napi.targets = DEFAULT_TARGETS.map((target) => parseTriple(target));
|
|
36
36
|
if (!this.config.napi.profile && this.additionalArgs.profile && (isString(this.additionalArgs.profile) || Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0)) this.config.napi.profile = Array.isArray(this.additionalArgs.profile) && this.additionalArgs.profile.length > 0 ? this.additionalArgs.profile[0] : String(this.additionalArgs.profile);
|
|
37
37
|
if (!this.config.napi.release && this.additionalArgs.release) this.config.napi.release = Boolean(this.additionalArgs.release);
|
|
38
|
+
if (!this.config.napi.crossCompile && this.additionalArgs.crossCompile) this.config.napi.crossCompile = Boolean(this.additionalArgs.crossCompile);
|
|
39
|
+
if (!this.config.napi.useNapiCross && this.additionalArgs.useNapiCross) this.config.napi.useNapiCross = Boolean(this.additionalArgs.useNapiCross);
|
|
38
40
|
if (!this.config.napi.configPath && this.additionalArgs.configPath && (isString(this.additionalArgs.configPath) || Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0)) this.config.napi.configPath = Array.isArray(this.additionalArgs.configPath) && this.additionalArgs.configPath.length > 0 ? this.additionalArgs.configPath[0] : String(this.additionalArgs.configPath);
|
|
39
41
|
if (!this.config.napi.manifestPath && this.additionalArgs.manifestPath && (isString(this.additionalArgs.manifestPath) || Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0)) this.config.napi.manifestPath = Array.isArray(this.additionalArgs.manifestPath) && this.additionalArgs.manifestPath.length > 0 ? this.additionalArgs.manifestPath[0] : String(this.additionalArgs.manifestPath);
|
|
40
42
|
if (!this.config.napi.npmDir && this.additionalArgs.npmDir && (isString(this.additionalArgs.npmDir) || Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0)) this.config.napi.npmDir = Array.isArray(this.additionalArgs.npmDir) && this.additionalArgs.npmDir.length > 0 ? this.additionalArgs.npmDir[0] : String(this.additionalArgs.npmDir);
|
|
@@ -94,6 +96,8 @@ const plugin = (options = {}) => {
|
|
|
94
96
|
jsBinding: this.config.napi.jsBinding,
|
|
95
97
|
dts: this.config.napi.dts,
|
|
96
98
|
dtsCache: this.config.napi.dtsCache ?? !this.config.skipCache,
|
|
99
|
+
crossCompile: this.config.napi.crossCompile,
|
|
100
|
+
useNapiCross: this.config.napi.useNapiCross,
|
|
97
101
|
verbose: isVerbose(this)
|
|
98
102
|
});
|
|
99
103
|
const outputs = await task;
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -4,7 +4,6 @@ import { NapiCli } from "@napi-rs/cli";
|
|
|
4
4
|
import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
5
5
|
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
|
|
6
6
|
import { RequiredKeys } from "@stryke/types/base";
|
|
7
|
-
|
|
8
7
|
//#region src/types/plugin.d.ts
|
|
9
8
|
/**
|
|
10
9
|
* The options for the N-API Rust plugin.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;;;;;UAyCiB;;;;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"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import { NapiCli } from "@napi-rs/cli";
|
|
|
4
4
|
import { AlloyPluginContext, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
5
5
|
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
|
|
6
6
|
import { RequiredKeys } from "@stryke/types/base";
|
|
7
|
-
|
|
8
7
|
//#region src/types/plugin.d.ts
|
|
9
8
|
/**
|
|
10
9
|
* The options for the N-API Rust plugin.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targets.d.cts","names":[],"sources":["../../src/types/targets.ts"],"mappings":";cAkBa
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wasm.d.cts","names":[],"sources":["../../src/types/wasm.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wasm.d.cts","names":[],"sources":["../../src/types/wasm.ts"],"mappings":";;;;UAqBiB;;;;EAIf;;;;EAKA;;;;EAKA;;;;EAKA;;;;;UAMe;;;;;;EAMf;;;;EAKA;;;;EAKA,SAAS"}
|
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.196",
|
|
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"],
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
"@alloy-js/markdown": "^0.23.0",
|
|
138
138
|
"@alloy-js/typescript": "^0.23.0",
|
|
139
139
|
"@napi-rs/cli": "^3.7.2",
|
|
140
|
-
"@powerlines/plugin-alloy": "0.26.
|
|
141
|
-
"@powerlines/plugin-automd": "0.1.
|
|
142
|
-
"@powerlines/plugin-plugin": "0.12.
|
|
140
|
+
"@powerlines/plugin-alloy": "^0.26.236",
|
|
141
|
+
"@powerlines/plugin-automd": "^0.1.604",
|
|
142
|
+
"@powerlines/plugin-plugin": "^0.12.555",
|
|
143
143
|
"@stryke/convert": "^0.7.26",
|
|
144
144
|
"@stryke/fs": "^0.33.96",
|
|
145
145
|
"@stryke/path": "^0.29.22",
|
|
@@ -148,14 +148,14 @@
|
|
|
148
148
|
"@stryke/types": "^0.12.23",
|
|
149
149
|
"automd": "^0.4.3",
|
|
150
150
|
"defu": "^6.1.7",
|
|
151
|
-
"powerlines": "0.47.
|
|
151
|
+
"powerlines": "^0.47.143"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
154
|
"@napi-rs/wasm-runtime": "^1.1.6",
|
|
155
|
-
"@types/node": "^25.9.
|
|
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": "cea2b02d3fb6556ff2e53576b6a17787b4e28d67"
|
|
161
161
|
}
|