Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Commit c061453

Browse files
committed
fix build for npm publish
1 parent c5cc45c commit c061453

File tree

5 files changed

+30
-17
lines changed

5 files changed

+30
-17
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ node_modules
22
coverage
33
.idea
44
*.iml
5-
dist
5+
dist
6+
lib/*.d.ts
7+
lib/*.js
8+
index.js
9+
index.d.ts

.npmignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
test/
2+
node_modules/
3+
4+
.editorconfig
5+
.gitignore
6+
.travis.yml
7+
jest.config.js
8+
tsconfig.json
9+
tslint.json
10+
yarn.lock
11+
12+
# ignore the .ts files
13+
*.ts
14+
15+
# include the .d.ts files
16+
!*.d.ts

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,14 @@ See here: https://yarnpkg.com/en/docs/cli/link
329329
330330
## Release History
331331
332-
* 0.7.1
332+
* 0.7.2
333333
* code style cleanup
334334
* fix: hosted package on npmjs should now worked
335335
* 0.7.0
336336
* migrate to typescript
337337
* using aws-lambda typings
338338
* proxyIntegration: cors is now optional (default: false)
339+
* removed use of aws lambda handler callback function (using Promise instead)
339340
* experimental _proxy path support_ (thanks to [@swaner](https://github.com/swaner))
340341
* 0.6.2
341342
* take away old gulp dependency to run tests, works now with scripts in package.json

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "aws-lambda-router",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "AWS lambda router",
5-
"main": "dist/index.js",
6-
"types": "dist/index.d.ts",
5+
"main": "index.js",
6+
"types": "index.d.ts",
77
"scripts": {
8-
"test": "jest --coverage",
9-
"build": "tsc"
8+
"test": "yarn clean && jest --coverage",
9+
"build": "tsc",
10+
"clean": "rm -f lib/*.d.ts lib/*.js index.js index.d.ts"
1011
},
1112
"repository": {
1213
"type": "git",
@@ -22,9 +23,6 @@
2223
"routing",
2324
"s3"
2425
],
25-
"files": [
26-
"dist/**/*"
27-
],
2826
"author": "Christian Gohlke <[email protected]> (https://www.welt.de)",
2927
"license": "Apache-2.0",
3028
"bugs": {

tsconfig.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"lib": [
55
"es2017"
66
],
7-
"outDir": "./dist",
87
"module": "commonjs",
98
"moduleResolution": "node",
109
"target": "es2017",
@@ -15,10 +14,5 @@
1514
"exclude": [
1615
"./test/**",
1716
"./dist/**"
18-
],
19-
"paths": {
20-
"*": [
21-
"dist/*"
22-
]
23-
}
17+
]
2418
}

0 commit comments

Comments
 (0)