Skip to content

Commit 156b1c1

Browse files
committed
fix(npm): exclude all source files except what is needed to run
1 parent 7b279df commit 156b1c1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**
2+
*
3+
4+
!dist/**

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "container-registry-proxy",
33
"version": "2.0.0",
44
"description": "A simple container registry proxy.",
5-
"main": "src/index.ts",
5+
"main": "bin/index.js",
66
"repository": "https://github.com/Addono/container-registry-proxy.git",
77
"author": "Adriaan Knapen <[email protected]>",
88
"license": "MIT",
@@ -12,7 +12,7 @@
1212
"build": "tsc",
1313
"dev": "ts-node-dev src/index.ts",
1414
"snyk-protect": "snyk protect",
15-
"prepare": "yarn run snyk-protect"
15+
"prepare": "yarn run snyk-protect && yarn build"
1616
},
1717
"bin": {
1818
"container-registry-proxy": "./bin/index.js",
@@ -60,7 +60,7 @@
6060
[
6161
"@semantic-release/exec",
6262
{
63-
"prepareCmd": "yarn install && yarn build"
63+
"prepareCmd": "yarn install --frozen-lockfile"
6464
}
6565
],
6666
[

0 commit comments

Comments
 (0)