Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 13, 2024
1 parent 47e9f41 commit 8a73d4b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scripts/prepublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import { getExports } from './utils/exports.js'
const packageJsonPath = join(import.meta.dirname, '../src/package.json')
const packageJson = fs.readJsonSync(packageJsonPath)

const jsrJsonPath = join(import.meta.dirname, '../src/jsr.json')
const jsrJson = fs.readJsonSync(jsrJsonPath)

const exports = getExports({
onEntry: ({ entryName, name, parentEntryName }) => {
const distBasePath = (type: string) =>
Expand Down Expand Up @@ -37,9 +34,7 @@ const exports = getExports({
})

packageJson.exports = exports.dist
jsrJson.exports = exports.src

delete packageJson.type

fs.writeJsonSync(packageJsonPath, packageJson, { spaces: 2 })
fs.writeJsonSync(jsrJsonPath, jsrJson, { spaces: 2 })

0 comments on commit 8a73d4b

Please sign in to comment.