Skip to content

Commit a269daa

Browse files
committedSep 23, 2024·
feat: build package with type definitions
1 parent 1c88c51 commit a269daa

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"node": "^14.15.0 || >=16.10.0"
88
},
99
"main": "build/index.js",
10+
"typings": "build/index.d.ts",
1011
"repository": {
1112
"type": "git",
1213
"url": "git+https://github.com/thymikee/jest-preset-angular.git"

‎src/serializers/ng-snapshot.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ const test: OldPlugin['test'] = (val) => !!val && typeof val === 'object' && 'co
7070
export = {
7171
print,
7272
test,
73-
} as OldPlugin;
73+
};

‎tsconfig.build.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"outDir": "./build",
55
"allowJs": true,
66
"removeComments": true,
7-
"stripInternal": true
7+
"stripInternal": true,
8+
"declaration": true
89
},
910
"include": ["src"],
1011
"exclude": ["**/*.spec.ts", "src/transformers/jit_transform.js"]

0 commit comments

Comments
 (0)