Skip to content

Commit 1396b23

Browse files
committed
Update package.json and tsconfig.json to be publish friendly
1 parent fa33e49 commit 1396b23

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"dev": "tsc --watch",
1111
"test": "tsc && karma start",
12-
"prepublish": "tsc"
12+
"prepublishOnly": "tsc"
1313
},
1414
"keywords": [
1515
"export-to-csv",
@@ -31,8 +31,8 @@
3131
"bugs": {
3232
"url": "https://github.com/alexcaza/export-to-csv/issues"
3333
},
34-
"main": "index.js",
35-
"typings": "export-to-csv.d.ts",
34+
"main": "./build/index.js",
35+
"types": "./build/export-to-csv.d.ts",
3636
"homepage": "https://github.com/alexcaza/export-to-csv#readme",
3737
"devDependencies": {
3838
"@types/jasmine": "^2.5.46",

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"es2015.promise",
1414
"es5"
1515
],
16-
"moduleResolution": "node"
16+
"moduleResolution": "node",
17+
"outDir": "./build"
1718
},
1819
"files": [
1920
"export-to-csv.ts",

0 commit comments

Comments
 (0)