Skip to content

Commit 909534a

Browse files
committed
Merge branch 'master' of github.com:wikibus/heracles
2 parents 488f98c + fe3a4bc commit 909534a

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,4 @@ tags
113113

114114
dist/
115115
_book/
116+
lib/

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/types

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
"name": "alcaeus",
33
"version": "0.4.2",
44
"description": "Hydra Core hypermedia-aware client library",
5-
"main": "dist/alcaeus.js",
6-
"types": "types/src/index.d.ts",
5+
"main": "lib/index.js",
6+
"types": "types/index.d.ts",
77
"directories": {
88
"test": "tests"
99
},
1010
"files": [
1111
"dist",
12-
"types"
12+
"types",
13+
"lib",
14+
"src"
1315
],
1416
"scripts": {
1517
"test": "yarn lint; yarn run karma start --single-run",
16-
"build": "webpack; gitbook install; gitbook build . docs/latest",
18+
"build": "tsc; webpack; gitbook install; gitbook build . docs/latest",
1719
"lint": "tslint -p tsconfig.json",
1820
"prepublishOnly": "rm -rf dist; npm run build"
1921
},

tsconfig.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"outDir": "./dist/",
4-
"target": "es5",
5-
"module": "commonjs",
3+
"outDir": "./lib/",
4+
"target": "esnext",
5+
"module": "esnext",
66
"moduleResolution": "node",
77
"sourceMap": true,
88
"emitDecoratorMetadata": true,
@@ -11,16 +11,15 @@
1111
"noImplicitAny": false,
1212
"suppressImplicitAnyIndexErrors": false,
1313
"declaration": true,
14-
"declarationDir": "../types",
14+
"declarationDir": "types",
1515
"lib": [
1616
"es2017",
1717
"es2015",
1818
"dom"
1919
]
2020
},
2121
"include": [
22-
"src/**/*",
23-
"tests/**/*"
22+
"src/**/*"
2423
],
2524
"exclude": [
2625
"node_modules"

0 commit comments

Comments
 (0)