forked from loafle/openapi-generator-original
[BUG][typescript-node] Generated package causes compilation errors (#1911)
* changed typescript-node build dir * fixed missed json * to pass integration test
This commit is contained in:
parent
e0137f670c
commit
4117b2ebb1
6
bin/typescript-node-petstore-npm.json
Normal file
6
bin/typescript-node-petstore-npm.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"npmName": "@swagger/node-typescript-petstore",
|
||||||
|
"npmVersion": "0.0.1",
|
||||||
|
"npmRepository": "https://skimdb.npmjs.com/registry",
|
||||||
|
"snapshot": false
|
||||||
|
}
|
@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-node -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-node/npm $@"
|
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-node -c bin/typescript-node-petstore-npm.json -o samples/client/petstore/typescript-node/npm $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -5,6 +5,6 @@ If Not Exist %executable% (
|
|||||||
)
|
)
|
||||||
|
|
||||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
||||||
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -c bin\typescript-petstore-npm.json -g typescript-node -o samples\client\petstore\typescript-node\npm
|
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -c bin\typescript-node-petstore-npm.json -g typescript-node -o samples\client\petstore\typescript-node\npm
|
||||||
|
|
||||||
java %JAVA_OPTS% -jar %executable% %ags%
|
java %JAVA_OPTS% -jar %executable% %ags%
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
"version": "{{npmVersion}}",
|
"version": "{{npmVersion}}",
|
||||||
"description": "NodeJS client for {{npmName}}",
|
"description": "NodeJS client for {{npmName}}",
|
||||||
"repository": "{{gitUserId}}/{{gitRepoId}}",
|
"repository": "{{gitUserId}}/{{gitRepoId}}",
|
||||||
"main": "api.js",
|
"main": "dist/api.js",
|
||||||
"types": "api.d.ts",
|
"types": "dist/api.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -Rf node_modules/ *.js",
|
"clean": "rm -Rf node_modules/ *.js",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "npm run build && node client.js"
|
"test": "npm run build && node dist/client.js"
|
||||||
},
|
},
|
||||||
"author": "OpenAPI-Generator Contributors",
|
"author": "OpenAPI-Generator Contributors",
|
||||||
"license": "Unlicense",
|
"license": "Unlicense",
|
||||||
|
@ -10,9 +10,11 @@
|
|||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"noLib": false,
|
"noLib": false,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"]
|
"lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
|
||||||
|
"outDir": "dist"
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
"dist",
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "@swagger/angular2-typescript-petstore",
|
"name": "@swagger/node-typescript-petstore",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "NodeJS client for @swagger/angular2-typescript-petstore",
|
"description": "NodeJS client for @swagger/node-typescript-petstore",
|
||||||
"repository": "GIT_USER_ID/GIT_REPO_ID",
|
"repository": "GIT_USER_ID/GIT_REPO_ID",
|
||||||
"main": "api.js",
|
"main": "dist/api.js",
|
||||||
"types": "api.d.ts",
|
"types": "dist/api.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -Rf node_modules/ *.js",
|
"clean": "rm -Rf node_modules/ *.js",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "npm run build && node client.js"
|
"test": "npm run build && node dist/client.js"
|
||||||
},
|
},
|
||||||
"author": "OpenAPI-Generator Contributors",
|
"author": "OpenAPI-Generator Contributors",
|
||||||
"license": "Unlicense",
|
"license": "Unlicense",
|
||||||
|
@ -10,9 +10,11 @@
|
|||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"noLib": false,
|
"noLib": false,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"]
|
"lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
|
||||||
|
"outDir": "dist"
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
"dist",
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user