forked from loafle/openapi-generator-original
[BUG] [TYPESCRIPT-AXIOS] Fixing issue where dist folder is not published 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
This commit is contained in:
parent
c6353a7589
commit
4818644278
@ -110,6 +110,7 @@ public class TypeScriptAxiosClientCodegen extends AbstractTypeScriptClientCodege
|
|||||||
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.ts"));
|
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.ts"));
|
||||||
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
||||||
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
|
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
|
||||||
|
supportingFiles.add(new SupportingFile("npmignore", "", ".npmignore"));
|
||||||
|
|
||||||
if (additionalProperties.containsKey(SEPARATE_MODELS_AND_API)) {
|
if (additionalProperties.containsKey(SEPARATE_MODELS_AND_API)) {
|
||||||
boolean separateModelsAndApi = Boolean.parseBoolean(additionalProperties.get(SEPARATE_MODELS_AND_API).toString());
|
boolean separateModelsAndApi = Boolean.parseBoolean(additionalProperties.get(SEPARATE_MODELS_AND_API).toString());
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
wwwroot/*.js
|
wwwroot/*.js
|
||||||
node_modules
|
node_modules
|
||||||
typings
|
typings
|
||||||
dist
|
dist
|
@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
@ -1,4 +1,4 @@
|
|||||||
wwwroot/*.js
|
wwwroot/*.js
|
||||||
node_modules
|
node_modules
|
||||||
typings
|
typings
|
||||||
dist
|
dist
|
@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
@ -1,4 +1,4 @@
|
|||||||
wwwroot/*.js
|
wwwroot/*.js
|
||||||
node_modules
|
node_modules
|
||||||
typings
|
typings
|
||||||
dist
|
dist
|
@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
@ -1,4 +1,4 @@
|
|||||||
wwwroot/*.js
|
wwwroot/*.js
|
||||||
node_modules
|
node_modules
|
||||||
typings
|
typings
|
||||||
dist
|
dist
|
@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
@ -1,4 +1,4 @@
|
|||||||
wwwroot/*.js
|
wwwroot/*.js
|
||||||
node_modules
|
node_modules
|
||||||
typings
|
typings
|
||||||
dist
|
dist
|
@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
@ -1,4 +1,4 @@
|
|||||||
wwwroot/*.js
|
wwwroot/*.js
|
||||||
node_modules
|
node_modules
|
||||||
typings
|
typings
|
||||||
dist
|
dist
|
@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
@ -1,4 +1,4 @@
|
|||||||
wwwroot/*.js
|
wwwroot/*.js
|
||||||
node_modules
|
node_modules
|
||||||
typings
|
typings
|
||||||
dist
|
dist
|
@ -0,0 +1 @@
|
|||||||
|
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
Loading…
x
Reference in New Issue
Block a user