@jay-framework/compiler-analyze-exported-types 0.6.9 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.js +14 -11
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -3,6 +3,11 @@ import { createRequire } from "module";
3
3
  import path from "path";
4
4
  import ts from "typescript";
5
5
  import { JayUnknown, JayElementType, JayObjectType, JayElementConstructorType, JayComponentApiMember, JayComponentType, resolvePrimitiveType, JayArrayType, JAY_COMPONENT, MAKE_JAY_COMPONENT } from "@jay-framework/compiler-shared";
6
+ const s = createRequire(import.meta.url), e = s("typescript"), c = new Proxy(e, {
7
+ get(t, r) {
8
+ return t[r];
9
+ }
10
+ });
6
11
  function resolveTsConfig(options) {
7
12
  const tsConfigPath = path.resolve(process.cwd(), options.relativePath || "tsconfig.json");
8
13
  if (!ts.sys.fileExists(tsConfigPath)) {
@@ -14,26 +19,24 @@ function resolveTsConfig(options) {
14
19
  }
15
20
  return tsConfigPath;
16
21
  }
17
- const require2 = createRequire(import.meta.url);
18
- const tsModule = require2("typescript");
19
22
  const {
20
- convertCompilerOptionsFromJson,
21
- createProgram,
22
23
  isCallExpression,
23
24
  isFunctionDeclaration,
24
25
  isIdentifier,
26
+ SyntaxKind,
27
+ isStringLiteral,
28
+ isQualifiedName,
29
+ isTypeReferenceNode,
30
+ isPropertySignature,
31
+ convertCompilerOptionsFromJson,
32
+ createProgram,
25
33
  isImportDeclaration,
26
34
  isInterfaceDeclaration,
27
35
  isNamedImports,
28
- isPropertySignature,
29
- isQualifiedName,
30
- isStringLiteral,
31
36
  isTypeAliasDeclaration,
32
- isTypeReferenceNode,
33
37
  isVariableStatement,
34
- parseConfigFileTextToJson,
35
- SyntaxKind
36
- } = tsModule;
38
+ parseConfigFileTextToJson
39
+ } = c;
37
40
  function getTypeName(typeName) {
38
41
  if (isIdentifier(typeName))
39
42
  return typeName.text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/compiler-analyze-exported-types",
3
- "version": "0.6.9",
3
+ "version": "0.7.0",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "author": "",
27
27
  "dependencies": {
28
- "@jay-framework/compiler-shared": "^0.6.9",
29
- "@jay-framework/component": "^0.6.9",
30
- "@jay-framework/runtime": "^0.6.9",
31
- "@jay-framework/secure": "^0.6.9",
28
+ "@jay-framework/compiler-shared": "^0.7.0",
29
+ "@jay-framework/component": "^0.7.0",
30
+ "@jay-framework/runtime": "^0.7.0",
31
+ "@jay-framework/secure": "^0.7.0",
32
32
  "@types/js-yaml": "^4.0.9",
33
33
  "change-case": "^4.1.2",
34
34
  "js-yaml": "^4.1.0",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@caiogondim/strip-margin": "^1.0.0",
41
- "@jay-framework/dev-environment": "^0.6.9",
41
+ "@jay-framework/dev-environment": "^0.7.0",
42
42
  "@testing-library/jest-dom": "^6.2.0",
43
43
  "@types/js-beautify": "^1",
44
44
  "@types/node": "^20.11.5",