okai 0.0.7 → 0.0.8
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/client.js +1 -1
- package/dist/cs-apis.js +2 -2
- package/dist/cs-ast.js +2 -2
- package/dist/cs-gen.js +1 -1
- package/dist/cs-migrations.js +2 -2
- package/dist/index.js +8 -8
- package/dist/okai.js +1 -1
- package/dist/ts-ast.js +1 -1
- package/dist/tsd-gen.js +1 -1
- package/package.json +2 -1
package/dist/client.js
CHANGED
package/dist/cs-apis.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getGroupName, splitCase } from "./utils";
|
2
|
-
import { CSharpGenerator } from "./cs-gen";
|
1
|
+
import { getGroupName, splitCase } from "./utils.js";
|
2
|
+
import { CSharpGenerator } from "./cs-gen.js";
|
3
3
|
export class CSharpApiGenerator extends CSharpGenerator {
|
4
4
|
toApiClass(op) {
|
5
5
|
const cls = op.request;
|
package/dist/cs-ast.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { plural, toPascalCase } from "./utils";
|
2
|
-
import { Icons } from "./icons";
|
1
|
+
import { plural, toPascalCase } from "./utils.js";
|
2
|
+
import { Icons } from "./icons.js";
|
3
3
|
const sys = (name, genericArgs) => ({ name, namespace: "System", genericArgs });
|
4
4
|
const sysObj = sys("object");
|
5
5
|
const sysDictObj = { name: "Dictionary", genericArgs: ["string", "object"], namespace: "System.Collections.Generic" };
|
package/dist/cs-gen.js
CHANGED
package/dist/cs-migrations.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CSharpGenerator } from "./cs-gen";
|
2
|
-
import { indentLines } from "./utils";
|
1
|
+
import { CSharpGenerator } from "./cs-gen.js";
|
2
|
+
import { indentLines } from "./utils.js";
|
3
3
|
export class CSharpMigrationGenerator extends CSharpGenerator {
|
4
4
|
generate(ast) {
|
5
5
|
this.namespaces = Array.from(new Set([
|
package/dist/index.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import fs from "fs";
|
2
2
|
import path from "path";
|
3
3
|
import blessed from 'blessed';
|
4
|
-
import { projectInfo } from './info';
|
5
|
-
import { getGroupName, leftPart, replaceMyApp, trimStart } from "./utils";
|
6
|
-
import { toAst } from "./ts-ast";
|
7
|
-
import { toMetadataTypes } from "./cs-ast";
|
8
|
-
import { CSharpApiGenerator } from "./cs-apis";
|
9
|
-
import { CSharpMigrationGenerator } from "./cs-migrations";
|
10
|
-
import { TsdDataModelGenerator } from "./tsd-gen";
|
11
|
-
import { parseTsdHeader, toTsdHeader } from "./client";
|
4
|
+
import { projectInfo } from './info.js';
|
5
|
+
import { getGroupName, leftPart, replaceMyApp, trimStart } from "./utils.js";
|
6
|
+
import { toAst } from "./ts-ast.js";
|
7
|
+
import { toMetadataTypes } from "./cs-ast.js";
|
8
|
+
import { CSharpApiGenerator } from "./cs-apis.js";
|
9
|
+
import { CSharpMigrationGenerator } from "./cs-migrations.js";
|
10
|
+
import { TsdDataModelGenerator } from "./tsd-gen.js";
|
11
|
+
import { parseTsdHeader, toTsdHeader } from "./client.js";
|
12
12
|
function normalizeSwitches(cmd) { return cmd.replace(/^-+/, '/'); }
|
13
13
|
function parseArgs(...args) {
|
14
14
|
const ret = {
|
package/dist/okai.js
CHANGED
package/dist/ts-ast.js
CHANGED
package/dist/tsd-gen.js
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "okai",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.8",
|
5
5
|
"bin": "./dist/okai.js",
|
6
6
|
"main": "./dist/index.js",
|
7
7
|
"module": "./dist/index.js",
|
@@ -13,6 +13,7 @@
|
|
13
13
|
},
|
14
14
|
"scripts": {
|
15
15
|
"build": "bun run clean && tsc",
|
16
|
+
"build-bun": "bun run clean && bun build.ts",
|
16
17
|
"clean": "shx rm -rf ./dist",
|
17
18
|
"test": "bun test --",
|
18
19
|
"prepublishOnly": "bun run build",
|