revert accidental changes

This commit is contained in:
Prasang Prajapati 2025-09-18 16:23:22 -04:00
parent 1a8239cf08
commit 9ddfd955b5
4 changed files with 0 additions and 53 deletions

View file

@ -18,10 +18,8 @@
"bundle:nightly": "turbo bundle:nightly --log-order grouped --output-logs new-only",
"vsix": "turbo vsix --log-order grouped --output-logs new-only",
"vsix:nightly": "turbo vsix:nightly --log-order grouped --output-logs new-only",
"vsix:timestamp": "node scripts/update-version-timestamp.js && turbo vsix --log-order grouped --output-logs new-only",
"clean": "turbo clean --log-order grouped --output-logs new-only && rimraf dist out bin .vite-port .turbo",
"install:vsix": "pnpm install --frozen-lockfile && pnpm clean && pnpm vsix && node scripts/install-vsix.js",
"install:vsix:timestamp": "pnpm install --frozen-lockfile && pnpm clean && pnpm vsix:timestamp && node scripts/install-vsix.js",
"changeset:version": "cp CHANGELOG.md src/CHANGELOG.md && changeset version && cp -vf src/CHANGELOG.md .",
"knip": "knip --include files",
"update-contributors": "node scripts/update-contributors.js",

10
pnpm-lock.yaml generated
View file

@ -855,9 +855,6 @@ importers:
'@types/lodash':
specifier: ^4.14.201
version: 4.17.17
'@types/lodash.debounce':
specifier: ^4.0.9
version: 4.0.9
'@types/mocha':
specifier: ^10.0.10
version: 10.0.10
@ -4031,9 +4028,6 @@ packages:
'@types/katex@0.16.7':
resolution: {integrity: sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==}
'@types/lodash.debounce@4.0.9':
resolution: {integrity: sha512-Ma5JcgTREwpLRwMM+XwBR7DaWe96nC38uCBDFKZWbNKD+osjVzdpnUSwBcqCptrp16sSOLBAUb50Car5I0TCsQ==}
'@types/lodash@4.17.17':
resolution: {integrity: sha512-RRVJ+J3J+WmyOTqnz3PiBLA501eKwXl2noseKOrNo/6+XEHjTAxO4xHvxQB6QuNm+s4WRbn6rSiap8+EA+ykFQ==}
@ -13646,10 +13640,6 @@ snapshots:
'@types/katex@0.16.7': {}
'@types/lodash.debounce@4.0.9':
dependencies:
'@types/lodash': 4.17.17
'@types/lodash@4.17.17': {}
'@types/mdast@3.0.15':

View file

@ -1,40 +0,0 @@
#!/usr/bin/env node
const fs = require("fs")
const path = require("path")
/**
* Updates the version in package.json with a timestamp suffix
*/
function updateVersionWithTimestamp() {
const packageJsonPath = path.join(__dirname, "../src/package.json")
try {
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"))
const currentVersion = packageJson.version
const versionMatch = currentVersion.match(/^(\d+\.\d+\.\d+)/)
const baseVersion = versionMatch ? versionMatch[1] : currentVersion
const now = new Date()
const month = String(now.getMonth() + 1).padStart(2, "0")
const day = String(now.getDate()).padStart(2, "0")
const year = now.getFullYear()
const hours = String(now.getHours()).padStart(2, "0")
const minutes = String(now.getMinutes()).padStart(2, "0")
const seconds = String(now.getSeconds()).padStart(2, "0")
const timestamp = `${month}${day}${year}-${hours}${minutes}${seconds}`
const newVersion = `${baseVersion}-${timestamp}`
packageJson.version = newVersion
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, "\t"))
console.log(`Version updated from ${currentVersion} to ${newVersion}`)
return newVersion
} catch (error) {
console.error("Error updating version with timestamp:", error)
process.exit(1)
}
}
if (require.main === module) {
updateVersionWithTimestamp()
}
module.exports = { updateVersionWithTimestamp }

View file

@ -522,7 +522,6 @@
"@types/diff": "^5.2.1",
"@types/diff-match-patch": "^1.0.36",
"@types/glob": "^8.1.0",
"@types/lodash.debounce": "^4.0.9",
"@types/lodash": "^4.14.201",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",