Skip to content

Commit

Permalink
Fixed building and added building npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Gluzman committed Dec 15, 2020
1 parent 437ca8f commit 6465d8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
build
dist
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"name": "error-typed-promise",
"version": "1.0.0",
"description": "TypeScript Promises that are error-typed",
"main": "build/index.ts",
"typings": "build/typings/index.d.ts",
"main": "dist/index.ts",
"typings": "dist/typings/index.d.ts",
"files": ["dist"],
"scripts": {
"build": "rm -rf dist && tsc",
"test": "npm run test:types",
"test:types": "dtslint --localTs node_modules/typescript/lib tests"
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"declarationDir": "./build/typings",
"declarationDir": "./dist/typings",
// "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": "./build", /* 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 6465d8d

Please sign in to comment.