Skip to content

Commit 1db113b

Browse files
authored
fix: add dist to exported files (#193)
1 parent c33232b commit 1db113b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: CI & Release
44
# Workflow name based on selected inputs. Fallback to default Github naming when expression evaluates to empty string
55
run-name: >-
66
${{
7-
inputs.release && inputs.test && 'Build ➤ Test ➤ Publish to NPM' ||
8-
inputs.release && !inputs.test && 'Build ➤ Skip Tests ➤ Publish to NPM' ||
9-
github.event_name == 'workflow_dispatch' && inputs.test && 'Build ➤ Test' ||
10-
github.event_name == 'workflow_dispatch' && !inputs.test && 'Build ➤ Skip Tests' ||
7+
inputs.release && inputs.test && format('Build {0} ➤ Test ➤ Publish to NPM', github.ref_name) ||
8+
inputs.release && !inputs.test && format('Build {0} ➤ Skip Tests ➤ Publish to NPM', github.ref_name) ||
9+
github.event_name == 'workflow_dispatch' && inputs.test && format('Build {0} ➤ Test', github.ref_name) ||
10+
github.event_name == 'workflow_dispatch' && !inputs.test && format('Build {0} ➤ Skip Tests', github.ref_name) ||
1111
''
1212
}}
1313
@@ -52,7 +52,7 @@ jobs:
5252
name: Lint & Build
5353
steps:
5454
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
55-
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
55+
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
5656
with:
5757
cache: npm
5858
node-version: lts/*
@@ -92,7 +92,7 @@ jobs:
9292
git config --global core.autocrlf false
9393
git config --global core.eol lf
9494
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
95-
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
95+
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
9696
with:
9797
cache: npm
9898
node-version: ${{ matrix.node }}
@@ -111,7 +111,7 @@ jobs:
111111
# Need to fetch entire commit history to
112112
# analyze every commit since last release
113113
fetch-depth: 0
114-
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
114+
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
115115
with:
116116
cache: npm
117117
node-version: lts/*

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"source": "./src/index.ts",
4242
"types": "./dist/index.d.ts",
4343
"files": [
44+
"dist",
45+
"sanity.json",
4446
"src",
45-
"lib",
46-
"v2-incompatible.js",
47-
"sanity.json"
47+
"v2-incompatible.js"
4848
],
4949
"scripts": {
5050
"build": "run-s clean && plugin-kit verify-package --silent && pkg-utils build --strict && pkg-utils --strict",

0 commit comments

Comments
 (0)