Skip to content

Commit 9376c97

Browse files
committed
add changeset
1 parent d312f89 commit 9376c97

File tree

4 files changed

+57
-11
lines changed

4 files changed

+57
-11
lines changed

.changeset/beige-glasses-hang.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
'gatsby-plugin-orga': major
3+
'@orgajs/rehype-estree': major
4+
'oast-to-hast': major
5+
'@orgajs/reorg-rehype': major
6+
'@orgajs/reorg-parse': major
7+
'@orgajs/estree-jsx': major
8+
'@orgajs/metadata': major
9+
'text-kit': major
10+
'@orgajs/loader': major
11+
'@orgajs/rollup': major
12+
'@orgajs/astro': major
13+
'@orgajs/react': major
14+
'@orgajs/reorg': major
15+
'@orgajs/next': major
16+
'orga': major
17+
'@orgajs/orgx': major
18+
---
19+
20+
# Migrate most of the ecosystem to ESM
21+
22+
We are excited to announce that we have migrated most of our ecosystem to ESM! This move was necessary as the unified ecosystem had already transitioned to ESM, leaving our orgajs system stuck on an older version if we wanted to stay on commonjs. We understand that this transition may come with some inevitable breaking changes, but we have done our best to make it as gentle as possible.
23+
24+
In the past, ESM support in popular frameworks like webpack, gatsby, and nextjs was problematic, but the JS world has steadily moved forward, and we are now in a much better state. We have put in a lot of effort to bring this project up to speed, and we are happy to say that it's in a pretty good state now.
25+
26+
We acknowledge that there are still some missing features that we will gradually add back over time. However, we feel that the changes are now in a great state to be released to the world. If you want to use the new versions, we recommend checking out the `examples` folder to get started.
27+
28+
We understand that this upgrade path may not be compatible with older versions, and we apologize for any inconvenience this may cause. However, we encourage you to consider starting fresh, as the most important part of your site should always be your content (org-mode files). Thank you for your understanding, and we hope you enjoy the new and improved ecosystem!

.github/workflows/release.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,43 @@ on:
55
branches:
66
- main
77

8+
env:
9+
CI: true
10+
PNPM_CACHE_FOLDER: .pnpm-store
11+
812
jobs:
913
release:
1014
name: Release
1115
runs-on: ubuntu-latest
1216
steps:
1317
- name: Checkout Repo
14-
uses: actions/checkout@master
18+
uses: actions/checkout@v3
1519
with:
1620
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1721
fetch-depth: 0
1822

19-
- name: Setup Node.js 14.x
20-
uses: actions/setup-node@master
23+
- name: Setup Node.js 18.x
24+
uses: actions/setup-node@v3
2125
with:
22-
node-version: 14.x
26+
node-version: 18.x
2327

24-
- name: Install Dependencies
25-
run: yarn install --immutable
28+
- name: install pnpm
29+
run: npm i pnpm@latest -g
30+
- name: Setup npmrc
31+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
32+
- name: setup pnpm config
33+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
34+
- name: install dependencies
35+
run: pnpm install
36+
- name: create and publish versions
37+
uses: changesets/action@v1
38+
with:
39+
version: pnpm ci:version
40+
commit: 'chore: update versions'
41+
title: 'chore: update versions'
42+
publish: pnpm ci:publish
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2645

2746
- name: Create Release Pull Request or Publish to npm
2847
id: changesets
@@ -32,6 +51,4 @@ jobs:
3251
version: yarn version-packages
3352
publish: yarn release
3453
env:
35-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3654
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37-

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"lint": "eslint packages --ext js,jsx,ts,tsx",
3131
"format": "prettier --write .",
3232
"changeset": "changeset",
33-
"version-packages": "changeset version && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install",
34-
"release": "yarn build && yarn changeset publish",
33+
"ci:version": "changeset version",
34+
"ci:publish": "pnpm build && changeset publish",
3535
"postinstall": "husky install"
3636
},
3737
"lint-staged": {

tsconfig.esm.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"skipLibCheck": true,
1010
"esModuleInterop": true,
1111
"allowJs": true,
12-
"lib": ["ES2020"]
12+
"lib": ["ES2020"],
13+
"checkJs": true
1314
},
1415
"exclude": [
1516
"node_modules",

0 commit comments

Comments
 (0)