Skip to content

Commit d18e6fa

Browse files
committed
publish
Signed-off-by: ふぁ <yuki@yuki0311.com>
1 parent 62d7cf9 commit d18e6fa

File tree

19 files changed

+779
-55
lines changed

19 files changed

+779
-55
lines changed

twitter-openapi-typescript-generated/.npmignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tools/**
22
twitter-openapi/**
33
LICENSE.txt
4-
package.json
4+
.npmignore

twitter-openapi-typescript-generated/.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gitignore
2-
.npmignore
32
README.md
43
package.json
54
src/apis/DefaultApi.ts

twitter-openapi-typescript-generated/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## twitter-openapi-typescript-generated@0.0.1
1+
## twitter-openapi-typescript-generated@0.0.3
22

33
This 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):_

twitter-openapi-typescript-generated/package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
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": {
@@ -22,5 +15,11 @@
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+
}

twitter-openapi-typescript-generated/tools/openapi-generator-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
inputSpec: twitter-openapi/dist/typescript/openapi-3.0.yaml
22
outputDir: .
33
npmName: twitter-openapi-typescript-generated
4-
npmVersion: 0.0.1
4+
npmVersion: 0.0.3
55

66
# withoutRuntimeChecks: false
77
legacyDiscriminatorBehavior: false

twitter-openapi-typescript-generated/tools/win/clean.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Remove-Item -Recurse .npmignore
1515
Remove-Item -Recurse package.json
1616
Remove-Item -Recurse README.md
1717
Remove-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

twitter-openapi-typescript-generated/tools/win/replace.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import glob
2+
import json
3+
24

35
for file in glob.glob("src/**/*.ts", recursive=True):
46
with open(file, mode="r", encoding="utf-8") as f:
@@ -9,3 +11,43 @@
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)

twitter-openapi-typescript-generated/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
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+
}

0 commit comments

Comments
 (0)