Skip to content

Commit be07bd1

Browse files
authored
Allows install typescript client via npm from Git (#7878)
* Allows install typescript client via npm from Git 'prepublishOnly' is run before the package is published. 'prepack' is run before the package is published and after installation local installation eg. via Git. * Update examples for Typescript
1 parent 9c0850f commit be07bd1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

modules/openapi-generator/src/main/resources/typescript/package.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typings": "./dist/index.d.ts",
1515
"scripts": {
1616
"build": "tsc",
17-
"prepublishOnly": "npm run build"
17+
"prepare": "npm run build"
1818
},
1919
"dependencies": {
2020
{{#frameworks}}

samples/openapi3/client/petstore/typescript/builds/default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typings": "./dist/index.d.ts",
1515
"scripts": {
1616
"build": "tsc",
17-
"prepublishOnly": "npm run build"
17+
"prepare": "npm run build"
1818
},
1919
"dependencies": {
2020
"node-fetch": "^2.6.0",

samples/openapi3/client/petstore/typescript/builds/inversify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typings": "./dist/index.d.ts",
1515
"scripts": {
1616
"build": "tsc",
17-
"prepublishOnly": "npm run build"
17+
"prepare": "npm run build"
1818
},
1919
"dependencies": {
2020
"node-fetch": "^2.6.0",

samples/openapi3/client/petstore/typescript/builds/jquery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typings": "./dist/index.d.ts",
1515
"scripts": {
1616
"build": "tsc",
17-
"prepublishOnly": "npm run build"
17+
"prepare": "npm run build"
1818
},
1919
"dependencies": {
2020
"@types/jquery": "^3.3.29",

samples/openapi3/client/petstore/typescript/builds/object_params/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typings": "./dist/index.d.ts",
1515
"scripts": {
1616
"build": "tsc",
17-
"prepublishOnly": "npm run build"
17+
"prepare": "npm run build"
1818
},
1919
"dependencies": {
2020
"node-fetch": "^2.6.0",

0 commit comments

Comments
 (0)