Skip to content

Commit

Permalink
feat(esm): moving apollo utils to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Jan 3, 2025
1 parent 51e34e7 commit bebe361
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
8 changes: 0 additions & 8 deletions packages/apollo-utils/jest.config.js

This file was deleted.

16 changes: 16 additions & 0 deletions packages/apollo-utils/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Config } from 'jest';

const config: Config = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(jest|spec).[jt]s?(x)'],
testPathIgnorePatterns: ['/dist/'],
setupFiles: ['./jest.setup.ts'],
setupFilesAfterEnv: ['jest-extended/all'],
moduleNameMapper: {
"^(\\.\\/.+)\\.js$": "$1",
"^(\\..\\/.+)\\.js$": "$1"
},
};

export default config;
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/apollo-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
},
"license": "Apache-2.0",
"author": "",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"dist",
"package.json"
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default tseslint.config(
'**/*.js',
'codegen.ts',
'prisma/**/*',
'jest.config.ts',
'jest.setup.ts',
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"emitDecoratorMetadata": true,
"rewriteRelativeImportExtensions": true,
"allowImportingTsExtensions": true,
"target": "ES2024",
"target": "ESNext",
"module": "NodeNext",
"moduleResolution": "nodenext",
"lib": [
Expand Down

0 comments on commit bebe361

Please sign in to comment.