Skip to content

Commit 3789f08

Browse files
committed
Remove unnecessary files from NPM package.
Fix NPM main and types config.
1 parent 8adda59 commit 3789f08

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
yarn.lock
33
build/
44
test.jpeg
5+
*.tgz

.npmignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
src/
2+
middleware/
3+
build/test/
4+
test-resources/
5+
thirdfonts/
6+
.clang-format
7+
.gcloudignore
8+
.github
9+
.travis.yml
10+
.vscode
11+
app.yaml
12+
config.json
13+
get-docker.sh
14+
test.jpeg
15+
tsconfig.json
16+
tslint.json
17+
*.tgz

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## Unreleased
4+
* Remove testing and other files from NPM package.
5+
* Fix NPM main config.
6+
37
## [2.0.0] 2018-07-26
48
* Rebuilt with Puppeteer under the hood
59
* Rebuilt as Koa server instead of an Express server

middleware/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/*
2+
build/test/
3+
tsconfig.json
4+
*.tgz

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"engines": {
88
"node": ">=7"
99
},
10-
"main": "src/main.js",
11-
"types": "src/main.d.ts",
10+
"main": "build/rendertron.js",
11+
"types": "build/rendertron.d.ts",
1212
"bin": "bin/rendertron",
1313
"scripts": {
1414
"build": "tsc",

0 commit comments

Comments
 (0)