@gooddata/catalog-export 11.55.0-alpha.1 → 11.55.0-alpha.3
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/esm/__version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "11.55.0-alpha.
|
|
1
|
+
export declare const LIB_VERSION = "11.55.0-alpha.3";
|
|
2
2
|
export declare const LIB_DESCRIPTION = "GoodData SDK Catalog Export tooling";
|
|
3
3
|
export declare const LIB_NAME = "@gooddata/catalog-export";
|
|
4
4
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2021 GoodData Corporation
|
|
2
2
|
// DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
|
|
3
|
-
export const LIB_VERSION = "11.55.0-alpha.
|
|
3
|
+
export const LIB_VERSION = "11.55.0-alpha.3";
|
|
4
4
|
export const LIB_DESCRIPTION = "GoodData SDK Catalog Export tooling";
|
|
5
5
|
export const LIB_NAME = "@gooddata/catalog-export";
|
|
@@ -2,7 +2,7 @@ import { type WorkspaceMetadata } from "../base/types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Exports project metadata into javascript file containing sdk-model entity definitions (attribute, measure, etc)
|
|
4
4
|
*
|
|
5
|
-
* This is done by generating typescript code & then running it through
|
|
5
|
+
* This is done by generating typescript code & then running it through oxc-transform which strips away the
|
|
6
6
|
* type annotations.
|
|
7
7
|
*
|
|
8
8
|
* @param projectMetadata - project metadata to export into javascript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaToJavascript.d.ts","sourceRoot":"","sources":["../../src/exports/metaToJavascript.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC5C,eAAe,EAAE,iBAAiB,EAClC,UAAU,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"metaToJavascript.d.ts","sourceRoot":"","sources":["../../src/exports/metaToJavascript.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC5C,eAAe,EAAE,iBAAiB,EAClC,UAAU,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAqBf"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import * as fs from "fs";
|
|
3
|
-
import { transform } from "
|
|
3
|
+
import { transform } from "oxc-transform";
|
|
4
4
|
import { format } from "oxfmt";
|
|
5
5
|
import { transformToTypescript } from "../transform/toTypescript.js";
|
|
6
6
|
/**
|
|
7
7
|
* Exports project metadata into javascript file containing sdk-model entity definitions (attribute, measure, etc)
|
|
8
8
|
*
|
|
9
|
-
* This is done by generating typescript code & then running it through
|
|
9
|
+
* This is done by generating typescript code & then running it through oxc-transform which strips away the
|
|
10
10
|
* type annotations.
|
|
11
11
|
*
|
|
12
12
|
* @param projectMetadata - project metadata to export into javascript
|
|
@@ -19,8 +19,11 @@ export async function exportMetadataToJavascript(projectMetadata, outputFile) {
|
|
|
19
19
|
parser: "typescript",
|
|
20
20
|
printWidth: 120,
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
// oxc-transform infers the source language from the file name, so pass a .ts name to ensure
|
|
23
|
+
// the TypeScript type annotations are stripped (the emitted file itself is the .js outputFile).
|
|
24
|
+
const { code: javascript } = await transform(outputFile.replace(/\.[^./\\]+$/, ".ts"), formattedTypescript.code);
|
|
25
|
+
const formattedJavascript = await format(outputFile, javascript, {
|
|
26
|
+
printWidth: 120,
|
|
24
27
|
});
|
|
25
|
-
fs.writeFileSync(outputFile,
|
|
28
|
+
fs.writeFileSync(outputFile, formattedJavascript.code, { encoding: "utf-8" });
|
|
26
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/catalog-export",
|
|
3
|
-
"version": "11.55.0-alpha.
|
|
3
|
+
"version": "11.55.0-alpha.3",
|
|
4
4
|
"description": "GoodData SDK Catalog Export tooling",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -22,25 +22,22 @@
|
|
|
22
22
|
"types": "./esm/index.d.ts",
|
|
23
23
|
"exports": "./esm/index.js",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@babel/core": "7.28.4",
|
|
26
|
-
"@babel/plugin-transform-typescript": "^7.23.5",
|
|
27
25
|
"chalk": "5.3.0",
|
|
28
26
|
"commander": "8.3.0",
|
|
29
27
|
"dotenv": "16.4.5",
|
|
30
|
-
"inquirer": "
|
|
28
|
+
"inquirer": "9.3.8",
|
|
31
29
|
"lodash-es": "^4.17.23",
|
|
32
|
-
"open": "
|
|
33
|
-
"ora": "
|
|
30
|
+
"open": "7.4.2",
|
|
31
|
+
"ora": "5.4.1",
|
|
32
|
+
"oxc-transform": "0.147.0",
|
|
34
33
|
"oxfmt": "0.52.0",
|
|
35
|
-
"
|
|
36
|
-
"strip-ansi": "^6.0.0",
|
|
34
|
+
"strip-ansi": "6.0.1",
|
|
37
35
|
"ts-morph": "27.0.2",
|
|
38
36
|
"tslib": "2.8.1",
|
|
39
|
-
"@gooddata/
|
|
40
|
-
"@gooddata/
|
|
37
|
+
"@gooddata/api-client-tiger": "11.55.0-alpha.3",
|
|
38
|
+
"@gooddata/sdk-model": "11.55.0-alpha.3"
|
|
41
39
|
},
|
|
42
40
|
"devDependencies": {
|
|
43
|
-
"@types/babel__core": "7.20.5",
|
|
44
41
|
"@types/inquirer": "9.0.10",
|
|
45
42
|
"@types/lodash-es": "4.17.12",
|
|
46
43
|
"@types/node": "24.12.0",
|
|
@@ -49,21 +46,19 @@
|
|
|
49
46
|
"@typescript/native-preview": "7.0.0-dev.20260202.1",
|
|
50
47
|
"dependency-cruiser": "17.3.10",
|
|
51
48
|
"eslint": "^9.39.2",
|
|
52
|
-
"eslint-import-resolver-typescript": "4.4.4",
|
|
53
49
|
"eslint-plugin-headers": "1.3.3",
|
|
54
50
|
"eslint-plugin-import-esm": "1.2.1",
|
|
55
|
-
"eslint-plugin-import-x": "4.16.1",
|
|
56
51
|
"eslint-plugin-jsdoc": "62.1.0",
|
|
57
52
|
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
58
53
|
"eslint-plugin-sonarjs": "3.0.6",
|
|
59
54
|
"happy-dom": "20.9.0",
|
|
60
55
|
"npm-run-all": "4.1.5",
|
|
61
|
-
"oxlint": "1.
|
|
56
|
+
"oxlint": "1.57.0",
|
|
62
57
|
"oxlint-tsgolint": "0.15.0",
|
|
63
58
|
"typescript": "5.9.3",
|
|
64
59
|
"vitest": "4.1.8",
|
|
65
|
-
"@gooddata/eslint-config": "11.55.0-alpha.
|
|
66
|
-
"@gooddata/oxlint-config": "11.55.0-alpha.
|
|
60
|
+
"@gooddata/eslint-config": "11.55.0-alpha.3",
|
|
61
|
+
"@gooddata/oxlint-config": "11.55.0-alpha.3"
|
|
67
62
|
},
|
|
68
63
|
"scripts": {
|
|
69
64
|
"_phase:build": "npm run build",
|