We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff65840 commit b2e5725Copy full SHA for b2e5725
scripts/unpack-next.cjs scripts/unpack-next.ts
@@ -1,14 +1,14 @@
1
// This script must be run with tsx
2
3
-const { NEXT_DIR, exec } = require('./pack-util')
4
-const fs = require('fs')
5
-const path = require('path')
+import { NEXT_DIR, exec } from './pack-util'
+import fs from 'fs'
+import path from 'path'
6
7
const TARBALLS = `${NEXT_DIR}/tarballs`
8
9
const PROJECT_DIR = path.resolve(process.argv[2])
10
11
-function realPathIfAny(path) {
+function realPathIfAny(path: fs.PathLike) {
12
try {
13
return fs.realpathSync(path)
14
} catch {
0 commit comments