Skip to content

Commit

Permalink
fix(types): add export to type-only files as a workaround for esm-dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Oct 10, 2022
1 parent a59c043 commit 25a0f39
Show file tree
Hide file tree
Showing 38 changed files with 173 additions and 139 deletions.
1 change: 1 addition & 0 deletions packages/types-openapi-ghes-3.0-diff-to-ghes-3.1/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
7 changes: 4 additions & 3 deletions packages/types-openapi-ghes-3.0-diff-to-ghes-3.1/package.json
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-ghes-3.0-diff-to-ghes-3.1",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-ghes-3.0-diff-to-ghes-3.1"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
1 change: 1 addition & 0 deletions packages/types-openapi-ghes-3.0/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
7 changes: 4 additions & 3 deletions packages/types-openapi-ghes-3.0/package.json
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-ghes-3.0",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-ghes-3.0"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
1 change: 1 addition & 0 deletions packages/types-openapi-ghes-3.1-diff-to-ghes-3.2/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
7 changes: 4 additions & 3 deletions packages/types-openapi-ghes-3.1-diff-to-ghes-3.2/package.json
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-ghes-3.1-diff-to-ghes-3.2",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-ghes-3.1-diff-to-ghes-3.2"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
1 change: 1 addition & 0 deletions packages/types-openapi-ghes-3.1/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
7 changes: 4 additions & 3 deletions packages/types-openapi-ghes-3.1/package.json
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-ghes-3.1",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-ghes-3.1"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-ghes-3.2-diff-to-api.github.com",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-ghes-3.2-diff-to-api.github.com"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
1 change: 1 addition & 0 deletions packages/types-openapi-ghes-3.2/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
7 changes: 4 additions & 3 deletions packages/types-openapi-ghes-3.2/package.json
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-ghes-3.2",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-ghes-3.2"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-github.ae-diff-to-api.github.com",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-github.ae-diff-to-api.github.com"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
1 change: 1 addition & 0 deletions packages/types-openapi-github.ae/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
7 changes: 4 additions & 3 deletions packages/types-openapi-github.ae/package.json
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi-github.ae",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi-github.ae"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
1 change: 1 addition & 0 deletions packages/types-openapi/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
7 changes: 4 additions & 3 deletions packages/types-openapi/package.json
@@ -1,14 +1,15 @@
{
"name": "@octokit-next/types-openapi",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/octokit/octokit-next.js",
"directory": "packages/types-openapi"
},
"publishConfig": { "access": "public" },
"version": "0.0.0-development",
"types": "index.d.ts",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"octokit": { "openapi-version": "5.2.2" }
Expand Down
1 change: 1 addition & 0 deletions packages/types-rest-api-ghes-3.0-compatible/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
25 changes: 13 additions & 12 deletions packages/types-rest-api-ghes-3.0-compatible/package.json
@@ -1,21 +1,22 @@
{
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.0": "0.0.0-development"
},
"description": "Types for GHES 3.0 (compatible) REST API requests and responses",
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.0-compatible#readme",
"license": "MIT",
"name": "@octokit-next/types-rest-api-ghes-3.0-compatible",
"octokit": { "openapi-version": "5.2.2" },
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"type": "module",
"description": "Types for GHES 3.0 (compatible) REST API requests and responses",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"directory": "packages/types-rest-api-ghes-3.0-compatible",
"type": "git",
"url": "https://github.com/octokit/octokit-next.js.git"
},
"type": "module",
"types": "index.d.ts",
"version": "0.0.0-development"
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.0-compatible#readme",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.0": "0.0.0-development"
},
"octokit": { "openapi-version": "5.2.2" }
}
1 change: 1 addition & 0 deletions packages/types-rest-api-ghes-3.0/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
29 changes: 15 additions & 14 deletions packages/types-rest-api-ghes-3.0/package.json
@@ -1,24 +1,25 @@
{
"name": "@octokit-next/types-rest-api-ghes-3.0",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"type": "module",
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"directory": "packages/types-rest-api-ghes-3.0",
"type": "git",
"url": "https://github.com/octokit/octokit-next.js.git"
},
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.0#readme",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.0": "0.0.0-development",
"@octokit-next/types-rest-api": "0.0.0-development",
"@octokit-next/types-rest-api-ghes-3.1": "0.0.0-development",
"type-fest": "^3.0.0"
},
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.0#readme",
"license": "MIT",
"name": "@octokit-next/types-rest-api-ghes-3.0",
"octokit": { "openapi-version": "5.2.2" },
"publishConfig": { "access": "public" },
"repository": {
"directory": "packages/types-rest-api-ghes-3.0",
"type": "git",
"url": "https://github.com/octokit/octokit-next.js.git"
},
"type": "module",
"types": "index.d.ts",
"version": "0.0.0-development"
"octokit": { "openapi-version": "5.2.2" }
}
1 change: 1 addition & 0 deletions packages/types-rest-api-ghes-3.1-compatible/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
25 changes: 13 additions & 12 deletions packages/types-rest-api-ghes-3.1-compatible/package.json
@@ -1,21 +1,22 @@
{
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.1": "0.0.0-development"
},
"description": "Types for GHES 3.1 (compatible) REST API requests and responses",
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.1-compatible#readme",
"license": "MIT",
"name": "@octokit-next/types-rest-api-ghes-3.1-compatible",
"octokit": { "openapi-version": "5.2.2" },
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"type": "module",
"description": "Types for GHES 3.1 (compatible) REST API requests and responses",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"directory": "packages/types-rest-api-ghes-3.1-compatible",
"type": "git",
"url": "https://github.com/octokit/octokit-next.js.git"
},
"type": "module",
"types": "index.d.ts",
"version": "0.0.0-development"
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.1-compatible#readme",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.1": "0.0.0-development"
},
"octokit": { "openapi-version": "5.2.2" }
}
1 change: 1 addition & 0 deletions packages/types-rest-api-ghes-3.1/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
29 changes: 15 additions & 14 deletions packages/types-rest-api-ghes-3.1/package.json
@@ -1,24 +1,25 @@
{
"name": "@octokit-next/types-rest-api-ghes-3.1",
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"type": "module",
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"directory": "packages/types-rest-api-ghes-3.1",
"type": "git",
"url": "https://github.com/octokit/octokit-next.js.git"
},
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.1#readme",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.1": "0.0.0-development",
"@octokit-next/types-rest-api": "0.0.0-development",
"@octokit-next/types-rest-api-ghes-3.2": "0.0.0-development",
"type-fest": "^3.0.0"
},
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com",
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.1#readme",
"license": "MIT",
"name": "@octokit-next/types-rest-api-ghes-3.1",
"octokit": { "openapi-version": "5.2.2" },
"publishConfig": { "access": "public" },
"repository": {
"directory": "packages/types-rest-api-ghes-3.1",
"type": "git",
"url": "https://github.com/octokit/octokit-next.js.git"
},
"type": "module",
"types": "index.d.ts",
"version": "0.0.0-development"
"octokit": { "openapi-version": "5.2.2" }
}
1 change: 1 addition & 0 deletions packages/types-rest-api-ghes-3.2-compatible/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";
25 changes: 13 additions & 12 deletions packages/types-rest-api-ghes-3.2-compatible/package.json
@@ -1,21 +1,22 @@
{
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.2": "0.0.0-development"
},
"description": "Types for GHES 3.2 (compatible) REST API requests and responses",
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.2-compatible#readme",
"license": "MIT",
"name": "@octokit-next/types-rest-api-ghes-3.2-compatible",
"octokit": { "openapi-version": "5.2.2" },
"version": "0.0.0-development",
"publishConfig": { "access": "public" },
"type": "module",
"description": "Types for GHES 3.2 (compatible) REST API requests and responses",
"exoprts": "./index.js",
"types": "index.d.ts",
"repository": {
"directory": "packages/types-rest-api-ghes-3.2-compatible",
"type": "git",
"url": "https://github.com/octokit/octokit-next.js.git"
},
"type": "module",
"types": "index.d.ts",
"version": "0.0.0-development"
"homepage": "https://github.com/octokit/octokit-next.js/tree/main/packages/types-rest-api-ghes-3.2-compatible#readme",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit-next/types": "0.0.0-development",
"@octokit-next/types-openapi-ghes-3.2": "0.0.0-development"
},
"octokit": { "openapi-version": "5.2.2" }
}
1 change: 1 addition & 0 deletions packages/types-rest-api-ghes-3.2/index.js
@@ -0,0 +1 @@
export default "Workaround for https://github.com/ije/esm.sh/issues/433";

0 comments on commit 25a0f39

Please sign in to comment.