Skip to content

Commit

Permalink
0.2.2: [feat] Configure for TS (#1)
Browse files Browse the repository at this point in the history
* Adds declaration files
* Adds built dist folder
  • Loading branch information
taylorjdawson authored Jun 11, 2021
1 parent 6326ace commit df4a6dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
chains.json
node_modules
node_modules
dist
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"name": "eth-chains",
"version": "0.2.1",
"version": "0.2.2",
"description": "Helper module for getting Ethereum chains info.",
"main": "index.ts",
"author": "Taylor Dawson",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "WTFPL",
"private": false,
"scripts": {
"build": "ts-node src/build.ts",
"build": "tsc",
"generate": "ts-node src/build.ts",
"format": "prettier --write src/"
},
"prepublish": "tsc",
"dependencies": {
"got": "^11.8.2"
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./bin", /* Redirect output structure to the directory. */
"outDir": "./dist", /* Redirect output structure to the directory. */
"rootDir": ".", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
Expand Down

0 comments on commit df4a6dd

Please sign in to comment.