Skip to content

Commit

Permalink
build: separate code and types build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Oct 25, 2021
1 parent cc23204 commit ede19c1
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 25 deletions.
7 changes: 4 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules
/dist
/ignore
/node_modules
/dist
/types
/ignore
/docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/node_modules
/dist
/types
/ignore
/.vscode/settings.json
/package-lock.json
Expand Down
41 changes: 21 additions & 20 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# White-list approach

*

!LICENSE
!README.md

!package.json
!tsconfig.json

!.gitignore

!.prettierrc
!.prettierignore

!.eslintrc
!.eslintignore

!/src/**
!/dist/**
# White-list approach

*

!LICENSE
!README.md

!package.json
!tsconfig.json

!.gitignore

!.prettierrc
!.prettierignore

!.eslintrc
!.eslintignore

!/src/**
!/dist/**
!/types/**
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/node_modules
/coverage
/dist
/types
/CHANGELOG.md
/tsconfig.json
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "axios-cache-interceptor",
"version": "0.4.0",
"description": "Cache interceptor for axios",
"main": "dist/index.js",
"main": "./dist/index.js",
"types": "./types/index.d.ts",
"typings": "./types/index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.build.json",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
// "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
"declarationDir": "./types", /* Specify the output directory for generated declaration files. */

/* Interop Constraints */
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
Expand Down

0 comments on commit ede19c1

Please sign in to comment.