Skip to content

Commit

Permalink
use apiversion
Browse files Browse the repository at this point in the history
  • Loading branch information
fawazahmed0 committed Mar 1, 2024
1 parent 841a934 commit cf79d23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions currscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ const dateTodaySemVer = dateToday.replaceAll('-','.')

const pathToSkeletonPackage = path.join(__dirname, 'skeleton-package.json')

const apiVersion = 1

const rootDir = path.join(__dirname, 'package')
const rootDir = path.join(__dirname, 'package', `v${apiVersion}`)

begin()
// Begins the program
Expand All @@ -70,8 +71,8 @@ async function begin() {
// Set package version to dateToday
let barePackage = fs.readJsonSync(pathToSkeletonPackage)
barePackage['version'] = dateTodaySemVer
fs.writeJSONSync(path.join(rootDir, "package.json"), barePackage)
fs.writeFileSync(path.join(rootDir, "index.js"), "")
fs.writeJSONSync(path.join(rootDir, '..' ,"package.json"), barePackage)
fs.writeFileSync(path.join(rootDir, '..' ,"index.js"), "")

// Close the browser
// await browser.close()
Expand Down

0 comments on commit cf79d23

Please sign in to comment.