Skip to content

Commit c9260d2

Browse files
committed
iBuilding the package
1 parent e824485 commit c9260d2

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
out
33
node_modules
44
docs
5+
dist
56

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"name": "etherscan-api",
33
"version": "100.0.0",
44
"description": "Next generation etherscan-api ",
5-
"main": "index.js",
65
"scripts": {
76
"test": "ava-ts -v",
87
"posttest": "npm run lint",
98
"lint": "tslint -c tslint.json 'src/**/*.ts'",
109
"docs": "typedoc --module etherscan-api --out docs ./src",
11-
"lint:api": "swagger-cli validate ./api/swagger/swagger.yaml"
10+
"lint:api": "swagger-cli validate ./api/swagger/swagger.yaml",
11+
"prepublish": "tsc"
1212
},
1313
"repository": {
1414
"type": "git",
@@ -19,6 +19,8 @@
1919
"api",
2020
"eth"
2121
],
22+
"main": "dist/index.js",
23+
"types": "dist/index.d.ts",
2224
"author": "S.Schürmann",
2325
"license": "MIT",
2426
"bugs": {

tsconfig.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2+
"exclude": [
3+
"./test/*"
4+
],
25
"compilerOptions": {
36
/* Basic Options */
4-
// "incremental": true, /* Enable incremental compilation */
7+
"incremental": true, /* Enable incremental compilation */
58
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
69
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
710
// "lib": [], /* Specify library files to be included in the compilation. */
@@ -12,8 +15,8 @@
1215
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
1316
// "sourceMap": true, /* Generates corresponding '.map' file. */
1417
// "outFile": "./", /* Concatenate and emit output to single file. */
15-
// "outDir": "./", /* Redirect output structure to the directory. */
16-
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
18+
"outDir": "./dist", /* Redirect output structure to the directory. */
19+
"rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
1720
// "composite": true, /* Enable project compilation */
1821
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
1922
// "removeComments": true, /* Do not emit comments to output. */

0 commit comments

Comments
 (0)