@powerlines/plugin-capnp 0.1.679 → 0.1.681
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/index.cjs +2 -4
- package/dist/index.d.cts +0 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +1 -2
- package/dist/types/index.cjs +1 -1
- package/dist/types/plugin.d.cts +0 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +0 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -25,7 +25,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
enumerable: true
|
|
26
26
|
}) : target, mod));
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
let _stryke_capnp_compile = require("@stryke/capnp/compile");
|
|
30
29
|
let _stryke_capnp_helpers = require("@stryke/capnp/helpers");
|
|
31
30
|
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
@@ -36,7 +35,7 @@ let defu = require("defu");
|
|
|
36
35
|
defu = __toESM(defu, 1);
|
|
37
36
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
// src/index.ts
|
|
40
39
|
/**
|
|
41
40
|
* A Powerlines plugin to integrate Cap'n Proto for code generation.
|
|
42
41
|
*
|
|
@@ -78,5 +77,4 @@ const plugin = (options = {}) => {
|
|
|
78
77
|
};
|
|
79
78
|
};
|
|
80
79
|
|
|
81
|
-
//#endregion
|
|
82
80
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CapnpPluginContext, CapnpPluginOptions, CapnpPluginResolvedConfig, CapnpPluginUserConfig } from "./types/plugin.cjs";
|
|
2
2
|
import "./types/index.cjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
|
-
//#region src/index.d.ts
|
|
5
4
|
declare module "powerlines" {
|
|
6
5
|
interface Config {
|
|
7
6
|
capnp?: CapnpPluginOptions;
|
|
@@ -14,6 +13,5 @@ declare module "powerlines" {
|
|
|
14
13
|
* @returns A Powerlines plugin instance.
|
|
15
14
|
*/
|
|
16
15
|
declare const plugin: <TContext extends CapnpPluginContext = CapnpPluginContext>(options?: CapnpPluginOptions) => Plugin<TContext>;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { type CapnpPluginContext, type CapnpPluginOptions, type CapnpPluginResolvedConfig, type CapnpPluginUserConfig, plugin };
|
|
19
17
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;YAgCY;IACR,QAAQ;;;;;;;;;cAUC,SACX,iBAAiB,qBAAqB,oBAEtC,UAAS,uBACR,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CapnpPluginContext, CapnpPluginOptions, CapnpPluginResolvedConfig, CapnpPluginUserConfig } from "./types/plugin.mjs";
|
|
2
2
|
import "./types/index.mjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
|
-
//#region src/index.d.ts
|
|
5
4
|
declare module "powerlines" {
|
|
6
5
|
interface Config {
|
|
7
6
|
capnp?: CapnpPluginOptions;
|
|
@@ -14,6 +13,5 @@ declare module "powerlines" {
|
|
|
14
13
|
* @returns A Powerlines plugin instance.
|
|
15
14
|
*/
|
|
16
15
|
declare const plugin: <TContext extends CapnpPluginContext = CapnpPluginContext>(options?: CapnpPluginOptions) => Plugin<TContext>;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { type CapnpPluginContext, type CapnpPluginOptions, type CapnpPluginResolvedConfig, type CapnpPluginUserConfig, plugin };
|
|
19
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { replacePath } from "@stryke/path/replace";
|
|
|
7
7
|
import defu from "defu";
|
|
8
8
|
import { replacePathTokens } from "powerlines/plugin-utils";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/index.ts
|
|
11
11
|
/**
|
|
12
12
|
* A Powerlines plugin to integrate Cap'n Proto for code generation.
|
|
13
13
|
*
|
|
@@ -49,6 +49,5 @@ const plugin = (options = {}) => {
|
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
//#endregion
|
|
53
52
|
export { plugin };
|
|
54
53
|
//# sourceMappingURL=index.mjs.map
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("./plugin.cjs");
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
2
|
import { CapnpcOptions } from "@stryke/capnp/types";
|
|
3
|
-
//#region src/types/plugin.d.ts
|
|
4
3
|
type CapnpPluginOptions = Partial<Omit<CapnpcOptions, "workspaceRoot" | "projectRoot" | "schemas">> & {
|
|
5
4
|
/**
|
|
6
5
|
* The path to the Cap'n Proto schema file(s).
|
|
@@ -25,6 +24,5 @@ type CapnpPluginResolvedConfig = ResolvedConfig & {
|
|
|
25
24
|
capnp: Omit<CapnpPluginOptions, "schema" | "outputPath"> & Required<Pick<CapnpPluginOptions, "schema" | "outputPath">>;
|
|
26
25
|
};
|
|
27
26
|
type CapnpPluginContext<TResolvedConfig extends CapnpPluginResolvedConfig = CapnpPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
28
|
-
//#endregion
|
|
29
27
|
export { CapnpPluginContext, CapnpPluginOptions, CapnpPluginResolvedConfig, CapnpPluginUserConfig };
|
|
30
28
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -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":";;KAqBY,qBAAqB,QAC/B,KAAK;;;;;;EAOL,kBAAkB;;;;;;;;;EAUlB;;KAGU,wBAAwB;EAClC,QAAQ,KAAK,+CACX,SAAS,KAAK;;KAGN,4BAA4B;EACtC,OAAO,KAAK,+CACV,SAAS,KAAK;;KAGN,mBACV,wBAAwB,4BAA4B,6BAClD,cAAc"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
2
|
import { CapnpcOptions } from "@stryke/capnp/types";
|
|
3
|
-
//#region src/types/plugin.d.ts
|
|
4
3
|
type CapnpPluginOptions = Partial<Omit<CapnpcOptions, "workspaceRoot" | "projectRoot" | "schemas">> & {
|
|
5
4
|
/**
|
|
6
5
|
* The path to the Cap'n Proto schema file(s).
|
|
@@ -25,6 +24,5 @@ type CapnpPluginResolvedConfig = ResolvedConfig & {
|
|
|
25
24
|
capnp: Omit<CapnpPluginOptions, "schema" | "outputPath"> & Required<Pick<CapnpPluginOptions, "schema" | "outputPath">>;
|
|
26
25
|
};
|
|
27
26
|
type CapnpPluginContext<TResolvedConfig extends CapnpPluginResolvedConfig = CapnpPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
28
|
-
//#endregion
|
|
29
27
|
export { CapnpPluginContext, CapnpPluginOptions, CapnpPluginResolvedConfig, CapnpPluginUserConfig };
|
|
30
28
|
//# sourceMappingURL=plugin.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-capnp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.681",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from Cap'n Proto schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
"@stryke/types": "^0.12.44",
|
|
96
96
|
"defu": "^6.1.7",
|
|
97
97
|
"jiti": "^2.7.0",
|
|
98
|
-
"powerlines": "^0.47.
|
|
98
|
+
"powerlines": "^0.47.216"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
101
|
+
"@powerlines/plugin-plugin": "^0.12.629",
|
|
102
102
|
"@types/node": "^25.9.9"
|
|
103
103
|
},
|
|
104
104
|
"publishConfig": { "access": "public" },
|
|
105
105
|
"types": "./dist/index.d.cts",
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
|
|
107
107
|
}
|