Skip to content

Commit

Permalink
[BUG] [TYPESCRIPT-AXIOS] Fixing issue where dist folder is not publis…
Browse files Browse the repository at this point in the history
…hed when publishing typescript-axios generated client with npm publish (#5850)

* Removing build path from gitignore as this causes npm publishing issues

* updating petstore example

* Adding npmignore to typescript-axios generator

* Updating petstore example
  • Loading branch information
MalcolmScoffable authored Apr 20, 2020
1 parent c6353a7 commit 4818644
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void processOpts() {
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.ts"));
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
supportingFiles.add(new SupportingFile("npmignore", "", ".npmignore"));

if (additionalProperties.containsKey(SEPARATE_MODELS_AND_API)) {
boolean separateModelsAndApi = Boolean.parseBoolean(additionalProperties.get(SEPARATE_MODELS_AND_API).toString());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm

0 comments on commit 4818644

Please sign in to comment.