From 91b5c8061ed5390fe1f01ff83d5fa01d24f27a78 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Fri, 12 Mar 2021 16:57:08 -0500 Subject: [PATCH] chore: remove roleypoly/ path remappers --- jest.config.js | 6 ------ next-env.d.ts | 2 -- next.config.js | 7 ------- packages/api/webpack.config.js | 6 ------ tsconfig.json | 3 --- 5 files changed, 24 deletions(-) delete mode 100644 next-env.d.ts delete mode 100644 next.config.js diff --git a/jest.config.js b/jest.config.js index 96e97a9..d0732b9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,14 +1,8 @@ -const { pathsToModuleNameMapper } = require('ts-jest/utils'); -const { compilerOptions } = require('./tsconfig.json'); - module.exports = { preset: 'ts-jest/presets/js-with-babel', testEnvironment: 'enzyme', reporters: ['default'], setupFilesAfterEnv: ['jest-enzyme', 'jest-styled-components', './hack/jestSetup.ts'], - moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { - prefix: '/', - }), snapshotSerializers: ['enzyme-to-json/serializer'], globals: { 'ts-jest': { diff --git a/next-env.d.ts b/next-env.d.ts deleted file mode 100644 index 7b7aa2c..0000000 --- a/next-env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/next.config.js b/next.config.js deleted file mode 100644 index 7c1d7ba..0000000 --- a/next.config.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - // target: 'serverless', - publicRuntimeConfig: { - apiPublicURI: process.env.API_PUBLIC_URI, - uiPublicURI: process.env.UI_PUBLIC_URI, - }, -}; diff --git a/packages/api/webpack.config.js b/packages/api/webpack.config.js index 1fe5214..cfe44fc 100644 --- a/packages/api/webpack.config.js +++ b/packages/api/webpack.config.js @@ -1,5 +1,4 @@ const path = require('path'); -const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); const mode = process.env.NODE_ENV || 'production'; @@ -13,11 +12,6 @@ module.exports = { mode, resolve: { extensions: ['.ts', '.tsx', '.js'], - plugins: [ - new TsconfigPathsPlugin({ - configFile: path.resolve(__dirname, './tsconfig.json'), - }), - ], }, module: { rules: [ diff --git a/tsconfig.json b/tsconfig.json index d84d450..b99f6a8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,9 +18,6 @@ "skipLibCheck": true, "declaration": true, "moduleResolution": "node", - "paths": { - "roleypoly/*": ["./src/*"] - }, "allowJs": true, "forceConsistentCasingInFileNames": true, "noEmit": true,