remove random commit items?

Signed-off-by: Spencer Henry <shenry@qualtrics.com>
This commit is contained in:
Spencer Henry
2022-10-18 09:26:44 -06:00
parent aff603e4bd
commit 51d891bcf7
3 changed files with 2 additions and 14 deletions
-12
View File
@@ -1,12 +0,0 @@
---
'@backstage/cli': patch
---
Removed `tsx` and `jsx` as supported extensions in backend packages. For most
repos, this will not have any effect. But if you inadvertently had added some
`tsx`/`jsx` files to your backend package, you may now start to see `code: 'MODULE_NOT_FOUND'` errors when launching the backend locally. The reason for
this is that the offending files get ignored during transpilation. Hence, the
importing file can no longer find anything to import.
The fix is to rename any `.tsx` files in your backend packages to `.ts` instead,
or `.jsx` to `.js`.
@@ -45,7 +45,7 @@ describe('PluginTaskManagerImpl', () => {
);
jest.useFakeTimers();
}, 60_000);
}, 30_000);
async function init(databaseId: TestDatabaseId) {
const knex = await databases.init(databaseId);
+1 -1
View File
@@ -267,7 +267,7 @@ export async function createBackendConfig(
paths.targetRunFile ? paths.targetRunFile : paths.targetEntry,
],
resolve: {
extensions: ['.ts', '.mjs', '.js', '.json'],
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
mainFields: ['main'],
modules: [paths.rootNodeModules, ...moduleDirs],
plugins: [