File tree Expand file tree Collapse file tree 19 files changed +779
-55
lines changed Expand file tree Collapse file tree 19 files changed +779
-55
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11tools/**
22twitter-openapi/**
33LICENSE.txt
4- package.json
4+ .npmignore
Original file line number Diff line number Diff line change 11.gitignore
2- .npmignore
32README.md
43package.json
54src/apis/DefaultApi.ts
Original file line number Diff line number Diff line change 1- ## twitter-openapi-typescript-generated@0.0.1
1+ ## twitter-openapi-typescript-generated@0.0.3
22
33This generator creates TypeScript/JavaScript client that utilizes [ Fetch API] ( https://fetch.spec.whatwg.org/ ) . The generated Node module can be used in the following environments:
44
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
3636_ published:_
3737
3838```
39- npm install twitter-openapi-typescript-generated@0.0.1 --save
39+ npm install twitter-openapi-typescript-generated@0.0.3 --save
4040```
4141
4242_ unPublished (not recommended):_
Original file line number Diff line number Diff line change 11{
22 "name" : " twitter-openapi-typescript-generated" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.0.3 " ,
44 "description" : " OpenAPI client for twitter-openapi-typescript-generated" ,
5- "author" : " OpenAPI-Generator" ,
65 "author" : " fa0311" ,
7- "license" : " LGPL-3.0-only" ,
86 "repository" : {
97 "type" : " git" ,
108 "url" : " https://github.com/fa0311/twitter-openapi-typescript.git"
119 },
12- "keywords" : [
13- " twitter" ,
14- " api" ,
15- " typescript"
16- ],
1710 "main" : " ./dist/index.js" ,
1811 "typings" : " ./dist/index.d.ts" ,
1912 "scripts" : {
2215 },
2316 "devDependencies" : {
2417 "typescript" : " ^4.0"
25- }
26- }
18+ },
19+ "license" : " LGPL-3.0-only" ,
20+ "keywords" : [
21+ " twitter" ,
22+ " api" ,
23+ " typescript"
24+ ]
25+ }
Original file line number Diff line number Diff line change 11inputSpec : twitter-openapi/dist/typescript/openapi-3.0.yaml
22outputDir : .
33npmName : twitter-openapi-typescript-generated
4- npmVersion : 0.0.1
4+ npmVersion : 0.0.3
55
66# withoutRuntimeChecks: false
77legacyDiscriminatorBehavior : false
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Remove-Item -Recurse .npmignore
1515Remove-Item - Recurse package.json
1616Remove-Item - Recurse README.md
1717Remove-Item - Recurse tsconfig.json
18+ Remove-Item - Recurse dist
1819
1920# Remove-Item -Recurse package-lock.json
20- # Remove-Item -Recurse node_modules
21- # Remove-Item -Recurse dist
21+ # Remove-Item -Recurse node_modules
Original file line number Diff line number Diff line change 11import glob
2+ import json
3+
24
35for file in glob .glob ("src/**/*.ts" , recursive = True ):
46 with open (file , mode = "r" , encoding = "utf-8" ) as f :
911
1012 with open (file , mode = "w" , encoding = "utf-8" ) as f :
1113 f .write (text )
14+
15+
16+
17+ with open (file , mode = "r" , encoding = "utf-8" ) as f :
18+ text = f .read ()
19+
20+
21+ with open ("package.json" , mode = "r" , encoding = "utf-8" ) as f :
22+ package = json .load (f )
23+
24+ package .update ({
25+ "author" : "fa0311" ,
26+ "license" : "LGPL-3.0-only" ,
27+ "repository" : {
28+ "type" : "git" ,
29+ "url" : "https://github.com/fa0311/twitter-openapi-typescript.git"
30+ },
31+ "keywords" : [
32+ "twitter" ,
33+ "api" ,
34+ "typescript"
35+ ],
36+ })
37+
38+
39+ with open ("package.json" , mode = "w" , encoding = "utf-8" ) as f :
40+ json .dump (package , f , ensure_ascii = False , indent = 2 )
41+
42+
43+ with open ("tsconfig.json" , mode = "r" , encoding = "utf-8" ) as f :
44+ package = json .load (f )
45+ package ["compilerOptions" ].update ({
46+ "declaration" : True ,
47+ "declarationMap" : True ,
48+ "sourceMap" : True ,
49+ })
50+
51+
52+ with open ("tsconfig.json" , mode = "w" , encoding = "utf-8" ) as f :
53+ json .dump (package , f , ensure_ascii = False , indent = 2 )
Original file line number Diff line number Diff line change 1111 ],
1212 "typeRoots" : [
1313 " node_modules/@types"
14- ]
14+ ],
15+ "declarationMap" : true ,
16+ "sourceMap" : true
1517 },
1618 "exclude" : [
1719 " dist" ,
1820 " node_modules"
1921 ]
20- }
22+ }
You can’t perform that action at this time.
0 commit comments