Skip to content

Commit

Permalink
feat: Update tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-sharma7 committed Oct 14, 2024
1 parent e54be88 commit 381a252
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './function';
export * from './function.js';
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { convertTimeZone, getCurrentTimeInZone, getTimeDifference } from '../src/function';
import { convertTimeZone, getCurrentTimeInZone, getTimeDifference } from '../src/function.js';

describe('Timezone-Aware Date Helper', () => {
it('should convert date between timezones', () => {
Expand Down
26 changes: 19 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
{
"compilerOptions": {
"target": "ES6",
"module": "ESNext",
"declaration": true,
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"outDir": "./dist",
"rootDir": "./src",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,
"allowImportingTsExtensions": true,
/* Strictness */
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
/* If transpiling with TypeScript: */
"module": "NodeNext",
"lib": ["es2022"],
"noEmit": true
},
"include": ["src"],
"exclude": ["node_modules"]
"include": ["src/**/*"]
}

0 comments on commit 381a252

Please sign in to comment.