@siyavuyachagi/typesharp 0.1.5 → 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/README.md +50 -33
- package/bin/typesharp.js +4 -1
- package/dist/cli/index.js +14 -18
- package/dist/cli/index.js.map +1 -1
- package/dist/core/create-sample-config.d.ts.map +1 -1
- package/dist/core/create-sample-config.js +7 -47
- package/dist/core/create-sample-config.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +67 -184
- package/dist/core/index.js.map +1 -1
- package/dist/generator/index.d.ts +7 -3
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js +61 -65
- package/dist/generator/index.js.map +1 -1
- package/dist/helpers/change-tracker.d.ts.map +1 -1
- package/dist/helpers/change-tracker.js +7 -46
- package/dist/helpers/change-tracker.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/parser/index.d.ts +2 -2
- package/dist/parser/index.d.ts.map +1 -1
- package/dist/parser/index.js +11 -46
- package/dist/parser/index.js.map +1 -1
- package/dist/parser/parse-classes-from-file.d.ts +1 -1
- package/dist/parser/parse-classes-from-file.d.ts.map +1 -1
- package/dist/parser/parse-classes-from-file.js +7 -10
- package/dist/parser/parse-classes-from-file.js.map +1 -1
- package/dist/parser/parse-properties.d.ts +1 -1
- package/dist/parser/parse-properties.d.ts.map +1 -1
- package/dist/parser/parse-properties.js +3 -7
- package/dist/parser/parse-properties.js.map +1 -1
- package/dist/parser/resolve-project-files-from-source.d.ts.map +1 -1
- package/dist/parser/resolve-project-files-from-source.js +7 -40
- package/dist/parser/resolve-project-files-from-source.js.map +1 -1
- package/dist/scripts/pre-unistall.d.ts +2 -0
- package/dist/scripts/pre-unistall.d.ts.map +1 -0
- package/dist/scripts/pre-unistall.js +10 -0
- package/dist/scripts/pre-unistall.js.map +1 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -2
- package/dist/types/naming-convention-config.d.ts +1 -1
- package/dist/types/naming-convention-config.d.ts.map +1 -1
- package/dist/types/naming-convention-config.js +1 -2
- package/dist/types/naming-convention.js +1 -2
- package/dist/types/typesharp-config.d.ts +2 -6
- package/dist/types/typesharp-config.d.ts.map +1 -1
- package/dist/types/typesharp-config.js +1 -2
- package/package.json +16 -5
package/README.md
CHANGED
|
@@ -129,7 +129,6 @@ This creates `typesharp.config.json`:
|
|
|
129
129
|
"C:/Users/User/Desktop/MyApp/Domain/Domain.csproj"
|
|
130
130
|
],
|
|
131
131
|
"outputPath": "./app/types",
|
|
132
|
-
"targetAnnotation": "TypeSharp",
|
|
133
132
|
"singleOutputFile": false,
|
|
134
133
|
"namingConvention": "camel"
|
|
135
134
|
}
|
|
@@ -153,14 +152,13 @@ For more advanced usage [docs/usage](docs/usage.md)
|
|
|
153
152
|
|
|
154
153
|
### 1. Configuration Options
|
|
155
154
|
|
|
156
|
-
| Option | Type | Default
|
|
157
|
-
| ------------------ | ----------------------------------------- |
|
|
158
|
-
| `source` | `string \| string[]` | _required_
|
|
159
|
-
| `outputPath` | `string` | _required_
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `fileSuffix` | `string` | _optional_ | Suffix appended to generated file names: `user-dto.ts` |
|
|
155
|
+
| Option | Type | Default | Description |
|
|
156
|
+
| ------------------ | ----------------------------------------- | ---------- | ------------------------------------------------------------- |
|
|
157
|
+
| `source` | `string \| string[]` | _required_ | Full path(s) to your C# .csproj file(s) |
|
|
158
|
+
| `outputPath` | `string` | _required_ | Where to generate TypeScript files |
|
|
159
|
+
| `singleOutputFile` | `boolean` | `false` | Generate one file or multiple files (see below) |
|
|
160
|
+
| `namingConvention` | `string \| { dir: string, file: string }` | `'camel'` | Property/file/dir naming: `kebab`, `camel`, `pascal`, `snake` |
|
|
161
|
+
| `fileSuffix` | `string` | _optional_ | Suffix appended to generated file names: `user-dto.ts` |
|
|
164
162
|
|
|
165
163
|
### 2. Naming Convention
|
|
166
164
|
|
|
@@ -193,7 +191,7 @@ TypeSharp preserves your C# file organization. Here's how it works:
|
|
|
193
191
|
|
|
194
192
|
TypeSharp supports multiple configuration formats:
|
|
195
193
|
|
|
196
|
-
**JSON** (`typesharp.config.json`):
|
|
194
|
+
**JSON** (`typesharp.config.json`): ⭐ **recommended**
|
|
197
195
|
|
|
198
196
|
```json
|
|
199
197
|
{
|
|
@@ -202,27 +200,36 @@ TypeSharp supports multiple configuration formats:
|
|
|
202
200
|
}
|
|
203
201
|
```
|
|
204
202
|
|
|
205
|
-
**
|
|
206
|
-
|
|
207
|
-
```typescript
|
|
208
|
-
import { TypeSharpConfig } from "typesharp";
|
|
203
|
+
**JavaScript** (`typesharp.config.js`):
|
|
209
204
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
```javascript
|
|
206
|
+
const config = {
|
|
207
|
+
source: ['C:/Users/User/Desktop/MyApp/Domain/Domain.csproj'],
|
|
208
|
+
outputPath: './src/types',
|
|
213
209
|
};
|
|
214
210
|
|
|
215
211
|
export default config;
|
|
216
212
|
```
|
|
217
213
|
|
|
218
|
-
**
|
|
214
|
+
**TypeScript** (`typesharp.config.ts`): ⚠️ **requires special setup**
|
|
219
215
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
216
|
+
TypeScript config files require one of the following approaches:
|
|
217
|
+
|
|
218
|
+
1. Convert to JavaScript first (recommended):
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
tsc typesharp.config.ts --module nodenext
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
2. Run with tsx loader:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
node --loader tsx/cjs ./node_modules/@siyavuyachagi/typesharp/bin/typesharp.js
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
3. Or use a `.js` config file instead (simplest)
|
|
231
|
+
|
|
232
|
+
If you prefer TypeScript configs, JSON format is the easiest alternative that provides type safety through JSDoc in most editors.
|
|
226
233
|
|
|
227
234
|
## Usage in package.json
|
|
228
235
|
|
|
@@ -515,8 +522,8 @@ export interface auth_response {
|
|
|
515
522
|
|
|
516
523
|
```typescript
|
|
517
524
|
const config: TypeSharpConfig = {
|
|
518
|
-
source:
|
|
519
|
-
outputPath:
|
|
525
|
+
source: './Backend/Backend.csproj',
|
|
526
|
+
outputPath: './src/types',
|
|
520
527
|
singleOutputFile: true,
|
|
521
528
|
};
|
|
522
529
|
```
|
|
@@ -525,11 +532,11 @@ const config: TypeSharpConfig = {
|
|
|
525
532
|
|
|
526
533
|
```typescript
|
|
527
534
|
const config: TypeSharpConfig = {
|
|
528
|
-
source:
|
|
529
|
-
outputPath:
|
|
535
|
+
source: './Backend/Backend.csproj',
|
|
536
|
+
outputPath: './src/types',
|
|
530
537
|
namingConvention: {
|
|
531
|
-
dir:
|
|
532
|
-
file:
|
|
538
|
+
dir: 'kebab',
|
|
539
|
+
file: 'camel',
|
|
533
540
|
},
|
|
534
541
|
};
|
|
535
542
|
```
|
|
@@ -564,15 +571,25 @@ const config: TypeSharpConfig = {
|
|
|
564
571
|
## Programmatic Usage
|
|
565
572
|
|
|
566
573
|
```typescript
|
|
567
|
-
import { generate } from
|
|
574
|
+
import { generate } from 'typesharp';
|
|
568
575
|
|
|
569
576
|
async function generateTypes() {
|
|
570
|
-
await generate(
|
|
577
|
+
await generate('./path/to/config.ts');
|
|
571
578
|
}
|
|
572
579
|
|
|
573
580
|
generateTypes();
|
|
574
581
|
```
|
|
575
582
|
|
|
583
|
+
## Preview
|
|
584
|
+
|
|
585
|
+
### Terminal Output
|
|
586
|
+
|
|
587
|
+

|
|
588
|
+
|
|
589
|
+
### Test Results
|
|
590
|
+
|
|
591
|
+

|
|
592
|
+
|
|
576
593
|
## Requirements
|
|
577
594
|
|
|
578
595
|
- Node.js >= 20
|
|
@@ -591,4 +608,4 @@ MIT © Siyavuya Chagi
|
|
|
591
608
|
|
|
592
609
|
---
|
|
593
610
|
|
|
594
|
-
Built with ❤️ in South Africa 🇿🇦
|
|
611
|
+
Built with ❤️ in South Africa 🇿🇦
|
package/bin/typesharp.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
10
|
-
const package_json_1 = require("../../package.json");
|
|
11
|
-
const create_sample_config_1 = require("../core/create-sample-config");
|
|
12
|
-
const program = new commander_1.Command();
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
import { generate } from '../core/index.js';
|
|
4
|
+
import chalk from 'chalk';
|
|
5
|
+
import pkg from '../../package.json' with { type: 'json' };
|
|
6
|
+
import { createSampleConfig } from '../core/create-sample-config.js';
|
|
7
|
+
const { version, name, description } = pkg;
|
|
8
|
+
const program = new Command();
|
|
13
9
|
program
|
|
14
|
-
.name(
|
|
15
|
-
.description(
|
|
16
|
-
.version(
|
|
10
|
+
.name(name)
|
|
11
|
+
.description(description)
|
|
12
|
+
.version(version)
|
|
17
13
|
.usage('[command] [options]');
|
|
18
14
|
// Generate command (default)
|
|
19
15
|
program
|
|
@@ -23,7 +19,7 @@ program
|
|
|
23
19
|
.option('--no-incremental', 'Disable incremental generation (full clean)')
|
|
24
20
|
.action(async (options) => {
|
|
25
21
|
try {
|
|
26
|
-
await
|
|
22
|
+
await generate(options.config, options.incremental !== false);
|
|
27
23
|
process.exit(0);
|
|
28
24
|
}
|
|
29
25
|
catch (error) {
|
|
@@ -39,15 +35,15 @@ program
|
|
|
39
35
|
try {
|
|
40
36
|
const format = options.format;
|
|
41
37
|
if (!['ts', 'js', 'json'].includes(format)) {
|
|
42
|
-
console.error(
|
|
38
|
+
console.error(chalk.red.bold('❌ Invalid format.') + ' Use: ' + chalk.yellow('json, ts, ') + 'or' + chalk.yellow(' js'));
|
|
43
39
|
process.exit(1);
|
|
44
40
|
}
|
|
45
|
-
|
|
41
|
+
createSampleConfig(format);
|
|
46
42
|
process.exit(0);
|
|
47
43
|
}
|
|
48
44
|
catch (error) {
|
|
49
45
|
if (error instanceof Error) {
|
|
50
|
-
console.error(
|
|
46
|
+
console.error(chalk.red.bold(`❌ Error:`), chalk.white(error.message));
|
|
51
47
|
}
|
|
52
48
|
process.exit(1);
|
|
53
49
|
}
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;AAC3C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,IAAI,CAAC;KACV,WAAW,CAAC,WAAW,CAAC;KACxB,OAAO,CAAC,OAAO,CAAC;KAChB,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAEhC,6BAA6B;AAC7B,OAAO;KACJ,OAAO,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;KACxC,WAAW,C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AK,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sample-config.d.ts","sourceRoot":"","sources":["../../src/core/create-sample-config.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,IAAI,GAAG,IAAI,GAAG,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"create-sample-config.d.ts","sourceRoot":"","sources":["../../src/core/create-sample-config.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,IAAI,GAAG,IAAI,GAAG,MAAM,KAAG,IA0CjE,CAAA"}
|
|
@@ -1,54 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.createSampleConfig = void 0;
|
|
40
|
-
const fs = __importStar(require("fs"));
|
|
41
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import chalk from "chalk";
|
|
42
3
|
/**
|
|
43
4
|
* Create a sample configuration file
|
|
44
5
|
*/
|
|
45
|
-
const createSampleConfig = (format) => {
|
|
6
|
+
export const createSampleConfig = (format) => {
|
|
46
7
|
const sampleConfig = {
|
|
47
8
|
source: [
|
|
48
9
|
'C:/Users/User/Desktop/MyApp/MyApp.sln',
|
|
49
10
|
],
|
|
50
11
|
outputPath: './app/types',
|
|
51
|
-
targetAnnotation: 'TypeSharp',
|
|
52
12
|
singleOutputFile: false,
|
|
53
13
|
namingConvention: 'camel',
|
|
54
14
|
fileSuffix: ''
|
|
@@ -65,7 +25,7 @@ const createSampleConfig = (format) => {
|
|
|
65
25
|
}
|
|
66
26
|
else {
|
|
67
27
|
fileName = 'typesharp.config.ts';
|
|
68
|
-
|
|
28
|
+
const namespace = '@siyavuyachagi/typesharp';
|
|
69
29
|
content = [
|
|
70
30
|
`import type { TypeSharpConfig } from '${namespace}';`,
|
|
71
31
|
``,
|
|
@@ -78,16 +38,16 @@ const createSampleConfig = (format) => {
|
|
|
78
38
|
const allConfigFiles = ['typesharp.config.ts', 'typesharp.config.js', 'typesharp.config.json'];
|
|
79
39
|
const existingConfig = allConfigFiles.find(f => fs.existsSync(f));
|
|
80
40
|
if (existingConfig) {
|
|
81
|
-
console.log(
|
|
41
|
+
console.log(chalk.yellow.bold('❗ Warning:'), chalk.white(`${existingConfig} already exists. Skipping creation.`));
|
|
82
42
|
return;
|
|
83
43
|
}
|
|
84
44
|
fs.writeFileSync(fileName, content, 'utf-8');
|
|
85
|
-
console.log(
|
|
45
|
+
console.log(chalk.gray('└── ') + chalk.blue(`./${fileName}`));
|
|
86
46
|
};
|
|
87
|
-
exports.createSampleConfig = createSampleConfig;
|
|
88
47
|
/**
|
|
89
48
|
* Format a plain object as a JS/TS object literal (no quoted keys)
|
|
90
49
|
*/
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
91
51
|
const formatAsJsObject = (obj, indent = 0) => {
|
|
92
52
|
const pad = ' '.repeat(indent + 2);
|
|
93
53
|
const closePad = ' '.repeat(indent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sample-config.js","sourceRoot":"","sources":["../../src/core/create-sample-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-sample-config.js","sourceRoot":"","sources":["../../src/core/create-sample-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAA4B,EAAQ,EAAE;IACrE,MAAM,YAAY,GAAoB;QAClC,MA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AAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,QAAQ,GAAG,CAAC;AACnD,CAAC,CAAA"}
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAsD/D;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,OAAO,CAAC,eAAe,CAAC,KAAG,eAsBpE,CAAC;AAMF,wBAAsB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,WAAW,GAAE,OAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CA0C9F;AAuCD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,QAoB/C;AAkCD;;GAEG;AACH,wBAAsB,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAqB9E"}
|