Skip to content

Commit 17b7530

Browse files
authored
Merge pull request #110 from github/npmPackageCleanup
npm pack will only pack the code from dist
2 parents ed4e6e9 + c6b5ed8 commit 17b7530

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "tuf-js",
3-
"version": "0.0.0",
3+
"version": "0.0.1-alpha.1",
44
"description": "JavaScript implementation of The Update Framework (TUF)",
55
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"scripts": {
78
"build": "tsc",
89
"test": "jest",
@@ -16,6 +17,9 @@
1617
"type": "git",
1718
"url": "git+https://github.com/github/tuf-js.git"
1819
},
20+
"files": [
21+
"dist"
22+
],
1923
"keywords": [
2024
"tuf"
2125
],

tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"extends": "@tsconfig/node12/tsconfig.json",
33
"compilerOptions": {
4+
"declaration": true,
45
"noImplicitAny": true,
56
"outDir": "./dist"
67
},
7-
"include": [
8-
"src/**/*"
9-
],
10-
"exclude": ["node_modules", "**/*.test.ts"]
8+
"include": ["src/**/*"],
9+
"exclude": ["node_modules", "**/__tests__"]
1110
}

0 commit comments

Comments
 (0)