@snowtop/ent 0.2.0-alpha.5 → 0.2.0-alpha.6.test2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.2.0-alpha.5",
3
+ "version": "0.2.0-alpha.6.test2",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -60,6 +60,9 @@ function readCompilerOptions(filePath) {
60
60
  if (options.moduleResolution === "node") {
61
61
  options.moduleResolution = typescript_1.default.ModuleResolutionKind.NodeJs;
62
62
  }
63
+ if (options.target) {
64
+ options.target = getTarget(options.target.toString());
65
+ }
63
66
  return options;
64
67
  }
65
68
  exports.readCompilerOptions = readCompilerOptions;
@@ -92,7 +95,7 @@ function getTarget(target) {
92
95
  exports.getTarget = getTarget;
93
96
  function getTargetFromCurrentDir() {
94
97
  const options = readCompilerOptions(".");
95
- return getTarget(options.target?.toString());
98
+ return options.target ?? typescript_1.default.ScriptTarget.ESNext;
96
99
  }
97
100
  exports.getTargetFromCurrentDir = getTargetFromCurrentDir;
98
101
  function createSourceFile(target, file) {