Skip to content

Commit

Permalink
feat(core): publish-sync is core feature
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 20, 2024
1 parent 7d64f84 commit 92a0f64
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 54 deletions.
1 change: 0 additions & 1 deletion fixtures/default/yakumo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
- esbuild
- name: yakumo-esbuild
- name: yakumo-mocha
- name: yakumo-publish-sync
- name: yakumo-tsc
4 changes: 4 additions & 0 deletions packages/core/src/plugins/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ export default function apply(ctx: Context) {
if (argv.otp) args.push('--otp', argv.otp)
const code = await publish(ctx.yakumo.manager, path, meta, args, argv)
assert(!code)
// sync npm mirror
fetch('https://registry-direct.npmmirror.com/' + meta.name + '/sync?sync_upstream=true', {
method: 'PUT',
}).catch(() => {})
await ctx.parallel('publish/after', path, meta)
} catch (e) {
failed++
Expand Down
2 changes: 0 additions & 2 deletions packages/publish-sync/.npmignore

This file was deleted.

31 changes: 0 additions & 31 deletions packages/publish-sync/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/publish-sync/src/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/publish-sync/tsconfig.json

This file was deleted.

1 change: 0 additions & 1 deletion yakumo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
- tsc
- esbuild
- name: yakumo-esbuild
- name: yakumo-publish-sync
- name: yakumo-tsc

0 comments on commit 92a0f64

Please sign in to comment.