Skip to content

Commit ea0c9d2

Browse files
MalcolmScoffablemichaelpro1
authored andcommitted
[BUG] [TYPESCRIPT-AXIOS] Fixing issue where dist folder is not published when publishing typescript-axios generated client with npm publish (OpenAPITools#5850)
* Removing build path from gitignore as this causes npm publishing issues * updating petstore example * Adding npmignore to typescript-axios generator * Updating petstore example
1 parent b8e327c commit ea0c9d2

File tree

15 files changed

+15
-7
lines changed

15 files changed

+15
-7
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public void processOpts() {
110110
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.ts"));
111111
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
112112
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
113+
supportingFiles.add(new SupportingFile("npmignore", "", ".npmignore"));
113114

114115
if (additionalProperties.containsKey(SEPARATE_MODELS_AND_API)) {
115116
boolean separateModelsAndApi = Boolean.parseBoolean(additionalProperties.get(SEPARATE_MODELS_AND_API).toString());
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
wwwroot/*.js
22
node_modules
33
typings
4-
dist
4+
dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
wwwroot/*.js
22
node_modules
33
typings
4-
dist
4+
dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
wwwroot/*.js
22
node_modules
33
typings
4-
dist
4+
dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
wwwroot/*.js
22
node_modules
33
typings
4-
dist
4+
dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
wwwroot/*.js
22
node_modules
33
typings
4-
dist
4+
dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
wwwroot/*.js
22
node_modules
33
typings
4-
dist
4+
dist
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
wwwroot/*.js
22
node_modules
33
typings
4-
dist
4+
dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm

0 commit comments

Comments
 (0)