i18nsmith 0.1.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/dist/commands/audit.d.ts +3 -0
- package/dist/commands/audit.d.ts.map +1 -0
- package/dist/commands/audit.js +180 -0
- package/dist/commands/audit.js.map +1 -0
- package/dist/commands/backup.d.ts +6 -0
- package/dist/commands/backup.d.ts.map +1 -0
- package/dist/commands/backup.js +85 -0
- package/dist/commands/backup.js.map +1 -0
- package/dist/commands/check.d.ts +3 -0
- package/dist/commands/check.d.ts.map +1 -0
- package/dist/commands/check.js +151 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +235 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/debug-patterns.d.ts +3 -0
- package/dist/commands/debug-patterns.d.ts.map +1 -0
- package/dist/commands/debug-patterns.js +192 -0
- package/dist/commands/debug-patterns.js.map +1 -0
- package/dist/commands/debug-patterns.test.d.ts +2 -0
- package/dist/commands/debug-patterns.test.d.ts.map +1 -0
- package/dist/commands/debug-patterns.test.js +109 -0
- package/dist/commands/debug-patterns.test.js.map +1 -0
- package/dist/commands/diagnose.d.ts +3 -0
- package/dist/commands/diagnose.d.ts.map +1 -0
- package/dist/commands/diagnose.js +117 -0
- package/dist/commands/diagnose.js.map +1 -0
- package/dist/commands/init.d.ts +8 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +450 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/init.test.d.ts +2 -0
- package/dist/commands/init.test.d.ts.map +1 -0
- package/dist/commands/init.test.js +74 -0
- package/dist/commands/init.test.js.map +1 -0
- package/dist/commands/install-hooks.d.ts +3 -0
- package/dist/commands/install-hooks.d.ts.map +1 -0
- package/dist/commands/install-hooks.js +52 -0
- package/dist/commands/install-hooks.js.map +1 -0
- package/dist/commands/preflight.d.ts +7 -0
- package/dist/commands/preflight.d.ts.map +1 -0
- package/dist/commands/preflight.js +417 -0
- package/dist/commands/preflight.js.map +1 -0
- package/dist/commands/preflight.test.d.ts +5 -0
- package/dist/commands/preflight.test.d.ts.map +1 -0
- package/dist/commands/preflight.test.js +108 -0
- package/dist/commands/preflight.test.js.map +1 -0
- package/dist/commands/rename.d.ts +6 -0
- package/dist/commands/rename.d.ts.map +1 -0
- package/dist/commands/rename.js +204 -0
- package/dist/commands/rename.js.map +1 -0
- package/dist/commands/scaffold-adapter.d.ts +3 -0
- package/dist/commands/scaffold-adapter.d.ts.map +1 -0
- package/dist/commands/scaffold-adapter.js +204 -0
- package/dist/commands/scaffold-adapter.js.map +1 -0
- package/dist/commands/scaffold-adapter.test.d.ts +2 -0
- package/dist/commands/scaffold-adapter.test.d.ts.map +1 -0
- package/dist/commands/scaffold-adapter.test.js +102 -0
- package/dist/commands/scaffold-adapter.test.js.map +1 -0
- package/dist/commands/scan.d.ts +3 -0
- package/dist/commands/scan.d.ts.map +1 -0
- package/dist/commands/scan.js +93 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/commands/sync-seed.test.d.ts +2 -0
- package/dist/commands/sync-seed.test.d.ts.map +1 -0
- package/dist/commands/sync-seed.test.js +86 -0
- package/dist/commands/sync-seed.test.js.map +1 -0
- package/dist/commands/sync.d.ts +3 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +590 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/commands/transform.d.ts +3 -0
- package/dist/commands/transform.d.ts.map +1 -0
- package/dist/commands/transform.js +114 -0
- package/dist/commands/transform.js.map +1 -0
- package/dist/commands/translate/csv-handler.d.ts +21 -0
- package/dist/commands/translate/csv-handler.d.ts.map +1 -0
- package/dist/commands/translate/csv-handler.js +270 -0
- package/dist/commands/translate/csv-handler.js.map +1 -0
- package/dist/commands/translate/executor.d.ts +31 -0
- package/dist/commands/translate/executor.d.ts.map +1 -0
- package/dist/commands/translate/executor.js +117 -0
- package/dist/commands/translate/executor.js.map +1 -0
- package/dist/commands/translate/index.d.ts +10 -0
- package/dist/commands/translate/index.d.ts.map +1 -0
- package/dist/commands/translate/index.js +170 -0
- package/dist/commands/translate/index.js.map +1 -0
- package/dist/commands/translate/reporter.d.ts +29 -0
- package/dist/commands/translate/reporter.d.ts.map +1 -0
- package/dist/commands/translate/reporter.js +103 -0
- package/dist/commands/translate/reporter.js.map +1 -0
- package/dist/commands/translate/types.d.ts +50 -0
- package/dist/commands/translate/types.d.ts.map +1 -0
- package/dist/commands/translate/types.js +5 -0
- package/dist/commands/translate/types.js.map +1 -0
- package/dist/commands/translate.d.ts +7 -0
- package/dist/commands/translate.d.ts.map +1 -0
- package/dist/commands/translate.js +7 -0
- package/dist/commands/translate.js.map +1 -0
- package/dist/commands/translate.test.d.ts +2 -0
- package/dist/commands/translate.test.d.ts.map +1 -0
- package/dist/commands/translate.test.js +118 -0
- package/dist/commands/translate.test.js.map +1 -0
- package/dist/e2e.test.d.ts +6 -0
- package/dist/e2e.test.d.ts.map +1 -0
- package/dist/e2e.test.js +376 -0
- package/dist/e2e.test.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/integration.test.d.ts +6 -0
- package/dist/integration.test.d.ts.map +1 -0
- package/dist/integration.test.js +320 -0
- package/dist/integration.test.js.map +1 -0
- package/dist/utils/diagnostics-exit.d.ts +12 -0
- package/dist/utils/diagnostics-exit.d.ts.map +1 -0
- package/dist/utils/diagnostics-exit.js +49 -0
- package/dist/utils/diagnostics-exit.js.map +1 -0
- package/dist/utils/diagnostics-exit.test.d.ts +2 -0
- package/dist/utils/diagnostics-exit.test.d.ts.map +1 -0
- package/dist/utils/diagnostics-exit.test.js +40 -0
- package/dist/utils/diagnostics-exit.test.js.map +1 -0
- package/dist/utils/diff-utils.d.ts +4 -0
- package/dist/utils/diff-utils.d.ts.map +1 -0
- package/dist/utils/diff-utils.js +30 -0
- package/dist/utils/diff-utils.js.map +1 -0
- package/dist/utils/diff-utils.test.d.ts +2 -0
- package/dist/utils/diff-utils.test.d.ts.map +1 -0
- package/dist/utils/diff-utils.test.js +30 -0
- package/dist/utils/diff-utils.test.js.map +1 -0
- package/dist/utils/exit-codes.d.ts +142 -0
- package/dist/utils/exit-codes.d.ts.map +1 -0
- package/dist/utils/exit-codes.js +168 -0
- package/dist/utils/exit-codes.js.map +1 -0
- package/dist/utils/package-manager.d.ts +4 -0
- package/dist/utils/package-manager.d.ts.map +1 -0
- package/dist/utils/package-manager.js +40 -0
- package/dist/utils/package-manager.js.map +1 -0
- package/dist/utils/pkg.d.ts +3 -0
- package/dist/utils/pkg.d.ts.map +1 -0
- package/dist/utils/pkg.js +24 -0
- package/dist/utils/pkg.js.map +1 -0
- package/dist/utils/provider-injector.d.ts +36 -0
- package/dist/utils/provider-injector.d.ts.map +1 -0
- package/dist/utils/provider-injector.js +223 -0
- package/dist/utils/provider-injector.js.map +1 -0
- package/dist/utils/provider-injector.test.d.ts +2 -0
- package/dist/utils/provider-injector.test.d.ts.map +1 -0
- package/dist/utils/provider-injector.test.js +67 -0
- package/dist/utils/provider-injector.test.js.map +1 -0
- package/dist/utils/scaffold.d.ts +20 -0
- package/dist/utils/scaffold.d.ts.map +1 -0
- package/dist/utils/scaffold.js +197 -0
- package/dist/utils/scaffold.js.map +1 -0
- package/package.json +35 -0
- package/src/commands/audit.ts +234 -0
- package/src/commands/backup.ts +96 -0
- package/src/commands/check.ts +191 -0
- package/src/commands/config.ts +263 -0
- package/src/commands/debug-patterns.test.ts +134 -0
- package/src/commands/debug-patterns.ts +257 -0
- package/src/commands/diagnose.ts +136 -0
- package/src/commands/init.test.ts +82 -0
- package/src/commands/init.ts +536 -0
- package/src/commands/install-hooks.ts +66 -0
- package/src/commands/preflight.test.ts +139 -0
- package/src/commands/preflight.ts +488 -0
- package/src/commands/rename.ts +264 -0
- package/src/commands/scaffold-adapter.test.ts +110 -0
- package/src/commands/scaffold-adapter.ts +250 -0
- package/src/commands/scan.ts +125 -0
- package/src/commands/sync-seed.test.ts +116 -0
- package/src/commands/sync.ts +736 -0
- package/src/commands/transform.ts +151 -0
- package/src/commands/translate/README.md +75 -0
- package/src/commands/translate/csv-handler.ts +301 -0
- package/src/commands/translate/executor.ts +188 -0
- package/src/commands/translate/index.ts +220 -0
- package/src/commands/translate/reporter.ts +138 -0
- package/src/commands/translate/types.ts +56 -0
- package/src/commands/translate.test.ts +173 -0
- package/src/commands/translate.ts +6 -0
- package/src/e2e.test.ts +479 -0
- package/src/fixtures/README.md +61 -0
- package/src/fixtures/basic-react/i18n.config.json +15 -0
- package/src/fixtures/basic-react/locales/de.json +8 -0
- package/src/fixtures/basic-react/locales/en.json +8 -0
- package/src/fixtures/basic-react/locales/fr.json +8 -0
- package/src/fixtures/basic-react/src/App.tsx +15 -0
- package/src/fixtures/basic-react/src/Messages.tsx +12 -0
- package/src/fixtures/nested-locales/i18n.config.json +9 -0
- package/src/fixtures/nested-locales/locales/en.json +23 -0
- package/src/fixtures/nested-locales/locales/fr.json +23 -0
- package/src/fixtures/nested-locales/src/HomePage.tsx +13 -0
- package/src/fixtures/suspicious-keys/i18n.config.json +9 -0
- package/src/fixtures/suspicious-keys/locales/en.json +11 -0
- package/src/fixtures/suspicious-keys/locales/fr.json +11 -0
- package/src/fixtures/suspicious-keys/src/BadKeys.tsx +19 -0
- package/src/index.ts +43 -0
- package/src/integration.test.ts +438 -0
- package/src/utils/diagnostics-exit.test.ts +47 -0
- package/src/utils/diagnostics-exit.ts +63 -0
- package/src/utils/diff-utils.test.ts +36 -0
- package/src/utils/diff-utils.ts +42 -0
- package/src/utils/exit-codes.ts +201 -0
- package/src/utils/package-manager.ts +44 -0
- package/src/utils/pkg.ts +23 -0
- package/src/utils/provider-injector.test.ts +79 -0
- package/src/utils/provider-injector.ts +315 -0
- package/src/utils/scaffold.ts +240 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import fs from 'fs/promises';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
4
|
+
interface ScaffoldOptions {
|
|
5
|
+
localesDir?: string;
|
|
6
|
+
workspaceRoot?: string;
|
|
7
|
+
force?: boolean;
|
|
8
|
+
dryRun?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ScaffoldResult {
|
|
12
|
+
path: string;
|
|
13
|
+
content: string;
|
|
14
|
+
written: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function resolvePath(targetPath: string, workspaceRoot: string) {
|
|
18
|
+
return path.isAbsolute(targetPath) ? targetPath : path.join(workspaceRoot, targetPath);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async function ensureDir(dirPath: string) {
|
|
22
|
+
await fs.mkdir(dirPath, { recursive: true });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async function writeFileSafely(filePath: string, content: string, force?: boolean, dryRun?: boolean): Promise<boolean> {
|
|
26
|
+
try {
|
|
27
|
+
await fs.stat(filePath);
|
|
28
|
+
if (!force) {
|
|
29
|
+
throw new Error(`File already exists at ${filePath}. Re-run with --force to overwrite.`);
|
|
30
|
+
}
|
|
31
|
+
} catch (error: unknown) {
|
|
32
|
+
if (error && typeof error === 'object' && 'code' in error && error.code !== 'ENOENT') {
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (dryRun) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
await fs.writeFile(filePath, content, 'utf8');
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function relativeImportPath(fromDir: string, targetPath: string, dropExtension = true) {
|
|
46
|
+
let relative = path.relative(fromDir, targetPath).replace(/\\/g, '/');
|
|
47
|
+
if (!relative.startsWith('.')) {
|
|
48
|
+
relative = `./${relative}`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (dropExtension) {
|
|
52
|
+
relative = relative.replace(/\.(ts|tsx|js|jsx|mjs|cjs)$/i, '');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return relative;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export async function scaffoldTranslationContext(
|
|
59
|
+
filePath: string,
|
|
60
|
+
sourceLanguage: string,
|
|
61
|
+
options: ScaffoldOptions = {}
|
|
62
|
+
): Promise<ScaffoldResult> {
|
|
63
|
+
const workspaceRoot = options.workspaceRoot ?? process.cwd();
|
|
64
|
+
const localesDir = options.localesDir ?? 'locales';
|
|
65
|
+
const absolutePath = resolvePath(filePath, workspaceRoot);
|
|
66
|
+
const dir = path.dirname(absolutePath);
|
|
67
|
+
|
|
68
|
+
if (!options.dryRun) {
|
|
69
|
+
await ensureDir(dir);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const localeFile = path.join(workspaceRoot, localesDir, `${sourceLanguage}.json`);
|
|
73
|
+
let localeImportPath = path.relative(dir, localeFile).replace(/\\/g, '/');
|
|
74
|
+
if (!localeImportPath.startsWith('.')) {
|
|
75
|
+
localeImportPath = `./${localeImportPath}`;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const content = `'use client';
|
|
79
|
+
|
|
80
|
+
import { createContext, useContext, useState } from 'react';
|
|
81
|
+
import ${sourceLanguage}Messages from '${localeImportPath}';
|
|
82
|
+
|
|
83
|
+
type Language = '${sourceLanguage}';
|
|
84
|
+
|
|
85
|
+
const messages = {
|
|
86
|
+
${sourceLanguage}: ${sourceLanguage}Messages,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
interface TranslationContextType {
|
|
90
|
+
language: Language;
|
|
91
|
+
setLanguage: (lang: Language) => void;
|
|
92
|
+
t: (key: string) => string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const TranslationContext = createContext<TranslationContextType>({
|
|
96
|
+
language: '${sourceLanguage}',
|
|
97
|
+
setLanguage: () => {},
|
|
98
|
+
t: (key) => key,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export function TranslationProvider({ children }: { children: React.ReactNode }) {
|
|
102
|
+
const [language, setLanguage] = useState<Language>('${sourceLanguage}');
|
|
103
|
+
|
|
104
|
+
const t = (key: string) => messages[language]?.[key] ?? key;
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
<TranslationContext.Provider value={{ language, setLanguage, t }}>
|
|
108
|
+
{children}
|
|
109
|
+
</TranslationContext.Provider>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function useTranslation() {
|
|
114
|
+
return useContext(TranslationContext);
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
|
|
118
|
+
const written = await writeFileSafely(absolutePath, content, options.force, options.dryRun);
|
|
119
|
+
return { path: absolutePath, content, written };
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export async function scaffoldI18next(
|
|
123
|
+
i18nPath: string,
|
|
124
|
+
providerPath: string,
|
|
125
|
+
sourceLanguage: string,
|
|
126
|
+
localesDir = 'locales',
|
|
127
|
+
options: ScaffoldOptions = {}
|
|
128
|
+
): Promise<{ i18nPath: string; providerPath: string; i18nResult: ScaffoldResult; providerResult: ScaffoldResult }> {
|
|
129
|
+
const workspaceRoot = options.workspaceRoot ?? process.cwd();
|
|
130
|
+
const absoluteI18nPath = resolvePath(i18nPath, workspaceRoot);
|
|
131
|
+
const absoluteProviderPath = resolvePath(providerPath, workspaceRoot);
|
|
132
|
+
|
|
133
|
+
if (!options.dryRun) {
|
|
134
|
+
await ensureDir(path.dirname(absoluteI18nPath));
|
|
135
|
+
await ensureDir(path.dirname(absoluteProviderPath));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const localeFile = path.join(workspaceRoot, localesDir, `${sourceLanguage}.json`);
|
|
139
|
+
let localeImportPath = path.relative(path.dirname(absoluteI18nPath), localeFile).replace(/\\/g, '/');
|
|
140
|
+
if (!localeImportPath.startsWith('.')) {
|
|
141
|
+
localeImportPath = `./${localeImportPath}`;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const i18nContent = `import i18next from 'i18next';
|
|
145
|
+
import { initReactI18next } from 'react-i18next';
|
|
146
|
+
import ${sourceLanguage}Messages from '${localeImportPath}';
|
|
147
|
+
|
|
148
|
+
const resources = {
|
|
149
|
+
${sourceLanguage}: {
|
|
150
|
+
translation: ${sourceLanguage}Messages,
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
function doInit() {
|
|
155
|
+
const initialized = (i18next as unknown as { isInitialized?: boolean }).isInitialized;
|
|
156
|
+
if (initialized) {
|
|
157
|
+
return Promise.resolve();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return i18next
|
|
161
|
+
.use(initReactI18next)
|
|
162
|
+
.init({
|
|
163
|
+
lng: '${sourceLanguage}',
|
|
164
|
+
fallbackLng: '${sourceLanguage}',
|
|
165
|
+
resources,
|
|
166
|
+
interpolation: {
|
|
167
|
+
escapeValue: false,
|
|
168
|
+
},
|
|
169
|
+
react: {
|
|
170
|
+
useSuspense: false,
|
|
171
|
+
},
|
|
172
|
+
})
|
|
173
|
+
.catch((error) => {
|
|
174
|
+
console.error('i18next init failed', error);
|
|
175
|
+
throw error;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (typeof window !== 'undefined') {
|
|
180
|
+
void doInit();
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function initI18next() {
|
|
184
|
+
return doInit();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export default i18next;
|
|
188
|
+
`;
|
|
189
|
+
|
|
190
|
+
const i18nWritten = await writeFileSafely(absoluteI18nPath, i18nContent, options.force, options.dryRun);
|
|
191
|
+
|
|
192
|
+
const providerImport = relativeImportPath(path.dirname(absoluteProviderPath), absoluteI18nPath, true);
|
|
193
|
+
|
|
194
|
+
const providerContent = `'use client';
|
|
195
|
+
|
|
196
|
+
import { ReactNode, useEffect, useState } from 'react';
|
|
197
|
+
import { initI18next } from '${providerImport}';
|
|
198
|
+
|
|
199
|
+
interface I18nProviderProps {
|
|
200
|
+
children: ReactNode;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function I18nProvider({ children }: I18nProviderProps) {
|
|
204
|
+
const [ready, setReady] = useState(false);
|
|
205
|
+
|
|
206
|
+
useEffect(() => {
|
|
207
|
+
let mounted = true;
|
|
208
|
+
|
|
209
|
+
Promise.resolve(initI18next())
|
|
210
|
+
.catch((error) => {
|
|
211
|
+
console.error('i18next initialization failed', error);
|
|
212
|
+
})
|
|
213
|
+
.finally(() => {
|
|
214
|
+
if (mounted) {
|
|
215
|
+
setReady(true);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
return () => {
|
|
220
|
+
mounted = false;
|
|
221
|
+
};
|
|
222
|
+
}, []);
|
|
223
|
+
|
|
224
|
+
if (!ready) {
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return <>{children}</>;
|
|
229
|
+
}
|
|
230
|
+
`;
|
|
231
|
+
|
|
232
|
+
const providerWritten = await writeFileSafely(absoluteProviderPath, providerContent, options.force, options.dryRun);
|
|
233
|
+
|
|
234
|
+
return {
|
|
235
|
+
i18nPath: absoluteI18nPath,
|
|
236
|
+
providerPath: absoluteProviderPath,
|
|
237
|
+
i18nResult: { path: absoluteI18nPath, content: i18nContent, written: i18nWritten },
|
|
238
|
+
providerResult: { path: absoluteProviderPath, content: providerContent, written: providerWritten },
|
|
239
|
+
};
|
|
240
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": ["src/**/*"],
|
|
11
|
+
"exclude": ["src/fixtures/**/*"],
|
|
12
|
+
"references": [
|
|
13
|
+
{ "path": "../core" },
|
|
14
|
+
{ "path": "../transformer" },
|
|
15
|
+
{ "path": "../translation" }
|
|
16
|
+
]
|
|
17
|
+
}
|