Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit be4a18f

Browse files
authored
remove .d from types extension (#62)
* remove .d from types extension `.d` is meant for ambient types, for example module augmentation; in these cases however, types are explicitly exported and used directly. It's not a huge deal, but it doesn't work in some cases, for example, with `tsconfig-paths-jest`, which expects plain `index.ts` files. * fix generate patterns
1 parent a2b631a commit be4a18f

File tree

9 files changed

+3
-3
lines changed

9 files changed

+3
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

internals/generators/container/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ module.exports = {
186186
});
187187
actions.push({
188188
type: 'modify',
189-
path: '../../app/types/index.d.ts',
189+
path: '../../app/types/index.ts',
190190
pattern: new RegExp(/.*\/\/.*\[IMPORT NEW CONTAINERSTATE ABOVE\].+\n/),
191191
templateFile: './container/importContainerState.hbs',
192192
abortOnFail: true,
193193
});
194194
actions.push({
195195
type: 'modify',
196-
path: '../../app/types/index.d.ts',
196+
path: '../../app/types/index.ts',
197197
pattern: new RegExp(/.*\/\/.*\[INSERT NEW REDUCER KEY ABOVE\].+\n/),
198198
templateFile: './container/appendApplicationRootState.hbs',
199199
abortOnFail: true,

internals/scripts/generate-templates-for-linting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ async function generateContainer({ name, memo }) {
295295
* @returns {Promise<[string]>}
296296
*/
297297
async function generateComponents(components) {
298-
const typesPath = '../../app/types/index.d.ts'
298+
const typesPath = '../../app/types/index.ts'
299299

300300
const promises = components.map(async component => {
301301
let result;

0 commit comments

Comments
 (0)