Skip to content

Commit

Permalink
Fix exports (#10)
Browse files Browse the repository at this point in the history
* fix readme

* Fix package
  • Loading branch information
samchungy authored Sep 1, 2023
1 parent a72e3e8 commit 467a317
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-pumas-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'mock-build': patch
---

Fix package.json exports declaration
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ on:
- beta
- master

permissions: {}

jobs:
release:
name: Release
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
env:
CI: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ name: Snapshot

on: workflow_dispatch

permissions: {}

jobs:
publish:
name: Publish snapshot version
runs-on: ubuntu-latest
env:
CI: true
permissions:
id-token: write
steps:
- name: Check out repo
uses: actions/checkout@main
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"license": "MIT",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"require": "./lib-commonjs/index.js",
"import": "./lib-es2015/index.js",
"types": "./lib-types/index.d.ts"
}
},
"main": "./lib-commonjs/index.js",
Expand Down

0 comments on commit 467a317

Please sign in to comment.