chore: clean up packages (#7027)

This commit is contained in:
Alessio Gravili
2024-07-03 17:36:42 -04:00
committed by GitHub
parent 4583f5785b
commit 674ef3dc9c
16 changed files with 184 additions and 257 deletions

View File

@@ -66,7 +66,6 @@
"@types/esprima": "^4.0.6",
"@types/fs-extra": "^9.0.12",
"@types/jest": "29.5.12",
"@types/node": "20.12.5",
"temp-dir": "2.0.0"
"@types/node": "20.12.5"
}
}

View File

@@ -6,8 +6,8 @@ import { dbReplacements } from './replacements.js'
import { getValidTemplates } from './templates.js'
import globby from 'globby'
import { jest } from '@jest/globals'
import tempDirectory from 'temp-dir'
import fs from 'fs'
import * as os from 'node:os'
describe('createProject', () => {
let projectDir: string
@@ -16,6 +16,7 @@ describe('createProject', () => {
})
beforeEach(() => {
const tempDirectory = fs.realpathSync(os.tmpdir())
projectDir = `${tempDirectory}/${Math.random().toString(36).substring(7)}`
})