@intrig/core 0.0.15-25 → 0.0.15-26

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.
Files changed (2) hide show
  1. package/main.js +10 -2
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -11284,6 +11284,14 @@ class LazyPluginService {
11284
11284
  await this.getPlugin();
11285
11285
  return this.pluginName;
11286
11286
  }
11287
+ /**
11288
+ * Returns the target library package name where generated SDK content should be copied.
11289
+ * Derived from the plugin's meta().generator field (e.g., 'react' -> '@intrig/react').
11290
+ */ async getTargetLibrary() {
11291
+ const plugin = await this.getPlugin();
11292
+ const meta = plugin.meta();
11293
+ return `@intrig/${meta.generator}`;
11294
+ }
11287
11295
  async loadPlugin() {
11288
11296
  const rootDir = this.configService.get('rootDir') ?? process.cwd();
11289
11297
  this.logger.debug(`Loading plugin from rootDir: ${rootDir}`);
@@ -11582,8 +11590,8 @@ class OperationsService {
11582
11590
  }
11583
11591
  }
11584
11592
  async copyContentToNodeModules(ctx, hashes) {
11585
- const pluginName = await this.lazyPluginService.getPluginName();
11586
- const targetLibDir = external_path_.join(this.config.get('rootDir') ?? process.cwd(), 'node_modules', pluginName);
11593
+ const targetLibrary = await this.lazyPluginService.getTargetLibrary();
11594
+ const targetLibDir = external_path_.join(this.config.get('rootDir') ?? process.cwd(), 'node_modules', targetLibrary);
11587
11595
  try {
11588
11596
  if (await lib.pathExists(external_path_.join(targetLibDir, 'src'))) {
11589
11597
  await lib.remove(external_path_.join(targetLibDir, 'src'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intrig/core",
3
- "version": "0.0.15-25",
3
+ "version": "0.0.15-26",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {