Skip to content

Commit

Permalink
feat: Build & publish type declarations (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
sufian-slack authored Feb 1, 2024
1 parent c7bdf28 commit 08803e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.31",
"description": "swc integration for jest",
"main": "index.js",
"types": "index.d.ts",
"homepage": "https://github.com/swc-project/jest",
"scripts": {
"build": "npm run lint && tsc",
Expand Down Expand Up @@ -43,7 +44,8 @@
"npm": ">= 7.0.0"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],
"workspaces": [
"examples/react"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
Expand Down

0 comments on commit 08803e7

Please sign in to comment.