@rexeus/typeweaver-gen 0.3.2 → 0.4.1
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 +40 -90
- package/dist/index.js +20 -40
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -1,44 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var fs = require('node:fs');
|
|
4
|
+
var path3 = require('node:path');
|
|
5
|
+
var ejs = require('ejs');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
8
|
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
__export(index_exports, {
|
|
33
|
-
BasePlugin: () => BasePlugin,
|
|
34
|
-
BaseTemplatePlugin: () => BaseTemplatePlugin,
|
|
35
|
-
Path: () => Path,
|
|
36
|
-
PluginContextBuilder: () => PluginContextBuilder,
|
|
37
|
-
PluginDependencyError: () => PluginDependencyError,
|
|
38
|
-
PluginLoadError: () => PluginLoadError,
|
|
39
|
-
PluginRegistry: () => PluginRegistry
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(index_exports);
|
|
9
|
+
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
10
|
+
var path3__default = /*#__PURE__*/_interopDefault(path3);
|
|
42
11
|
|
|
43
12
|
// src/plugins/types.ts
|
|
44
13
|
var PluginLoadError = class extends Error {
|
|
@@ -58,10 +27,6 @@ var PluginDependencyError = class extends Error {
|
|
|
58
27
|
this.name = "PluginDependencyError";
|
|
59
28
|
}
|
|
60
29
|
};
|
|
61
|
-
|
|
62
|
-
// src/plugins/BasePlugin.ts
|
|
63
|
-
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
64
|
-
var import_node_path = __toESM(require("node:path"), 1);
|
|
65
30
|
var BasePlugin = class {
|
|
66
31
|
description;
|
|
67
32
|
author;
|
|
@@ -90,32 +55,27 @@ var BasePlugin = class {
|
|
|
90
55
|
* Copy lib files from plugin package to generated lib folder
|
|
91
56
|
*/
|
|
92
57
|
copyLibFiles(context, libSourceDir, libNamespace) {
|
|
93
|
-
const libDir =
|
|
94
|
-
|
|
95
|
-
if (
|
|
96
|
-
const files =
|
|
58
|
+
const libDir = path3__default.default.join(context.outputDir, "lib", libNamespace);
|
|
59
|
+
fs__default.default.mkdirSync(libDir, { recursive: true });
|
|
60
|
+
if (fs__default.default.existsSync(libSourceDir)) {
|
|
61
|
+
const files = fs__default.default.readdirSync(libSourceDir);
|
|
97
62
|
for (const file of files) {
|
|
98
|
-
const sourcePath =
|
|
99
|
-
const targetPath =
|
|
100
|
-
if (
|
|
101
|
-
|
|
63
|
+
const sourcePath = path3__default.default.join(libSourceDir, file);
|
|
64
|
+
const targetPath = path3__default.default.join(libDir, file);
|
|
65
|
+
if (fs__default.default.statSync(sourcePath).isFile()) {
|
|
66
|
+
fs__default.default.copyFileSync(sourcePath, targetPath);
|
|
102
67
|
}
|
|
103
68
|
}
|
|
104
69
|
}
|
|
105
70
|
}
|
|
106
71
|
};
|
|
107
|
-
|
|
108
|
-
// src/plugins/BaseTemplatePlugin.ts
|
|
109
|
-
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
110
|
-
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
111
|
-
var import_ejs = require("ejs");
|
|
112
72
|
var BaseTemplatePlugin = class extends BasePlugin {
|
|
113
73
|
/**
|
|
114
74
|
* Render an EJS template with the given data
|
|
115
75
|
*/
|
|
116
76
|
renderTemplate(templatePath, data) {
|
|
117
|
-
const template =
|
|
118
|
-
return
|
|
77
|
+
const template = fs__default.default.readFileSync(templatePath, "utf8");
|
|
78
|
+
return ejs.render(template, data);
|
|
119
79
|
}
|
|
120
80
|
/**
|
|
121
81
|
* Write a file relative to the output directory
|
|
@@ -127,14 +87,14 @@ var BaseTemplatePlugin = class extends BasePlugin {
|
|
|
127
87
|
* Ensure a directory exists
|
|
128
88
|
*/
|
|
129
89
|
ensureDir(context, relativePath) {
|
|
130
|
-
const fullPath =
|
|
131
|
-
|
|
90
|
+
const fullPath = path3__default.default.join(context.outputDir, relativePath);
|
|
91
|
+
fs__default.default.mkdirSync(fullPath, { recursive: true });
|
|
132
92
|
}
|
|
133
93
|
/**
|
|
134
94
|
* Get the template path for this plugin
|
|
135
95
|
*/
|
|
136
96
|
getTemplatePath(context, templateName) {
|
|
137
|
-
return
|
|
97
|
+
return path3__default.default.join(context.templateDir, templateName);
|
|
138
98
|
}
|
|
139
99
|
};
|
|
140
100
|
|
|
@@ -187,11 +147,6 @@ var PluginRegistry = class {
|
|
|
187
147
|
this.plugins.clear();
|
|
188
148
|
}
|
|
189
149
|
};
|
|
190
|
-
|
|
191
|
-
// src/plugins/PluginContext.ts
|
|
192
|
-
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
193
|
-
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
194
|
-
var import_ejs2 = require("ejs");
|
|
195
150
|
var PluginContextBuilder = class {
|
|
196
151
|
generatedFiles = /* @__PURE__ */ new Set();
|
|
197
152
|
/**
|
|
@@ -216,17 +171,17 @@ var PluginContextBuilder = class {
|
|
|
216
171
|
coreDir: params.coreDir,
|
|
217
172
|
// Utility functions
|
|
218
173
|
writeFile: (relativePath, content) => {
|
|
219
|
-
const fullPath =
|
|
220
|
-
const dir =
|
|
221
|
-
|
|
222
|
-
|
|
174
|
+
const fullPath = path3__default.default.join(params.outputDir, relativePath);
|
|
175
|
+
const dir = path3__default.default.dirname(fullPath);
|
|
176
|
+
fs__default.default.mkdirSync(dir, { recursive: true });
|
|
177
|
+
fs__default.default.writeFileSync(fullPath, content);
|
|
223
178
|
this.generatedFiles.add(relativePath);
|
|
224
179
|
console.info(`Generated: ${relativePath}`);
|
|
225
180
|
},
|
|
226
181
|
renderTemplate: (templatePath, data) => {
|
|
227
|
-
const fullTemplatePath =
|
|
228
|
-
const template =
|
|
229
|
-
return
|
|
182
|
+
const fullTemplatePath = path3__default.default.isAbsolute(templatePath) ? templatePath : path3__default.default.join(params.templateDir, templatePath);
|
|
183
|
+
const template = fs__default.default.readFileSync(fullTemplatePath, "utf8");
|
|
184
|
+
return ejs.render(template, data);
|
|
230
185
|
},
|
|
231
186
|
addGeneratedFile: (relativePath) => {
|
|
232
187
|
this.generatedFiles.add(relativePath);
|
|
@@ -249,16 +204,13 @@ var PluginContextBuilder = class {
|
|
|
249
204
|
this.generatedFiles.clear();
|
|
250
205
|
}
|
|
251
206
|
};
|
|
252
|
-
|
|
253
|
-
// src/helpers/Path.ts
|
|
254
|
-
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
255
207
|
var Path = class {
|
|
256
208
|
static relative(from, to) {
|
|
257
|
-
const relativePath =
|
|
209
|
+
const relativePath = path3__default.default.relative(from, to);
|
|
258
210
|
if (relativePath.includes("node_modules")) {
|
|
259
|
-
const parts = relativePath.split(
|
|
211
|
+
const parts = relativePath.split(path3__default.default.sep);
|
|
260
212
|
const index = parts.indexOf("node_modules");
|
|
261
|
-
return parts.slice(index + 1).join(
|
|
213
|
+
return parts.slice(index + 1).join(path3__default.default.sep);
|
|
262
214
|
}
|
|
263
215
|
if (!relativePath.startsWith("./") && !relativePath.startsWith("../")) {
|
|
264
216
|
return `./${relativePath}`;
|
|
@@ -266,13 +218,11 @@ var Path = class {
|
|
|
266
218
|
return relativePath;
|
|
267
219
|
}
|
|
268
220
|
};
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
PluginRegistry
|
|
278
|
-
});
|
|
221
|
+
|
|
222
|
+
exports.BasePlugin = BasePlugin;
|
|
223
|
+
exports.BaseTemplatePlugin = BaseTemplatePlugin;
|
|
224
|
+
exports.Path = Path;
|
|
225
|
+
exports.PluginContextBuilder = PluginContextBuilder;
|
|
226
|
+
exports.PluginDependencyError = PluginDependencyError;
|
|
227
|
+
exports.PluginLoadError = PluginLoadError;
|
|
228
|
+
exports.PluginRegistry = PluginRegistry;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path3 from 'node:path';
|
|
3
|
+
import { render } from 'ejs';
|
|
4
|
+
|
|
1
5
|
// src/plugins/types.ts
|
|
2
6
|
var PluginLoadError = class extends Error {
|
|
3
7
|
constructor(pluginName, message) {
|
|
@@ -16,10 +20,6 @@ var PluginDependencyError = class extends Error {
|
|
|
16
20
|
this.name = "PluginDependencyError";
|
|
17
21
|
}
|
|
18
22
|
};
|
|
19
|
-
|
|
20
|
-
// src/plugins/BasePlugin.ts
|
|
21
|
-
import fs from "node:fs";
|
|
22
|
-
import path from "node:path";
|
|
23
23
|
var BasePlugin = class {
|
|
24
24
|
description;
|
|
25
25
|
author;
|
|
@@ -48,13 +48,13 @@ var BasePlugin = class {
|
|
|
48
48
|
* Copy lib files from plugin package to generated lib folder
|
|
49
49
|
*/
|
|
50
50
|
copyLibFiles(context, libSourceDir, libNamespace) {
|
|
51
|
-
const libDir =
|
|
51
|
+
const libDir = path3.join(context.outputDir, "lib", libNamespace);
|
|
52
52
|
fs.mkdirSync(libDir, { recursive: true });
|
|
53
53
|
if (fs.existsSync(libSourceDir)) {
|
|
54
54
|
const files = fs.readdirSync(libSourceDir);
|
|
55
55
|
for (const file of files) {
|
|
56
|
-
const sourcePath =
|
|
57
|
-
const targetPath =
|
|
56
|
+
const sourcePath = path3.join(libSourceDir, file);
|
|
57
|
+
const targetPath = path3.join(libDir, file);
|
|
58
58
|
if (fs.statSync(sourcePath).isFile()) {
|
|
59
59
|
fs.copyFileSync(sourcePath, targetPath);
|
|
60
60
|
}
|
|
@@ -62,17 +62,12 @@ var BasePlugin = class {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
// src/plugins/BaseTemplatePlugin.ts
|
|
67
|
-
import fs2 from "node:fs";
|
|
68
|
-
import path2 from "node:path";
|
|
69
|
-
import { render } from "ejs";
|
|
70
65
|
var BaseTemplatePlugin = class extends BasePlugin {
|
|
71
66
|
/**
|
|
72
67
|
* Render an EJS template with the given data
|
|
73
68
|
*/
|
|
74
69
|
renderTemplate(templatePath, data) {
|
|
75
|
-
const template =
|
|
70
|
+
const template = fs.readFileSync(templatePath, "utf8");
|
|
76
71
|
return render(template, data);
|
|
77
72
|
}
|
|
78
73
|
/**
|
|
@@ -85,14 +80,14 @@ var BaseTemplatePlugin = class extends BasePlugin {
|
|
|
85
80
|
* Ensure a directory exists
|
|
86
81
|
*/
|
|
87
82
|
ensureDir(context, relativePath) {
|
|
88
|
-
const fullPath =
|
|
89
|
-
|
|
83
|
+
const fullPath = path3.join(context.outputDir, relativePath);
|
|
84
|
+
fs.mkdirSync(fullPath, { recursive: true });
|
|
90
85
|
}
|
|
91
86
|
/**
|
|
92
87
|
* Get the template path for this plugin
|
|
93
88
|
*/
|
|
94
89
|
getTemplatePath(context, templateName) {
|
|
95
|
-
return
|
|
90
|
+
return path3.join(context.templateDir, templateName);
|
|
96
91
|
}
|
|
97
92
|
};
|
|
98
93
|
|
|
@@ -145,11 +140,6 @@ var PluginRegistry = class {
|
|
|
145
140
|
this.plugins.clear();
|
|
146
141
|
}
|
|
147
142
|
};
|
|
148
|
-
|
|
149
|
-
// src/plugins/PluginContext.ts
|
|
150
|
-
import fs3 from "node:fs";
|
|
151
|
-
import path3 from "node:path";
|
|
152
|
-
import { render as render2 } from "ejs";
|
|
153
143
|
var PluginContextBuilder = class {
|
|
154
144
|
generatedFiles = /* @__PURE__ */ new Set();
|
|
155
145
|
/**
|
|
@@ -176,15 +166,15 @@ var PluginContextBuilder = class {
|
|
|
176
166
|
writeFile: (relativePath, content) => {
|
|
177
167
|
const fullPath = path3.join(params.outputDir, relativePath);
|
|
178
168
|
const dir = path3.dirname(fullPath);
|
|
179
|
-
|
|
180
|
-
|
|
169
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
170
|
+
fs.writeFileSync(fullPath, content);
|
|
181
171
|
this.generatedFiles.add(relativePath);
|
|
182
172
|
console.info(`Generated: ${relativePath}`);
|
|
183
173
|
},
|
|
184
174
|
renderTemplate: (templatePath, data) => {
|
|
185
175
|
const fullTemplatePath = path3.isAbsolute(templatePath) ? templatePath : path3.join(params.templateDir, templatePath);
|
|
186
|
-
const template =
|
|
187
|
-
return
|
|
176
|
+
const template = fs.readFileSync(fullTemplatePath, "utf8");
|
|
177
|
+
return render(template, data);
|
|
188
178
|
},
|
|
189
179
|
addGeneratedFile: (relativePath) => {
|
|
190
180
|
this.generatedFiles.add(relativePath);
|
|
@@ -207,16 +197,13 @@ var PluginContextBuilder = class {
|
|
|
207
197
|
this.generatedFiles.clear();
|
|
208
198
|
}
|
|
209
199
|
};
|
|
210
|
-
|
|
211
|
-
// src/helpers/Path.ts
|
|
212
|
-
import path4 from "node:path";
|
|
213
200
|
var Path = class {
|
|
214
201
|
static relative(from, to) {
|
|
215
|
-
const relativePath =
|
|
202
|
+
const relativePath = path3.relative(from, to);
|
|
216
203
|
if (relativePath.includes("node_modules")) {
|
|
217
|
-
const parts = relativePath.split(
|
|
204
|
+
const parts = relativePath.split(path3.sep);
|
|
218
205
|
const index = parts.indexOf("node_modules");
|
|
219
|
-
return parts.slice(index + 1).join(
|
|
206
|
+
return parts.slice(index + 1).join(path3.sep);
|
|
220
207
|
}
|
|
221
208
|
if (!relativePath.startsWith("./") && !relativePath.startsWith("../")) {
|
|
222
209
|
return `./${relativePath}`;
|
|
@@ -224,12 +211,5 @@ var Path = class {
|
|
|
224
211
|
return relativePath;
|
|
225
212
|
}
|
|
226
213
|
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
BaseTemplatePlugin,
|
|
230
|
-
Path,
|
|
231
|
-
PluginContextBuilder,
|
|
232
|
-
PluginDependencyError,
|
|
233
|
-
PluginLoadError,
|
|
234
|
-
PluginRegistry
|
|
235
|
-
};
|
|
214
|
+
|
|
215
|
+
export { BasePlugin, BaseTemplatePlugin, Path, PluginContextBuilder, PluginDependencyError, PluginLoadError, PluginRegistry };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js":{"bytes":569,"imports":[],"format":"esm"},"src/Resource.ts":{"bytes":1587,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/types.ts":{"bytes":2732,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/BasePlugin.ts":{"bytes":2072,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/BaseTemplatePlugin.ts":{"bytes":1312,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"src/plugins/BasePlugin.ts","kind":"import-statement","original":"./BasePlugin"},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/PluginRegistry.ts":{"bytes":1322,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/PluginContext.ts":{"bytes":2430,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/index.ts":{"bytes":234,"imports":[{"path":"src/plugins/types.ts","kind":"import-statement","original":"./types"},{"path":"src/plugins/BasePlugin.ts","kind":"import-statement","original":"./BasePlugin"},{"path":"src/plugins/BaseTemplatePlugin.ts","kind":"import-statement","original":"./BaseTemplatePlugin"},{"path":"src/plugins/PluginRegistry.ts","kind":"import-statement","original":"./PluginRegistry"},{"path":"src/plugins/PluginContext.ts","kind":"import-statement","original":"./PluginContext"},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/helpers/Path.ts":{"bytes":595,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":87,"imports":[{"path":"src/Resource.ts","kind":"import-statement","original":"./Resource"},{"path":"src/plugins/index.ts","kind":"import-statement","original":"./plugins"},{"path":"src/helpers/Path.ts","kind":"import-statement","original":"./helpers/Path"},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.cjs":{"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["BasePlugin","BaseTemplatePlugin","Path","PluginContextBuilder","PluginDependencyError","PluginLoadError","PluginRegistry"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/plugins/types.ts":{"bytesInOutput":551},"src/plugins/index.ts":{"bytesInOutput":0},"src/plugins/BasePlugin.ts":{"bytesInOutput":1145},"src/plugins/BaseTemplatePlugin.ts":{"bytesInOutput":861},"src/plugins/PluginRegistry.ts":{"bytesInOutput":950},"src/plugins/PluginContext.ts":{"bytesInOutput":1785},"src/helpers/Path.ts":{"bytesInOutput":490}},"bytes":6106}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js":{"bytes":322,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true}],"format":"esm"},"src/Resource.ts":{"bytes":1587,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/types.ts":{"bytes":2732,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/BasePlugin.ts":{"bytes":2072,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/BaseTemplatePlugin.ts":{"bytes":1312,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"src/plugins/BasePlugin.ts","kind":"import-statement","original":"./BasePlugin"},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/PluginRegistry.ts":{"bytes":1322,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/PluginContext.ts":{"bytes":2430,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugins/index.ts":{"bytes":234,"imports":[{"path":"src/plugins/types.ts","kind":"import-statement","original":"./types"},{"path":"src/plugins/BasePlugin.ts","kind":"import-statement","original":"./BasePlugin"},{"path":"src/plugins/BaseTemplatePlugin.ts","kind":"import-statement","original":"./BaseTemplatePlugin"},{"path":"src/plugins/PluginRegistry.ts","kind":"import-statement","original":"./PluginRegistry"},{"path":"src/plugins/PluginContext.ts","kind":"import-statement","original":"./PluginContext"},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/helpers/Path.ts":{"bytes":595,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":87,"imports":[{"path":"src/Resource.ts","kind":"import-statement","original":"./Resource"},{"path":"src/plugins/index.ts","kind":"import-statement","original":"./plugins"},{"path":"src/helpers/Path.ts","kind":"import-statement","original":"./helpers/Path"},{"path":"/home/runner/work/typeweaver/typeweaver/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"ejs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["BasePlugin","BaseTemplatePlugin","Path","PluginContextBuilder","PluginDependencyError","PluginLoadError","PluginRegistry"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/plugins/types.ts":{"bytesInOutput":551},"src/plugins/index.ts":{"bytesInOutput":0},"src/plugins/BasePlugin.ts":{"bytesInOutput":1145},"src/plugins/BaseTemplatePlugin.ts":{"bytesInOutput":861},"src/plugins/PluginRegistry.ts":{"bytesInOutput":950},"src/plugins/PluginContext.ts":{"bytesInOutput":1785},"src/helpers/Path.ts":{"bytesInOutput":490}},"bytes":6106}}}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rexeus/typeweaver-gen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Template-driven engine that turns structured API definitions into production-ready artifacts. Powered by Typeweaver 🧵✨",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
6
7
|
"main": "dist/index.cjs",
|
|
7
8
|
"module": "dist/index.js",
|
|
8
9
|
"types": "dist/index.d.ts",
|
|
@@ -46,10 +47,10 @@
|
|
|
46
47
|
},
|
|
47
48
|
"homepage": "https://github.com/rexeus/typeweaver#readme",
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"@rexeus/typeweaver-core": "^0.
|
|
50
|
+
"@rexeus/typeweaver-core": "^0.4.1"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@rexeus/typeweaver-core": "^0.
|
|
53
|
+
"@rexeus/typeweaver-core": "^0.4.1"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"ejs": "^3.1.10"
|