ai-localize-codemods 1.0.0 → 2.0.0
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/angular-codemod.ts +1 -1
- package/src/cdn-replacer.ts +1 -1
- package/src/codemod-runner.ts +1 -1
- package/src/react-codemod.ts +1 -1
- package/src/vue-codemod.ts +1 -1
package/CHANGELOG.md
ADDED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-localize-codemods",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "AST-based codemods to inject i18n wrappers into frontend source code",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@babel/generator": "^7.23.9",
|
|
20
20
|
"recast": "^0.23.4",
|
|
21
21
|
"jscodeshift": "^0.15.2",
|
|
22
|
-
"ai-localize-shared": "
|
|
22
|
+
"ai-localize-shared": "2.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/babel__generator": "^7.6.8",
|
package/src/angular-codemod.ts
CHANGED
package/src/cdn-replacer.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as fs from 'fs';
|
|
2
2
|
import * as path from 'path';
|
|
3
3
|
|
|
4
|
-
import type { LegacyCdnUrl, CloudFrontAsset } from '
|
|
4
|
+
import type { LegacyCdnUrl, CloudFrontAsset } from 'ai-localize-shared';
|
|
5
5
|
|
|
6
6
|
export interface CdnReplacementResult {
|
|
7
7
|
filePath: string;
|
package/src/codemod-runner.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as path from 'path';
|
|
2
|
-
import type { Framework, DetectedText, LocalizationConfig } from '
|
|
2
|
+
import type { Framework, DetectedText, LocalizationConfig } from 'ai-localize-shared';
|
|
3
3
|
import type { CodemodResult } from './react-codemod.js';
|
|
4
4
|
import { applyReactCodemod } from './react-codemod.js';
|
|
5
5
|
import { applyVueCodemod } from './vue-codemod.js';
|
package/src/react-codemod.ts
CHANGED
|
@@ -4,7 +4,7 @@ import traverse from '@babel/traverse';
|
|
|
4
4
|
import generate from '@babel/generator';
|
|
5
5
|
import * as t from '@babel/types';
|
|
6
6
|
|
|
7
|
-
import type { DetectedText } from '
|
|
7
|
+
import type { DetectedText } from 'ai-localize-shared';
|
|
8
8
|
|
|
9
9
|
export interface CodemodResult {
|
|
10
10
|
filePath: string;
|