Skip to content

Commit

Permalink
feat: build package with type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Sep 23, 2024
1 parent 1c88c51 commit a269daa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/serializers/ng-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ const test: OldPlugin['test'] = (val) => !!val && typeof val === 'object' && 'co
export = {
print,
test,
} as OldPlugin;
};
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit a269daa

Please sign in to comment.