diff --git a/package.json b/package.json index 5c72453..f08d44d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "description": "Gatsby v5 transformer for unified.js", "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "build": "tsc", "watch": "tsc --watch", diff --git a/tsconfig.json b/tsconfig.json index 3501ec9..add791c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -105,7 +105,8 @@ // "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", - "outDir": "./dist" + "outDir": "./dist", + "declaration": true }, "include": ["./src/**/*"], "exclude": [