@powerlines/plugin-tsup 0.12.242 → 0.12.244
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/unplugin.cjs +2 -3
- package/dist/helpers/unplugin.mjs +1 -2
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/types/plugin.d.cts +4 -4
- package/dist/types/plugin.d.mts +4 -4
- package/package.json +97 -16
- package/dist/powerlines/package.cjs +0 -11
- package/dist/powerlines/package.mjs +0 -5
- package/dist/powerlines/schemas/fs.cjs +0 -226
- package/dist/powerlines/schemas/fs.mjs +0 -224
- package/dist/powerlines/src/api.cjs +0 -568
- package/dist/powerlines/src/api.mjs +0 -566
- package/dist/powerlines/src/internal/helpers/environment.cjs +0 -50
- package/dist/powerlines/src/internal/helpers/environment.mjs +0 -47
- package/dist/powerlines/src/internal/helpers/generate-types.cjs +0 -78
- package/dist/powerlines/src/internal/helpers/generate-types.mjs +0 -76
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -65
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -63
- package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +0 -24
- package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +0 -23
- package/dist/powerlines/src/internal/helpers/install.cjs +0 -36
- package/dist/powerlines/src/internal/helpers/install.mjs +0 -35
- package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +0 -97
- package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +0 -93
- package/dist/powerlines/src/internal/helpers/resolver.cjs +0 -43
- package/dist/powerlines/src/internal/helpers/resolver.mjs +0 -41
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -28
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -26
- package/dist/powerlines/src/lib/build/tsup.cjs +0 -81
- package/dist/powerlines/src/lib/build/tsup.mjs +0 -78
- package/dist/powerlines/src/lib/config-file.cjs +0 -79
- package/dist/powerlines/src/lib/config-file.mjs +0 -76
- package/dist/powerlines/src/lib/constants/environments.cjs +0 -8
- package/dist/powerlines/src/lib/constants/environments.mjs +0 -6
- package/dist/powerlines/src/lib/contexts/api-context.cjs +0 -184
- package/dist/powerlines/src/lib/contexts/api-context.mjs +0 -182
- package/dist/powerlines/src/lib/contexts/context.cjs +0 -951
- package/dist/powerlines/src/lib/contexts/context.mjs +0 -949
- package/dist/powerlines/src/lib/contexts/environment-context.cjs +0 -195
- package/dist/powerlines/src/lib/contexts/environment-context.mjs +0 -194
- package/dist/powerlines/src/lib/contexts/plugin-context.cjs +0 -78
- package/dist/powerlines/src/lib/contexts/plugin-context.mjs +0 -77
- package/dist/powerlines/src/lib/entry.cjs +0 -86
- package/dist/powerlines/src/lib/entry.mjs +0 -83
- package/dist/powerlines/src/lib/fs/helpers.cjs +0 -85
- package/dist/powerlines/src/lib/fs/helpers.mjs +0 -81
- package/dist/powerlines/src/lib/fs/storage/base.cjs +0 -196
- package/dist/powerlines/src/lib/fs/storage/base.mjs +0 -195
- package/dist/powerlines/src/lib/fs/storage/file-system.cjs +0 -170
- package/dist/powerlines/src/lib/fs/storage/file-system.mjs +0 -169
- package/dist/powerlines/src/lib/fs/storage/virtual.cjs +0 -88
- package/dist/powerlines/src/lib/fs/storage/virtual.mjs +0 -87
- package/dist/powerlines/src/lib/fs/vfs.cjs +0 -912
- package/dist/powerlines/src/lib/fs/vfs.mjs +0 -910
- package/dist/powerlines/src/lib/logger.cjs +0 -58
- package/dist/powerlines/src/lib/logger.mjs +0 -55
- package/dist/powerlines/src/lib/typescript/ts-morph.cjs +0 -103
- package/dist/powerlines/src/lib/typescript/ts-morph.mjs +0 -101
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -149
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -144
- package/dist/powerlines/src/lib/unplugin/factory.cjs +0 -6
- package/dist/powerlines/src/lib/unplugin/factory.mjs +0 -8
- package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -29
- package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -27
- package/dist/powerlines/src/lib/unplugin/index.cjs +0 -4
- package/dist/powerlines/src/lib/unplugin/index.mjs +0 -6
- package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +0 -66
- package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +0 -65
- package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -71
- package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -70
- package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
- package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
- package/dist/powerlines/src/lib/utilities/format.cjs +0 -48
- package/dist/powerlines/src/lib/utilities/format.mjs +0 -46
- package/dist/powerlines/src/lib/utilities/meta.cjs +0 -44
- package/dist/powerlines/src/lib/utilities/meta.mjs +0 -40
- package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -22
- package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -21
- package/dist/powerlines/src/plugin-utils/helpers.cjs +0 -167
- package/dist/powerlines/src/plugin-utils/helpers.mjs +0 -156
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -36
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -35
- package/dist/powerlines/src/types/api.d.cts +0 -104
- package/dist/powerlines/src/types/api.d.mts +0 -104
- package/dist/powerlines/src/types/babel.d.mts +0 -2
- package/dist/powerlines/src/types/build.cjs +0 -23
- package/dist/powerlines/src/types/build.d.cts +0 -185
- package/dist/powerlines/src/types/build.d.mts +0 -185
- package/dist/powerlines/src/types/build.mjs +0 -21
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/config.d.cts +0 -424
- package/dist/powerlines/src/types/config.d.mts +0 -424
- package/dist/powerlines/src/types/context.d.cts +0 -514
- package/dist/powerlines/src/types/context.d.mts +0 -514
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.cts +0 -32
- package/dist/powerlines/src/types/hooks.d.mts +0 -32
- package/dist/powerlines/src/types/plugin.cjs +0 -33
- package/dist/powerlines/src/types/plugin.d.cts +0 -205
- package/dist/powerlines/src/types/plugin.d.mts +0 -205
- package/dist/powerlines/src/types/plugin.mjs +0 -32
- package/dist/powerlines/src/types/resolved.d.cts +0 -93
- package/dist/powerlines/src/types/resolved.d.mts +0 -93
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/powerlines/src/types/unplugin.d.cts +0 -22
- package/dist/powerlines/src/types/unplugin.d.mts +0 -23
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
require('../powerlines/src/lib/unplugin/index.cjs');
|
|
2
|
+
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
4
3
|
let unplugin = require("unplugin");
|
|
5
4
|
|
|
6
5
|
//#region src/helpers/unplugin.ts
|
|
7
6
|
function createTsupPlugin(context) {
|
|
8
|
-
return (0, unplugin.createEsbuildPlugin)(
|
|
7
|
+
return (0, unplugin.createEsbuildPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createUnplugin } from "
|
|
2
|
-
import "../powerlines/src/lib/unplugin/index.mjs";
|
|
1
|
+
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
3
2
|
import { createEsbuildPlugin } from "unplugin";
|
|
4
3
|
|
|
5
4
|
//#region src/helpers/unplugin.ts
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const require_tsup = require('./powerlines/src/lib/build/tsup.cjs');
|
|
4
3
|
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
5
4
|
require('./helpers/index.cjs');
|
|
6
5
|
let __storm_software_tsup = require("@storm-software/tsup");
|
|
7
6
|
let __stryke_path_append = require("@stryke/path/append");
|
|
8
7
|
let defu = require("defu");
|
|
9
8
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
9
|
+
let powerlines_lib_build_tsup = require("powerlines/lib/build/tsup");
|
|
10
10
|
|
|
11
11
|
//#region src/index.ts
|
|
12
12
|
/**
|
|
@@ -28,7 +28,7 @@ const plugin = (options = {}) => {
|
|
|
28
28
|
async build() {
|
|
29
29
|
return (0, __storm_software_tsup.build)(await (0, __storm_software_tsup.resolveOptions)((0, defu.default)({
|
|
30
30
|
config: false,
|
|
31
|
-
entry: Object.fromEntries(Object.entries(
|
|
31
|
+
entry: Object.fromEntries(Object.entries((0, powerlines_lib_build_tsup.resolveTsupEntry)(this, this.entry)).map(([key, value]) => [key, (0, __stryke_path_append.appendPath)(value, this.config.projectRoot)])),
|
|
32
32
|
esbuildOptions: (options$1, ctx) => {
|
|
33
33
|
if (this.config.build.variant === "tsup") {
|
|
34
34
|
if (this.config.build.esbuildOptions) this.config.build.esbuildOptions?.(options$1, ctx);
|
|
@@ -44,7 +44,7 @@ const plugin = (options = {}) => {
|
|
|
44
44
|
},
|
|
45
45
|
silent: false,
|
|
46
46
|
verbose: true
|
|
47
|
-
},
|
|
47
|
+
}, (0, powerlines_lib_build_tsup.extractTsupConfig)(this), { esbuildPlugins: [require_helpers_unplugin.createTsupPlugin(this)] })));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
2
1
|
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.cjs";
|
|
3
2
|
import { createTsupPlugin } from "./helpers/unplugin.cjs";
|
|
3
|
+
import "./helpers/index.cjs";
|
|
4
|
+
import "./types/index.cjs";
|
|
5
|
+
import { Plugin } from "powerlines/types/plugin";
|
|
4
6
|
|
|
5
7
|
//#region src/index.d.ts
|
|
6
|
-
|
|
7
8
|
/**
|
|
8
9
|
* A Powerlines plugin to use Tsup to build the project.
|
|
9
10
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
1
|
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.mjs";
|
|
3
2
|
import { createTsupPlugin } from "./helpers/unplugin.mjs";
|
|
4
3
|
import "./helpers/index.mjs";
|
|
5
4
|
import "./types/index.mjs";
|
|
5
|
+
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
8
8
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { extractTsupConfig, resolveTsupEntry } from "./powerlines/src/lib/build/tsup.mjs";
|
|
2
1
|
import { createTsupPlugin } from "./helpers/unplugin.mjs";
|
|
3
2
|
import "./helpers/index.mjs";
|
|
4
3
|
import { build, resolveOptions } from "@storm-software/tsup";
|
|
5
4
|
import { appendPath } from "@stryke/path/append";
|
|
6
|
-
import defu
|
|
5
|
+
import defu from "defu";
|
|
6
|
+
import { extractTsupConfig, resolveTsupEntry } from "powerlines/lib/build/tsup";
|
|
7
7
|
|
|
8
8
|
//#region src/index.ts
|
|
9
9
|
/**
|
|
@@ -23,7 +23,7 @@ const plugin = (options = {}) => {
|
|
|
23
23
|
};
|
|
24
24
|
},
|
|
25
25
|
async build() {
|
|
26
|
-
return build(await resolveOptions(defu
|
|
26
|
+
return build(await resolveOptions(defu({
|
|
27
27
|
config: false,
|
|
28
28
|
entry: Object.fromEntries(Object.entries(resolveTsupEntry(this, this.entry)).map(([key, value]) => [key, appendPath(value, this.config.projectRoot)])),
|
|
29
29
|
esbuildOptions: (options$1, ctx) => {
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TsupBuildConfig } from "
|
|
2
|
-
import {
|
|
3
|
-
import { PluginContext } from "
|
|
4
|
-
import {
|
|
1
|
+
import { TsupBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { TsupUserConfig } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { TsupResolvedConfig } from "powerlines/types/resolved";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type TsupPluginOptions = Partial<TsupBuildConfig>;
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TsupBuildConfig } from "
|
|
2
|
-
import {
|
|
3
|
-
import { PluginContext } from "
|
|
4
|
-
import {
|
|
1
|
+
import { TsupBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { TsupUserConfig } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { TsupResolvedConfig } from "powerlines/types/resolved";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type TsupPluginOptions = Partial<TsupBuildConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsup",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.244",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -41,42 +41,123 @@
|
|
|
41
41
|
"main": "./dist/index.cjs",
|
|
42
42
|
"module": "./dist/index.mjs",
|
|
43
43
|
"exports": {
|
|
44
|
-
".": {
|
|
44
|
+
".": {
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/index.d.cts",
|
|
47
|
+
"default": "./dist/index.cjs"
|
|
48
|
+
},
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./dist/index.d.mts",
|
|
51
|
+
"default": "./dist/index.mjs"
|
|
52
|
+
},
|
|
53
|
+
"default": {
|
|
54
|
+
"types": "./dist/index.d.mts",
|
|
55
|
+
"default": "./dist/index.mjs"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
45
58
|
"./helpers": {
|
|
46
|
-
"require":
|
|
47
|
-
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./dist/helpers/index.d.cts",
|
|
61
|
+
"default": "./dist/helpers/index.cjs"
|
|
62
|
+
},
|
|
63
|
+
"import": {
|
|
64
|
+
"types": "./dist/helpers/index.d.mts",
|
|
65
|
+
"default": "./dist/helpers/index.mjs"
|
|
66
|
+
},
|
|
67
|
+
"default": {
|
|
68
|
+
"types": "./dist/helpers/index.d.mts",
|
|
69
|
+
"default": "./dist/helpers/index.mjs"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"./helpers/*": {
|
|
73
|
+
"require": {
|
|
74
|
+
"types": "./dist/helpers/*.d.cts",
|
|
75
|
+
"default": "./dist/helpers/*.cjs"
|
|
76
|
+
},
|
|
77
|
+
"import": {
|
|
78
|
+
"types": "./dist/helpers/*.d.mts",
|
|
79
|
+
"default": "./dist/helpers/*.mjs"
|
|
80
|
+
},
|
|
81
|
+
"default": {
|
|
82
|
+
"types": "./dist/helpers/*.d.mts",
|
|
83
|
+
"default": "./dist/helpers/*.mjs"
|
|
84
|
+
}
|
|
48
85
|
},
|
|
49
86
|
"./helpers/unplugin": {
|
|
50
|
-
"require":
|
|
51
|
-
|
|
87
|
+
"require": {
|
|
88
|
+
"types": "./dist/helpers/unplugin.d.cts",
|
|
89
|
+
"default": "./dist/helpers/unplugin.cjs"
|
|
90
|
+
},
|
|
91
|
+
"import": {
|
|
92
|
+
"types": "./dist/helpers/unplugin.d.mts",
|
|
93
|
+
"default": "./dist/helpers/unplugin.mjs"
|
|
94
|
+
},
|
|
95
|
+
"default": {
|
|
96
|
+
"types": "./dist/helpers/unplugin.d.mts",
|
|
97
|
+
"default": "./dist/helpers/unplugin.mjs"
|
|
98
|
+
}
|
|
52
99
|
},
|
|
100
|
+
"./package.json": "./package.json",
|
|
53
101
|
"./types": {
|
|
54
|
-
"require":
|
|
55
|
-
|
|
102
|
+
"require": {
|
|
103
|
+
"types": "./dist/types/index.d.cts",
|
|
104
|
+
"default": "./dist/types/index.cjs"
|
|
105
|
+
},
|
|
106
|
+
"import": {
|
|
107
|
+
"types": "./dist/types/index.d.mts",
|
|
108
|
+
"default": "./dist/types/index.mjs"
|
|
109
|
+
},
|
|
110
|
+
"default": {
|
|
111
|
+
"types": "./dist/types/index.d.mts",
|
|
112
|
+
"default": "./dist/types/index.mjs"
|
|
113
|
+
}
|
|
56
114
|
},
|
|
57
|
-
"./types
|
|
58
|
-
"require":
|
|
59
|
-
|
|
115
|
+
"./types/*": {
|
|
116
|
+
"require": {
|
|
117
|
+
"types": "./dist/types/*.d.cts",
|
|
118
|
+
"default": "./dist/types/*.cjs"
|
|
119
|
+
},
|
|
120
|
+
"import": {
|
|
121
|
+
"types": "./dist/types/*.d.mts",
|
|
122
|
+
"default": "./dist/types/*.mjs"
|
|
123
|
+
},
|
|
124
|
+
"default": {
|
|
125
|
+
"types": "./dist/types/*.d.mts",
|
|
126
|
+
"default": "./dist/types/*.mjs"
|
|
127
|
+
}
|
|
60
128
|
},
|
|
61
|
-
"./
|
|
129
|
+
"./types/plugin": {
|
|
130
|
+
"require": {
|
|
131
|
+
"types": "./dist/types/plugin.d.cts",
|
|
132
|
+
"default": "./dist/types/plugin.cjs"
|
|
133
|
+
},
|
|
134
|
+
"import": {
|
|
135
|
+
"types": "./dist/types/plugin.d.mts",
|
|
136
|
+
"default": "./dist/types/plugin.mjs"
|
|
137
|
+
},
|
|
138
|
+
"default": {
|
|
139
|
+
"types": "./dist/types/plugin.d.mts",
|
|
140
|
+
"default": "./dist/types/plugin.mjs"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
62
143
|
},
|
|
63
144
|
"typings": "dist/index.d.mts",
|
|
64
145
|
"files": ["dist/**/*"],
|
|
65
146
|
"keywords": ["tsup", "powerlines", "storm-software", "powerlines-plugin"],
|
|
66
147
|
"dependencies": {
|
|
67
148
|
"@storm-software/tsup": "^0.2.79",
|
|
68
|
-
"@stryke/path": "^0.26.
|
|
149
|
+
"@stryke/path": "^0.26.3",
|
|
69
150
|
"@stryke/type-checks": "^0.5.22",
|
|
70
151
|
"@stryke/types": "^0.10.36",
|
|
71
152
|
"defu": "^6.1.4",
|
|
72
|
-
"powerlines": "^0.38.
|
|
153
|
+
"powerlines": "^0.38.1",
|
|
73
154
|
"unplugin": "3.0.0-beta.3"
|
|
74
155
|
},
|
|
75
156
|
"devDependencies": {
|
|
76
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
157
|
+
"@powerlines/plugin-plugin": "^0.12.185",
|
|
77
158
|
"@types/node": "^24.10.9"
|
|
78
159
|
},
|
|
79
160
|
"publishConfig": { "access": "public" },
|
|
80
161
|
"types": "./dist/index.d.cts",
|
|
81
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "2a4d9ef63cc29e4551fa9f680ea63874c7f48d2d"
|
|
82
163
|
}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __stryke_capnp = require("@stryke/capnp");
|
|
3
|
-
__stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
|
|
4
|
-
|
|
5
|
-
//#region ../powerlines/schemas/fs.ts
|
|
6
|
-
var FileMetadata_KeyValuePair = class extends __stryke_capnp.Struct {
|
|
7
|
-
static _capnp = {
|
|
8
|
-
displayName: "KeyValuePair",
|
|
9
|
-
id: "eabb26cf58b2a14c",
|
|
10
|
-
size: new __stryke_capnp.ObjectSize(0, 2)
|
|
11
|
-
};
|
|
12
|
-
get key() {
|
|
13
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
14
|
-
}
|
|
15
|
-
set key(value) {
|
|
16
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
17
|
-
}
|
|
18
|
-
get value() {
|
|
19
|
-
return __stryke_capnp.utils.getText(1, this);
|
|
20
|
-
}
|
|
21
|
-
set value(value) {
|
|
22
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
23
|
-
}
|
|
24
|
-
toString() {
|
|
25
|
-
return "FileMetadata_KeyValuePair_" + super.toString();
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* The identifier for the file data.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
var FileMetadata = class FileMetadata extends __stryke_capnp.Struct {
|
|
33
|
-
static KeyValuePair = FileMetadata_KeyValuePair;
|
|
34
|
-
static _capnp = {
|
|
35
|
-
displayName: "FileMetadata",
|
|
36
|
-
id: "8e2cab5d7e28c7b3",
|
|
37
|
-
size: new __stryke_capnp.ObjectSize(8, 3),
|
|
38
|
-
defaultType: "normal"
|
|
39
|
-
};
|
|
40
|
-
static _Properties;
|
|
41
|
-
/**
|
|
42
|
-
* The type of the file.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
get id() {
|
|
46
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
47
|
-
}
|
|
48
|
-
set id(value) {
|
|
49
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* The timestamp representing the file's creation date.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
get type() {
|
|
56
|
-
return __stryke_capnp.utils.getText(1, this, FileMetadata._capnp.defaultType);
|
|
57
|
-
}
|
|
58
|
-
set type(value) {
|
|
59
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Additional metadata associated with the file.
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
get timestamp() {
|
|
66
|
-
return __stryke_capnp.utils.getUint32(0, this);
|
|
67
|
-
}
|
|
68
|
-
set timestamp(value) {
|
|
69
|
-
__stryke_capnp.utils.setUint32(0, value, this);
|
|
70
|
-
}
|
|
71
|
-
_adoptProperties(value) {
|
|
72
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(2, this));
|
|
73
|
-
}
|
|
74
|
-
_disownProperties() {
|
|
75
|
-
return __stryke_capnp.utils.disown(this.properties);
|
|
76
|
-
}
|
|
77
|
-
get properties() {
|
|
78
|
-
return __stryke_capnp.utils.getList(2, FileMetadata._Properties, this);
|
|
79
|
-
}
|
|
80
|
-
_hasProperties() {
|
|
81
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(2, this));
|
|
82
|
-
}
|
|
83
|
-
_initProperties(length) {
|
|
84
|
-
return __stryke_capnp.utils.initList(2, FileMetadata._Properties, length, this);
|
|
85
|
-
}
|
|
86
|
-
set properties(value) {
|
|
87
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(2, this));
|
|
88
|
-
}
|
|
89
|
-
toString() {
|
|
90
|
-
return "FileMetadata_" + super.toString();
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* An identifier for the file.
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
var FileId = class extends __stryke_capnp.Struct {
|
|
98
|
-
static _capnp = {
|
|
99
|
-
displayName: "FileId",
|
|
100
|
-
id: "990d6a471072f997",
|
|
101
|
-
size: new __stryke_capnp.ObjectSize(0, 2)
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* A virtual (or actual) path to the file in the file system.
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
get id() {
|
|
108
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
109
|
-
}
|
|
110
|
-
set id(value) {
|
|
111
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
112
|
-
}
|
|
113
|
-
get path() {
|
|
114
|
-
return __stryke_capnp.utils.getText(1, this);
|
|
115
|
-
}
|
|
116
|
-
set path(value) {
|
|
117
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
118
|
-
}
|
|
119
|
-
toString() {
|
|
120
|
-
return "FileId_" + super.toString();
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* An identifier for the file.
|
|
125
|
-
*
|
|
126
|
-
*/
|
|
127
|
-
var FileStorage = class extends __stryke_capnp.Struct {
|
|
128
|
-
static _capnp = {
|
|
129
|
-
displayName: "FileStorage",
|
|
130
|
-
id: "9dca66ac858c9ebe",
|
|
131
|
-
size: new __stryke_capnp.ObjectSize(0, 2)
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* A virtual (or actual) path to the file in the file system.
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
get path() {
|
|
138
|
-
return __stryke_capnp.utils.getText(0, this);
|
|
139
|
-
}
|
|
140
|
-
set path(value) {
|
|
141
|
-
__stryke_capnp.utils.setText(0, value, this);
|
|
142
|
-
}
|
|
143
|
-
get code() {
|
|
144
|
-
return __stryke_capnp.utils.getText(1, this);
|
|
145
|
-
}
|
|
146
|
-
set code(value) {
|
|
147
|
-
__stryke_capnp.utils.setText(1, value, this);
|
|
148
|
-
}
|
|
149
|
-
toString() {
|
|
150
|
-
return "FileStorage_" + super.toString();
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
var FileSystem = class FileSystem extends __stryke_capnp.Struct {
|
|
154
|
-
static _capnp = {
|
|
155
|
-
displayName: "FileSystem",
|
|
156
|
-
id: "ae0c23d43e56abcf",
|
|
157
|
-
size: new __stryke_capnp.ObjectSize(0, 3)
|
|
158
|
-
};
|
|
159
|
-
static _Ids;
|
|
160
|
-
static _Storage;
|
|
161
|
-
static _Metadata;
|
|
162
|
-
_adoptIds(value) {
|
|
163
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(0, this));
|
|
164
|
-
}
|
|
165
|
-
_disownIds() {
|
|
166
|
-
return __stryke_capnp.utils.disown(this.ids);
|
|
167
|
-
}
|
|
168
|
-
get ids() {
|
|
169
|
-
return __stryke_capnp.utils.getList(0, FileSystem._Ids, this);
|
|
170
|
-
}
|
|
171
|
-
_hasIds() {
|
|
172
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(0, this));
|
|
173
|
-
}
|
|
174
|
-
_initIds(length) {
|
|
175
|
-
return __stryke_capnp.utils.initList(0, FileSystem._Ids, length, this);
|
|
176
|
-
}
|
|
177
|
-
set ids(value) {
|
|
178
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(0, this));
|
|
179
|
-
}
|
|
180
|
-
_adoptStorage(value) {
|
|
181
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(1, this));
|
|
182
|
-
}
|
|
183
|
-
_disownStorage() {
|
|
184
|
-
return __stryke_capnp.utils.disown(this.storage);
|
|
185
|
-
}
|
|
186
|
-
get storage() {
|
|
187
|
-
return __stryke_capnp.utils.getList(1, FileSystem._Storage, this);
|
|
188
|
-
}
|
|
189
|
-
_hasStorage() {
|
|
190
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(1, this));
|
|
191
|
-
}
|
|
192
|
-
_initStorage(length) {
|
|
193
|
-
return __stryke_capnp.utils.initList(1, FileSystem._Storage, length, this);
|
|
194
|
-
}
|
|
195
|
-
set storage(value) {
|
|
196
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(1, this));
|
|
197
|
-
}
|
|
198
|
-
_adoptMetadata(value) {
|
|
199
|
-
__stryke_capnp.utils.adopt(value, __stryke_capnp.utils.getPointer(2, this));
|
|
200
|
-
}
|
|
201
|
-
_disownMetadata() {
|
|
202
|
-
return __stryke_capnp.utils.disown(this.metadata);
|
|
203
|
-
}
|
|
204
|
-
get metadata() {
|
|
205
|
-
return __stryke_capnp.utils.getList(2, FileSystem._Metadata, this);
|
|
206
|
-
}
|
|
207
|
-
_hasMetadata() {
|
|
208
|
-
return !__stryke_capnp.utils.isNull(__stryke_capnp.utils.getPointer(2, this));
|
|
209
|
-
}
|
|
210
|
-
_initMetadata(length) {
|
|
211
|
-
return __stryke_capnp.utils.initList(2, FileSystem._Metadata, length, this);
|
|
212
|
-
}
|
|
213
|
-
set metadata(value) {
|
|
214
|
-
__stryke_capnp.utils.copyFrom(value, __stryke_capnp.utils.getPointer(2, this));
|
|
215
|
-
}
|
|
216
|
-
toString() {
|
|
217
|
-
return "FileSystem_" + super.toString();
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
FileMetadata._Properties = __stryke_capnp.CompositeList(FileMetadata_KeyValuePair);
|
|
221
|
-
FileSystem._Ids = __stryke_capnp.CompositeList(FileId);
|
|
222
|
-
FileSystem._Storage = __stryke_capnp.CompositeList(FileStorage);
|
|
223
|
-
FileSystem._Metadata = __stryke_capnp.CompositeList(FileMetadata);
|
|
224
|
-
|
|
225
|
-
//#endregion
|
|
226
|
-
exports.FileSystem = FileSystem;
|