-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
692 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"declarationMap": true, | ||
"emitDeclarationOnly": true, | ||
"inlineSources": true, | ||
"noEmit": false, | ||
"outDir": "dist/types", | ||
"rootDir": "./", | ||
"sourceMap": true | ||
}, | ||
"include": ["./index.ts", "./src/**/*.ts"], | ||
"exclude": [ | ||
"./src/**/__fixtures__/**/*", | ||
"./src/**/__mocks__/**/*", | ||
"./src/**/__test__/**/*", | ||
"./src/**/__tests__/**/*", | ||
"./src/**/__snapshots__/**/*", | ||
"./src/**/*.test.ts", | ||
"./src/**/*.test-d.ts", | ||
"./src/**/*.test.*.ts" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"esModuleInterop": true, | ||
"exactOptionalPropertyTypes": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"lib": ["ES2020"], | ||
"module": "CommonJS", | ||
"outDir": "dist/cjs", | ||
"sourceMap": true, | ||
"moduleResolution": "node", | ||
"noEmit": true, | ||
"noErrorTruncation": true, | ||
"noUncheckedIndexedAccess": true, | ||
"strict": true, | ||
"target": "ES2017" | ||
"target": "es2020" | ||
}, | ||
"include": [ | ||
"./**/*.ts" | ||
] | ||
"exclude": ["./dist", "**/node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
export default defineConfig({ | ||
// The entry to bundle. | ||
entry: [ | ||
'index.ts', | ||
], | ||
|
||
// The output formats. We want to generate both CommonJS and ESM bundles. | ||
// https://tsup.egoist.dev/#bundle-formats | ||
format: ['cjs', 'esm'], | ||
|
||
// Generate sourcemaps as separate files. | ||
// https://tsup.egoist.dev/#generate-sourcemap-file | ||
sourcemap: true, | ||
|
||
// Clean the dist folder before bundling. | ||
clean: true, | ||
|
||
// Hide unnecessary logs from the console. Warnings and errors will still be | ||
// shown. | ||
silent: true, | ||
}); |
Oops, something went wrong.