Skip to content

Commit 2020749

Browse files
author
Ryota Yamamoto
committed
fix: fix to export types
1 parent ee0a21f commit 2020749

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

Diff for: package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
"lint:fix": "eslint --ext .ts --ext .js --fix src test"
2626
},
2727
"files": [
28-
"lib",
29-
"types/*.d.ts"
28+
"lib"
3029
],
31-
"typings": "./types/index.d.ts",
30+
"typings": "./lib/index.d.ts",
3231
"devDependencies": {
3332
"@semantic-release/changelog": "^3.0.2",
3433
"@semantic-release/commit-analyzer": "^6.1.0",

Diff for: types/index.d.ts renamed to src/declaration.d.ts

File renamed without changes.

Diff for: src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './declaration.d'
12
import createJsonldMixin from './createMixin';
23
import decorator from './decorator';
34

Diff for: tsconfig.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
"outDir": "./lib/",
88
"target": "es5",
99
"sourceMap": false,
10-
"declaration": true,
11-
"types": [
12-
"./types/"
13-
],
10+
"declaration": true
1411
},
1512
"include": [
1613
"src/**/*"

Diff for: tsconfig.test.json

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"allowJs": true,
88
"noEmit": true,
99
"types": [
10-
"./types/",
1110
"@types/jest"
1211
],
1312
},

0 commit comments

Comments
 (0)