Skip to content

Commit 7e817ed

Browse files
authored
Merge pull request #51 from supermemoryai/codex/fix-publish-build-lib-source
[codex] Fix publish build source tracking
2 parents 6b66e55 + 0b0b869 commit 7e817ed

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: Publish Package
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
78
paths:
89
- "package.json"
10+
- "lib/**"
11+
- ".github/workflows/publish.yml"
912

1013
jobs:
1114
publish:
@@ -58,7 +61,7 @@ jobs:
5861

5962
- name: Build
6063
if: steps.version-check.outputs.changed == 'true'
61-
run: bun run build:lib
64+
run: bun run build
6265

6366
- name: Publish
6467
if: steps.version-check.outputs.changed == 'true'

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ temp/
88
*.tsbuildinfo
99
.DS_Store
1010
pnpm-lock.yaml
11-
package-lock.json
11+
package-lock.json

biome.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"!**/dist",
1818
"!**/bun.lock",
1919
"!**/*.lock",
20+
"!lib/validate.ts",
2021
"!lib/validate.js"
2122
]
2223
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"check-types": "tsc --noEmit",
3232
"lint": "bunx @biomejs/biome ci .",
3333
"lint:fix": "bunx @biomejs/biome check --write .",
34-
"build:lib": "esbuild lib/validate.ts --bundle --minify --format=esm --platform=node --target=es2022 --external:node:crypto --outfile=lib/validate.js",
34+
"build:lib": "node -e \"const fs=require('node:fs'); fs.accessSync('lib/validate.js'); fs.accessSync('lib/validate.d.ts')\"",
3535
"prepack": "npm run build"
3636
},
3737
"peerDependencies": {

0 commit comments

Comments
 (0)