ai-localize-framework-detectors 1.0.0 → 1.0.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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Framework } from '@ai-localize/shared';
1
+ import { Framework } from 'ai-localize-shared';
2
2
 
3
3
  interface DetectionResult {
4
4
  framework: Framework;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Framework } from '@ai-localize/shared';
1
+ import { Framework } from 'ai-localize-shared';
2
2
 
3
3
  interface DetectionResult {
4
4
  framework: Framework;
package/dist/index.js CHANGED
@@ -39,13 +39,13 @@ module.exports = __toCommonJS(index_exports);
39
39
  // src/detector.ts
40
40
  var fs = __toESM(require("fs"));
41
41
  var path = __toESM(require("path"));
42
- var import_shared = require("@ai-localize/shared");
42
+ var import_ai_localize_shared = require("ai-localize-shared");
43
43
  var FrameworkDetector = class {
44
44
  projectRoot;
45
45
  pkg;
46
46
  constructor(projectRoot) {
47
47
  this.projectRoot = projectRoot;
48
- this.pkg = (0, import_shared.readJsonSafe)(path.join(projectRoot, "package.json"));
48
+ this.pkg = (0, import_ai_localize_shared.readJsonSafe)(path.join(projectRoot, "package.json"));
49
49
  }
50
50
  detect() {
51
51
  const results = [
@@ -232,13 +232,13 @@ function detectFramework(projectRoot) {
232
232
  // src/i18n-detector.ts
233
233
  var fs2 = __toESM(require("fs"));
234
234
  var path2 = __toESM(require("path"));
235
- var import_shared2 = require("@ai-localize/shared");
235
+ var import_ai_localize_shared2 = require("ai-localize-shared");
236
236
  var I18nDetector = class {
237
237
  root;
238
238
  pkg;
239
239
  constructor(projectRoot) {
240
240
  this.root = projectRoot;
241
- this.pkg = (0, import_shared2.readJsonSafe)(path2.join(projectRoot, "package.json"));
241
+ this.pkg = (0, import_ai_localize_shared2.readJsonSafe)(path2.join(projectRoot, "package.json"));
242
242
  }
243
243
  detect(framework) {
244
244
  switch (framework) {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/detector.ts
2
2
  import * as fs from "fs";
3
3
  import * as path from "path";
4
- import { readJsonSafe } from "@ai-localize/shared";
4
+ import { readJsonSafe } from "ai-localize-shared";
5
5
  var FrameworkDetector = class {
6
6
  projectRoot;
7
7
  pkg;
@@ -194,7 +194,7 @@ function detectFramework(projectRoot) {
194
194
  // src/i18n-detector.ts
195
195
  import * as fs2 from "fs";
196
196
  import * as path2 from "path";
197
- import { readJsonSafe as readJsonSafe2 } from "@ai-localize/shared";
197
+ import { readJsonSafe as readJsonSafe2 } from "ai-localize-shared";
198
198
  var I18nDetector = class {
199
199
  root;
200
200
  pkg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-localize-framework-detectors",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Auto-detect frontend frameworks from project structure",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "ai-localize-shared": "1.0.0"
16
+ "ai-localize-shared": "1.0.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tsup": "^8.0.1",
package/src/detector.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as fs from 'fs';
2
2
  import * as path from 'path';
3
3
 
4
- import type { Framework } from '@ai-localize/shared';
5
- import { readJsonSafe } from '@ai-localize/shared';
4
+ import type { Framework } from 'ai-localize-shared';
5
+ import { readJsonSafe } from 'ai-localize-shared';
6
6
 
7
7
  export interface DetectionResult {
8
8
  framework: Framework;
@@ -1,8 +1,8 @@
1
1
  import * as fs from 'fs';
2
2
  import * as path from 'path';
3
3
 
4
- import { readJsonSafe } from '@ai-localize/shared';
5
- import type { Framework } from '@ai-localize/shared';
4
+ import { readJsonSafe } from 'ai-localize-shared';
5
+ import type { Framework } from 'ai-localize-shared';
6
6
 
7
7
  export interface I18nSetupResult {
8
8
  hasI18n: boolean;