Skip to content

Commit

Permalink
refactor: generate and publish generated/types.d.ts only (#113)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `@octokit/openapi-types` no longer exports any code, only types
  • Loading branch information
gr2m committed Jun 29, 2021
1 parent c1d9219 commit 55eee7d
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 82 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
- run: npm ci
- run: npm run build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
Expand Down
File renamed without changes.
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 9 additions & 57 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,79 +3,31 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.0",
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec",
"main": "generated/types.js",
"types": "generated/types.ts",
"version": "0.0.0-development",
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for https://api.github.com",
"main": "",
"types": "generated/types.d.ts",
"repository": "github:octokit/openapi-types.ts",
"keywords": [],
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"scripts": {
"build": "pika build",
"download": "node scripts/download",
"generate-types": "npx openapi-typescript cache/openapi-schema.json -o src/generated/types.ts",
"generate-types": "npx openapi-typescript cache/openapi-schema.json -o generated/types.d.ts",
"postgenerate-types": "node scripts/update-package"
},
"devDependencies": {
"@gr2m/openapi-typescript": "^4.0.0-fork.2",
"@octokit/tsconfig": "^1.0.2",
"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.9.2",
"@pika/plugin-build-web": "^0.9.2",
"@pika/plugin-ts-standard-pkg": "^0.9.2",
"pika-plugin-merge-properties": "^1.0.6",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
"typescript": "^4.1.5"
"openapi-typescript": "^4.0.1"
},
"release": {
"branches": "main",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/npm",
{
"pkgRoot": "./pkg"
}
],
[
"semantic-release-plugin-update-version-in-files",
{
"files": [
"pkg/dist-web/*",
"pkg/dist-node/*",
"pkg/*/version.*"
]
}
]
"branches": [
"main",
"beta"
]
},
"octokit": {
"openapi-version": "2.23.0"
},
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-ts-standard-pkg"
],
[
"pika-plugin-merge-properties",
{
"properties": {
"octokit": "see https://github.com/jabuco/pika-plugin-merge-properties/issues/2"
}
}
],
[
"@pika/plugin-build-node"
],
[
"@pika/plugin-build-web"
]
]
},
"renovate": {
"extends": [
"github>octokit/.github"
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/version.ts

This file was deleted.

4 changes: 0 additions & 4 deletions tsconfig.json

This file was deleted.

0 comments on commit 55eee7d

Please sign in to comment.