@auto-engineer/frontend-implementer 0.1.4 → 0.2.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/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-test.log +12 -14
- package/.turbo/turbo-type-check.log +4 -5
- package/CHANGELOG.md +12 -0
- package/dist/commands/implement-client.d.ts +13 -43
- package/dist/commands/implement-client.d.ts.map +1 -1
- package/dist/commands/implement-client.js +33 -24
- package/dist/commands/implement-client.js.map +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -264
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/commands/implement-client.ts +37 -33
- package/src/index.ts +8 -321
- package/tsconfig.tsbuildinfo +1 -1
- package/.turbo/turbo-format.log +0 -15
- package/.turbo/turbo-lint.log +0 -5
- package/dist/cli-manifest.d.ts +0 -3
- package/dist/cli-manifest.d.ts.map +0 -1
- package/dist/cli-manifest.js +0 -35
- package/dist/cli-manifest.js.map +0 -1
- package/src/cli-manifest.ts +0 -37
package/src/cli-manifest.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
import type { CliManifest } from '@auto-engineer/cli/manifest-types';
|
|
5
|
-
import { implementClientManifest } from './commands/implement-client';
|
|
6
|
-
|
|
7
|
-
// Get version from package.json
|
|
8
|
-
const getVersion = (): string => {
|
|
9
|
-
try {
|
|
10
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
11
|
-
const __dirname = path.dirname(__filename);
|
|
12
|
-
// In dev: src/cli-manifest.ts -> ../../package.json
|
|
13
|
-
// In dist: dist/cli-manifest.js -> ../package.json
|
|
14
|
-
const possiblePaths = [
|
|
15
|
-
path.join(__dirname, '..', 'package.json'), // dist build
|
|
16
|
-
path.join(__dirname, '..', '..', 'package.json'), // dev/src
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
for (const packageJsonPath of possiblePaths) {
|
|
20
|
-
if (fs.existsSync(packageJsonPath)) {
|
|
21
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8')) as { version: string };
|
|
22
|
-
return packageJson.version;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
} catch {
|
|
26
|
-
// Fall through
|
|
27
|
-
}
|
|
28
|
-
return 'unknown';
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const CLI_MANIFEST: CliManifest = {
|
|
32
|
-
category: '@auto-engineer/frontend-implementer',
|
|
33
|
-
version: getVersion(),
|
|
34
|
-
commands: {
|
|
35
|
-
'implement:client': implementClientManifest,
|
|
36
|
-
},
|
|
37
|
-
};
|