@rexeus/typeweaver-gen 0.4.2 → 0.5.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/README.md +3 -2
- package/dist/LICENSE +1 -1
- package/dist/NOTICE +1 -1
- package/dist/index.cjs +21 -16
- package/dist/index.js +20 -15
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -24,7 +24,8 @@ npm install -D @rexeus/typeweaver-gen
|
|
|
24
24
|
## 💡 How to use
|
|
25
25
|
|
|
26
26
|
Most users don’t depend on this package directly — use the CLI instead:
|
|
27
|
-
[`@rexeus/typeweaver`](https://github.com/rexeus/typeweaver/tree/main/packages/cli/README.md). If
|
|
27
|
+
[`@rexeus/typeweaver`](https://github.com/rexeus/typeweaver/tree/main/packages/cli/README.md). If
|
|
28
|
+
you’re writing a plugin, start here.
|
|
28
29
|
|
|
29
30
|
### 🚀 Minimal plugin
|
|
30
31
|
|
|
@@ -147,4 +148,4 @@ output.
|
|
|
147
148
|
|
|
148
149
|
## 📄 License
|
|
149
150
|
|
|
150
|
-
Apache 2.0 © Dennis Wentzien
|
|
151
|
+
Apache 2.0 © Dennis Wentzien 2026
|
package/dist/LICENSE
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
same "printed page" as the copyright notice for easier
|
|
188
188
|
identification within third-party archives.
|
|
189
189
|
|
|
190
|
-
Copyright
|
|
190
|
+
Copyright 2026 Dennis Wentzien
|
|
191
191
|
|
|
192
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
193
|
you may not use this file except in compliance with the License.
|
package/dist/NOTICE
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('node:fs');
|
|
4
|
-
var
|
|
4
|
+
var path = require('node:path');
|
|
5
5
|
var ejs = require('ejs');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
9
9
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
10
|
-
var
|
|
10
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
11
11
|
|
|
12
12
|
// src/plugins/types.ts
|
|
13
13
|
var PluginLoadError = class extends Error {
|
|
@@ -55,17 +55,21 @@ var BasePlugin = class {
|
|
|
55
55
|
* Copy lib files from plugin package to generated lib folder
|
|
56
56
|
*/
|
|
57
57
|
copyLibFiles(context, libSourceDir, libNamespace) {
|
|
58
|
-
const libDir =
|
|
58
|
+
const libDir = path__default.default.join(context.outputDir, "lib", libNamespace);
|
|
59
59
|
fs__default.default.mkdirSync(libDir, { recursive: true });
|
|
60
60
|
if (fs__default.default.existsSync(libSourceDir)) {
|
|
61
61
|
const files = fs__default.default.readdirSync(libSourceDir);
|
|
62
62
|
for (const file of files) {
|
|
63
|
-
const sourcePath =
|
|
64
|
-
const targetPath =
|
|
63
|
+
const sourcePath = path__default.default.join(libSourceDir, file);
|
|
64
|
+
const targetPath = path__default.default.join(libDir, file);
|
|
65
65
|
if (fs__default.default.statSync(sourcePath).isFile()) {
|
|
66
66
|
fs__default.default.copyFileSync(sourcePath, targetPath);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
const libIndexPath = path__default.default.join("lib", libNamespace, "index.ts");
|
|
70
|
+
if (fs__default.default.existsSync(path__default.default.join(libDir, "index.ts"))) {
|
|
71
|
+
context.addGeneratedFile(libIndexPath);
|
|
72
|
+
}
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
75
|
};
|
|
@@ -87,14 +91,14 @@ var BaseTemplatePlugin = class extends BasePlugin {
|
|
|
87
91
|
* Ensure a directory exists
|
|
88
92
|
*/
|
|
89
93
|
ensureDir(context, relativePath) {
|
|
90
|
-
const fullPath =
|
|
94
|
+
const fullPath = path__default.default.join(context.outputDir, relativePath);
|
|
91
95
|
fs__default.default.mkdirSync(fullPath, { recursive: true });
|
|
92
96
|
}
|
|
93
97
|
/**
|
|
94
98
|
* Get the template path for this plugin
|
|
95
99
|
*/
|
|
96
100
|
getTemplatePath(context, templateName) {
|
|
97
|
-
return
|
|
101
|
+
return path__default.default.join(context.templateDir, templateName);
|
|
98
102
|
}
|
|
99
103
|
};
|
|
100
104
|
|
|
@@ -171,15 +175,15 @@ var PluginContextBuilder = class {
|
|
|
171
175
|
coreDir: params.coreDir,
|
|
172
176
|
// Utility functions
|
|
173
177
|
writeFile: (relativePath, content) => {
|
|
174
|
-
const fullPath =
|
|
175
|
-
const dir =
|
|
178
|
+
const fullPath = path__default.default.join(params.outputDir, relativePath);
|
|
179
|
+
const dir = path__default.default.dirname(fullPath);
|
|
176
180
|
fs__default.default.mkdirSync(dir, { recursive: true });
|
|
177
181
|
fs__default.default.writeFileSync(fullPath, content);
|
|
178
182
|
this.generatedFiles.add(relativePath);
|
|
179
183
|
console.info(`Generated: ${relativePath}`);
|
|
180
184
|
},
|
|
181
185
|
renderTemplate: (templatePath, data) => {
|
|
182
|
-
const fullTemplatePath =
|
|
186
|
+
const fullTemplatePath = path__default.default.isAbsolute(templatePath) ? templatePath : path__default.default.join(params.templateDir, templatePath);
|
|
183
187
|
const template = fs__default.default.readFileSync(fullTemplatePath, "utf8");
|
|
184
188
|
return ejs.render(template, data);
|
|
185
189
|
},
|
|
@@ -206,16 +210,17 @@ var PluginContextBuilder = class {
|
|
|
206
210
|
};
|
|
207
211
|
var Path = class {
|
|
208
212
|
static relative(from, to) {
|
|
209
|
-
const relativePath =
|
|
213
|
+
const relativePath = path__default.default.relative(from, to);
|
|
210
214
|
if (relativePath.includes("node_modules")) {
|
|
211
|
-
const parts = relativePath.split(
|
|
215
|
+
const parts = relativePath.split(path__default.default.sep);
|
|
212
216
|
const index = parts.indexOf("node_modules");
|
|
213
|
-
return parts.slice(index + 1).join(
|
|
217
|
+
return parts.slice(index + 1).join("/");
|
|
214
218
|
}
|
|
215
|
-
|
|
216
|
-
|
|
219
|
+
const posixPath = relativePath.split(path__default.default.sep).join("/");
|
|
220
|
+
if (!posixPath.startsWith("./") && !posixPath.startsWith("../")) {
|
|
221
|
+
return `./${posixPath}`;
|
|
217
222
|
}
|
|
218
|
-
return
|
|
223
|
+
return posixPath;
|
|
219
224
|
}
|
|
220
225
|
};
|
|
221
226
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import
|
|
2
|
+
import path from 'node:path';
|
|
3
3
|
import { render } from 'ejs';
|
|
4
4
|
|
|
5
5
|
// src/plugins/types.ts
|
|
@@ -48,17 +48,21 @@ 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 = path.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 = path.join(libSourceDir, file);
|
|
57
|
+
const targetPath = path.join(libDir, file);
|
|
58
58
|
if (fs.statSync(sourcePath).isFile()) {
|
|
59
59
|
fs.copyFileSync(sourcePath, targetPath);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
+
const libIndexPath = path.join("lib", libNamespace, "index.ts");
|
|
63
|
+
if (fs.existsSync(path.join(libDir, "index.ts"))) {
|
|
64
|
+
context.addGeneratedFile(libIndexPath);
|
|
65
|
+
}
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
};
|
|
@@ -80,14 +84,14 @@ var BaseTemplatePlugin = class extends BasePlugin {
|
|
|
80
84
|
* Ensure a directory exists
|
|
81
85
|
*/
|
|
82
86
|
ensureDir(context, relativePath) {
|
|
83
|
-
const fullPath =
|
|
87
|
+
const fullPath = path.join(context.outputDir, relativePath);
|
|
84
88
|
fs.mkdirSync(fullPath, { recursive: true });
|
|
85
89
|
}
|
|
86
90
|
/**
|
|
87
91
|
* Get the template path for this plugin
|
|
88
92
|
*/
|
|
89
93
|
getTemplatePath(context, templateName) {
|
|
90
|
-
return
|
|
94
|
+
return path.join(context.templateDir, templateName);
|
|
91
95
|
}
|
|
92
96
|
};
|
|
93
97
|
|
|
@@ -164,15 +168,15 @@ var PluginContextBuilder = class {
|
|
|
164
168
|
coreDir: params.coreDir,
|
|
165
169
|
// Utility functions
|
|
166
170
|
writeFile: (relativePath, content) => {
|
|
167
|
-
const fullPath =
|
|
168
|
-
const dir =
|
|
171
|
+
const fullPath = path.join(params.outputDir, relativePath);
|
|
172
|
+
const dir = path.dirname(fullPath);
|
|
169
173
|
fs.mkdirSync(dir, { recursive: true });
|
|
170
174
|
fs.writeFileSync(fullPath, content);
|
|
171
175
|
this.generatedFiles.add(relativePath);
|
|
172
176
|
console.info(`Generated: ${relativePath}`);
|
|
173
177
|
},
|
|
174
178
|
renderTemplate: (templatePath, data) => {
|
|
175
|
-
const fullTemplatePath =
|
|
179
|
+
const fullTemplatePath = path.isAbsolute(templatePath) ? templatePath : path.join(params.templateDir, templatePath);
|
|
176
180
|
const template = fs.readFileSync(fullTemplatePath, "utf8");
|
|
177
181
|
return render(template, data);
|
|
178
182
|
},
|
|
@@ -199,16 +203,17 @@ var PluginContextBuilder = class {
|
|
|
199
203
|
};
|
|
200
204
|
var Path = class {
|
|
201
205
|
static relative(from, to) {
|
|
202
|
-
const relativePath =
|
|
206
|
+
const relativePath = path.relative(from, to);
|
|
203
207
|
if (relativePath.includes("node_modules")) {
|
|
204
|
-
const parts = relativePath.split(
|
|
208
|
+
const parts = relativePath.split(path.sep);
|
|
205
209
|
const index = parts.indexOf("node_modules");
|
|
206
|
-
return parts.slice(index + 1).join(
|
|
210
|
+
return parts.slice(index + 1).join("/");
|
|
207
211
|
}
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
const posixPath = relativePath.split(path.sep).join("/");
|
|
213
|
+
if (!posixPath.startsWith("./") && !posixPath.startsWith("../")) {
|
|
214
|
+
return `./${posixPath}`;
|
|
210
215
|
}
|
|
211
|
-
return
|
|
216
|
+
return posixPath;
|
|
212
217
|
}
|
|
213
218
|
};
|
|
214
219
|
|
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +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":
|
|
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":2258,"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":567,"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":1330},"src/plugins/BaseTemplatePlugin.ts":{"bytesInOutput":861},"src/plugins/PluginRegistry.ts":{"bytesInOutput":950},"src/plugins/PluginContext.ts":{"bytesInOutput":1785},"src/helpers/Path.ts":{"bytesInOutput":535}},"bytes":6336}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +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":
|
|
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":2258,"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":567,"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":1330},"src/plugins/BaseTemplatePlugin.ts":{"bytesInOutput":861},"src/plugins/PluginRegistry.ts":{"bytesInOutput":950},"src/plugins/PluginContext.ts":{"bytesInOutput":1785},"src/helpers/Path.ts":{"bytesInOutput":535}},"bytes":6336}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rexeus/typeweaver-gen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Template-driven engine that turns structured API definitions into production-ready artifacts. Powered by Typeweaver 🧵✨",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://github.com/rexeus/typeweaver#readme",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@rexeus/typeweaver-core": "^0.
|
|
50
|
+
"@rexeus/typeweaver-core": "^0.5.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@rexeus/typeweaver-core": "^0.
|
|
53
|
+
"@rexeus/typeweaver-core": "^0.5.1"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"ejs": "^3.1.10"
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"scripts": {
|
|
59
59
|
"typecheck": "tsc --noEmit",
|
|
60
60
|
"format": "prettier --write .",
|
|
61
|
+
"test": "vitest run",
|
|
61
62
|
"build": "tsup && cp ../../LICENSE ../../NOTICE ./dist/",
|
|
62
63
|
"preversion": "npm run build"
|
|
63
64
|
}
|