diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java index a441027bff06..023db0270149 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java @@ -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()); diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/gitignore b/modules/openapi-generator/src/main/resources/typescript-axios/gitignore index 149b57654723..205d8013f46f 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/gitignore +++ b/modules/openapi-generator/src/main/resources/typescript-axios/gitignore @@ -1,4 +1,4 @@ wwwroot/*.js node_modules typings -dist +dist \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/npmignore b/modules/openapi-generator/src/main/resources/typescript-axios/npmignore new file mode 100644 index 000000000000..999d88df6939 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/typescript-axios/npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/default/.gitignore b/samples/client/petstore/typescript-axios/builds/default/.gitignore index 149b57654723..205d8013f46f 100644 --- a/samples/client/petstore/typescript-axios/builds/default/.gitignore +++ b/samples/client/petstore/typescript-axios/builds/default/.gitignore @@ -1,4 +1,4 @@ wwwroot/*.js node_modules typings -dist +dist \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/default/.npmignore b/samples/client/petstore/typescript-axios/builds/default/.npmignore new file mode 100644 index 000000000000..999d88df6939 --- /dev/null +++ b/samples/client/petstore/typescript-axios/builds/default/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/.gitignore b/samples/client/petstore/typescript-axios/builds/es6-target/.gitignore index 149b57654723..205d8013f46f 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/.gitignore +++ b/samples/client/petstore/typescript-axios/builds/es6-target/.gitignore @@ -1,4 +1,4 @@ wwwroot/*.js node_modules typings -dist +dist \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/.npmignore b/samples/client/petstore/typescript-axios/builds/es6-target/.npmignore new file mode 100644 index 000000000000..999d88df6939 --- /dev/null +++ b/samples/client/petstore/typescript-axios/builds/es6-target/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/.gitignore b/samples/client/petstore/typescript-axios/builds/with-complex-headers/.gitignore index 149b57654723..205d8013f46f 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/.gitignore +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/.gitignore @@ -1,4 +1,4 @@ wwwroot/*.js node_modules typings -dist +dist \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/.npmignore b/samples/client/petstore/typescript-axios/builds/with-complex-headers/.npmignore new file mode 100644 index 000000000000..999d88df6939 --- /dev/null +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/.gitignore b/samples/client/petstore/typescript-axios/builds/with-interfaces/.gitignore index 149b57654723..205d8013f46f 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/.gitignore +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/.gitignore @@ -1,4 +1,4 @@ wwwroot/*.js node_modules typings -dist +dist \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/.npmignore b/samples/client/petstore/typescript-axios/builds/with-interfaces/.npmignore new file mode 100644 index 000000000000..999d88df6939 --- /dev/null +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/.gitignore b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/.gitignore index 149b57654723..205d8013f46f 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/.gitignore +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/.gitignore @@ -1,4 +1,4 @@ wwwroot/*.js node_modules typings -dist +dist \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/.npmignore b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/.npmignore new file mode 100644 index 000000000000..999d88df6939 --- /dev/null +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/.gitignore b/samples/client/petstore/typescript-axios/builds/with-npm-version/.gitignore index 149b57654723..205d8013f46f 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/.gitignore +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/.gitignore @@ -1,4 +1,4 @@ wwwroot/*.js node_modules typings -dist +dist \ No newline at end of file diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/.npmignore b/samples/client/petstore/typescript-axios/builds/with-npm-version/.npmignore new file mode 100644 index 000000000000..999d88df6939 --- /dev/null +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file