Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: package is now ESM #545

Merged
merged 10 commits into from
May 9, 2024
Merged

feat: package is now ESM #545

merged 10 commits into from
May 9, 2024

Conversation

wolfy1339
Copy link
Member

BREAKING CHANGE: package is now ESM

@wolfy1339 wolfy1339 added Type: Breaking change Used to note any change that requires a major version bump Type: Feature New feature or request labels May 8, 2024
Copy link
Contributor

github-actions bot commented May 8, 2024

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when running npm run build, the resulting pkg/package.json file does not have an "exports" key, but it still has these

  "main": "dist-node/index.js",
  "browser": "dist-web/index.js",
  "types": "dist-types/index.d.ts",
  "module": "dist-src/index.js",
{
  "name": "@octokit/plugin-enterprise-cloud",
  "version": "0.0.0-development",
  "publishConfig": {
    "access": "public",
    "provenance": true
  },
  "type": "module",
  "description": "Octokit plugin for GitHub�s Enterprise Cloud REST APIs",
  "repository": "github:octokit/plugin-enterprise-cloud.js",
  "keywords": [
    "octokit",
    "github",
    "api",
    "rest",
    "plugin",
    "enterprise"
  ],
  "author": "Gregor Martynus (https://github.com/gr2m)",
  "license": "MIT",
  "dependencies": {
    "@octokit/types": "^13.0.0"
  },
  "peerDependencies": {
    "@octokit/core": ">=6"
  },
  "devDependencies": {
    "@octokit/core": "^6.0.0",
    "@octokit/tsconfig": "^3.0.0",
    "@types/fetch-mock": "^7.3.2",
    "@types/jest": "^29.0.0",
    "@types/node": "^20.0.0",
    "camelcase": "^8.0.0",
    "esbuild": "^0.21.0",
    "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1",
    "github-openapi-graphql-query": "^4.0.0",
    "glob": "^10.2.7",
    "jest": "^29.0.0",
    "npm-run-all2": "^6.0.0",
    "prettier": "3.2.5",
    "semantic-release": "^23.0.0",
    "semantic-release-plugin-update-version-in-files": "^1.0.0",
    "sort-keys": "^5.0.0",
    "ts-jest": "^29.0.0",
    "typescript": "^5.0.0"
  },
  "engines": {
    "node": ">= 18"
  },
  "files": [
    "dist-*/**",
    "bin/**"
  ],
  "main": "dist-node/index.js",
  "browser": "dist-web/index.js",
  "types": "dist-types/index.d.ts",
  "module": "dist-src/index.js",
  "sideEffects": false
}

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works now, cheers 👍🏼

@wolfy1339 wolfy1339 merged commit 20cf836 into main May 9, 2024
7 checks passed
@wolfy1339 wolfy1339 deleted the beta branch May 9, 2024 17:35
Copy link
Contributor

github-actions bot commented May 9, 2024

🎉 This PR is included in version 13.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Type: Breaking change Used to note any change that requires a major version bump Type: Feature New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants