11 lines
377 B
JavaScript
11 lines
377 B
JavaScript
|
import * as fs from 'node:fs'
|
||
|
|
||
|
export default () => ({
|
||
|
finalJsr({ outDir }) {
|
||
|
// jsr doesn't support symlinks, so we need to copy the files manually
|
||
|
const real = fs.realpathSync(`${outDir}/common-internals-web`)
|
||
|
fs.unlinkSync(`${outDir}/common-internals-web`)
|
||
|
fs.cpSync(real, `${outDir}/common-internals-web`, { recursive: true })
|
||
|
},
|
||
|
})
|