Skip to content

Commit

Permalink
fix: types should always come first in exports (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored May 6, 2022
1 parent 6b0d5d9 commit f686714
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .changeset/pink-humans-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"prettier-plugin-pkg": patch
"prettier-plugin-sh": patch
"prettier-plugin-sql": patch
---

fix: `types` should always come first in `exports`
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"node": "14",
"node": "16",
"packages": [
"packages/*"
],
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- 12
- 14
- 16
- 18
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 14.x
- name: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
cache: yarn

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions packages/pkg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
"require": "./lib/index.cjs"
},
"types": "./lib/index.d.ts",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/sh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
"require": "./lib/index.cjs"
},
"types": "./lib/index.d.ts",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
"require": "./lib/index.cjs"
},
"types": "./lib/index.d.ts",
"files": [
Expand Down

0 comments on commit f686714

Please sign in to comment.