diff --git a/package.json b/package.json index 23c2eed54a..492cefa6f6 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "node": "^14.15.0 || >=16.10.0" }, "main": "build/index.js", + "typings": "build/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/thymikee/jest-preset-angular.git" diff --git a/src/serializers/ng-snapshot.ts b/src/serializers/ng-snapshot.ts index b5c1500472..14b4f1e0fd 100644 --- a/src/serializers/ng-snapshot.ts +++ b/src/serializers/ng-snapshot.ts @@ -70,4 +70,4 @@ const test: OldPlugin['test'] = (val) => !!val && typeof val === 'object' && 'co export = { print, test, -} as OldPlugin; +}; diff --git a/tsconfig.build.json b/tsconfig.build.json index 898508c36f..500cd4c8b2 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -4,7 +4,8 @@ "outDir": "./build", "allowJs": true, "removeComments": true, - "stripInternal": true + "stripInternal": true, + "declaration": true }, "include": ["src"], "exclude": ["**/*.spec.ts", "src/transformers/jit_transform.js"]