diff --git a/package.json b/package.json index 98b64cd..d3ee17a 100644 --- a/package.json +++ b/package.json @@ -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", @@ -43,7 +44,8 @@ "npm": ">= 7.0.0" }, "files": [ - "index.js" + "index.js", + "index.d.ts" ], "workspaces": [ "examples/react" diff --git a/tsconfig.json b/tsconfig.json index b61cb6b..29e846e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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. */