jsii 5.4.32-dev.2 → 5.4.32
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/lib/assembler.js +3 -1
- package/lib/assembler.js.map +1 -1
- package/lib/compiler.js +8 -2
- package/lib/compiler.js.map +1 -1
- package/lib/downlevel-dts.d.ts +3 -3
- package/lib/downlevel-dts.js +11 -8
- package/lib/downlevel-dts.js.map +1 -1
- package/lib/helpers.d.ts +9 -0
- package/lib/helpers.js +16 -1
- package/lib/helpers.js.map +1 -1
- package/lib/tsconfig/rulesets/incompatible-options.js +1 -0
- package/lib/tsconfig/rulesets/incompatible-options.js.map +1 -1
- package/lib/tsconfig/rulesets/strict.public.js +1 -0
- package/lib/tsconfig/rulesets/strict.public.js.map +1 -1
- package/lib/version.d.ts +2 -2
- package/lib/version.js +2 -2
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/lib/assembler.js
CHANGED
|
@@ -14,6 +14,7 @@ const Case = require("./case");
|
|
|
14
14
|
const symbol_id_1 = require("./common/symbol-id");
|
|
15
15
|
const directives_1 = require("./directives");
|
|
16
16
|
const docs_1 = require("./docs");
|
|
17
|
+
const helpers_1 = require("./helpers");
|
|
17
18
|
const jsii_diagnostic_1 = require("./jsii-diagnostic");
|
|
18
19
|
const literate = require("./literate");
|
|
19
20
|
const bindings = require("./node-bindings");
|
|
@@ -76,7 +77,8 @@ class Assembler {
|
|
|
76
77
|
let mainFile = dts.replace(/\.d\.ts(x?)$/, '.ts$1');
|
|
77
78
|
// If out-of-source build was configured (tsc's outDir and rootDir), the
|
|
78
79
|
// main file's path needs to be re-rooted from the outDir into the rootDir.
|
|
79
|
-
|
|
80
|
+
// outDir might be also be absolute, so we need to normalize it.
|
|
81
|
+
const tscOutDir = (0, helpers_1.normalizeConfigPath)(projectInfo.projectRoot, program.getCompilerOptions().outDir);
|
|
80
82
|
if (tscOutDir != null) {
|
|
81
83
|
mainFile = path.relative(tscOutDir, mainFile);
|
|
82
84
|
// rootDir may be set explicitly or not. If not, inferRootDir replicates
|