Skip to content

Commit

Permalink
feat: rollup 3 (#9870)
Browse files Browse the repository at this point in the history
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
  • Loading branch information
patak-dev and bluwy authored Nov 7, 2022
1 parent 7a1c968 commit c84de99
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"prompts": "^2.4.2",
"resolve": "^1.22.1",
"rimraf": "^3.0.2",
"rollup": "^2.79.1",
"rollup": "~3.2.3",
"rollup-plugin-license": "^2.9.0",
"semver": "^7.3.8",
"simple-git-hooks": "^2.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@jridgewell/gen-mapping": "^0.3.2",
"@jridgewell/trace-mapping": "^0.3.17",
"debug": "^4.3.4",
"rollup": "^2.79.1",
"rollup": "~3.2.3",
"slash": "^5.0.0",
"source-map": "^0.6.1",
"vite": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion playground/vitestSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export async function notifyRebuildComplete(
await new Promise<void>((resolve) => {
resolveFn = resolve
})
return watcher.removeListener('event', callback)
return watcher.off('event', callback)
}

function createInMemoryLogger(logs: string[]): Logger {
Expand Down
4 changes: 2 additions & 2 deletions scripts/rollupLicensePlugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'node:path'
import license from 'rollup-plugin-license'
import colors from 'picocolors'
import fg from 'fast-glob'
import { sync as resolve } from 'resolve'
import resolve from 'resolve'

/**
* @param {string} licenseFilePath
Expand Down Expand Up @@ -73,7 +73,7 @@ function licensePlugin(licenseFilePath, licenseTitle, packageName) {
if (!licenseText && name) {
try {
const pkgDir = path.dirname(
resolve(path.join(name, 'package.json'), {
resolve.sync(path.join(name, 'package.json'), {
preserveSymlinks: false
})
)
Expand Down

0 comments on commit c84de99

Please sign in to comment.