@travetto/compiler 5.0.5 → 5.0.6
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 +1 -1
- package/src/state.ts +2 -2
package/package.json
CHANGED
package/src/state.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { CompilerUtil } from './util';
|
|
|
9
9
|
import { CompileEmitError, CompileStateEntry } from './types';
|
|
10
10
|
import { CommonUtil } from '../support/util';
|
|
11
11
|
|
|
12
|
-
const TYPINGS_FOLDER_KEYS = new Set<ManifestModuleFolderType>(['$index', 'support', 'src']);
|
|
12
|
+
const TYPINGS_FOLDER_KEYS = new Set<ManifestModuleFolderType>(['$index', 'support', 'src', '$package']);
|
|
13
13
|
const TYPINGS_EXT_RE = /[.]d[.][cm]?ts([.]map)?$/;
|
|
14
14
|
|
|
15
15
|
export class CompilerState implements ts.CompilerHost {
|
|
@@ -261,7 +261,7 @@ export class CompilerState implements ts.CompilerHost {
|
|
|
261
261
|
}
|
|
262
262
|
const location = this.#tscOutputFileToOuptut.get(outputFile) ?? outputFile;
|
|
263
263
|
|
|
264
|
-
if (TYPINGS_EXT_RE.test(outputFile)) {
|
|
264
|
+
if (TYPINGS_EXT_RE.test(outputFile) || outputFile.endsWith('package.json')) {
|
|
265
265
|
this.#writeExternalTypings(location, text, bom);
|
|
266
266
|
}
|
|
267
267
|
|