@runner-ai/vite-uuid-tagger 0.0.5 → 0.0.6

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.d.ts CHANGED
@@ -2,8 +2,6 @@ import { Plugin } from 'vite';
2
2
 
3
3
  interface UuidTaggerOptions {
4
4
  projectRoot: string;
5
- /** Env var name for @runner-ai/design script tag version. Default: VITE_DESIGN_SCRIPT_TAG */
6
- scriptTagEnvVar?: string;
7
5
  }
8
6
  declare function uuidTagger(options: UuidTaggerOptions): Plugin;
9
7
 
package/dist/index.js CHANGED
@@ -205,7 +205,7 @@ var UUIDMappingManager = class {
205
205
 
206
206
  // src/plugin.ts
207
207
  function uuidTagger(options) {
208
- const { projectRoot, scriptTagEnvVar = "VITE_DESIGN_SCRIPT_TAG" } = options;
208
+ const { projectRoot } = options;
209
209
  const uuidManager = new UUIDMappingManager(projectRoot);
210
210
  return {
211
211
  name: "vite-uuid-tagger",
@@ -260,11 +260,6 @@ function uuidTagger(options) {
260
260
  } catch {
261
261
  return null;
262
262
  }
263
- },
264
- transformIndexHtml(html) {
265
- const tag = process.env[scriptTagEnvVar];
266
- const src = `https://unpkg.com/@runner-ai/design${tag ? `@${tag}` : ""}`;
267
- return html.replace("</body>", `<script src="${src}"></script></body>`);
268
263
  }
269
264
  };
270
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runner-ai/vite-uuid-tagger",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",