mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 01:10:03 +02:00
refactor package command to ensure dist directory is created if it doesn't exist
Some checks failed
CI / general (push) Has been cancelled
Some checks failed
CI / general (push) Has been cancelled
This commit is contained in:
parent
cbd450a81a
commit
9275c14c72
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@zen-browser/surfer",
|
"name": "@zen-browser/surfer",
|
||||||
"version": "1.9.15",
|
"version": "1.9.16",
|
||||||
"description": "Simplifying building firefox forks!",
|
"description": "Simplifying building firefox forks!",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -34,6 +34,9 @@ export const surferPackage = async () => {
|
||||||
const version = brandingDetails.release.displayVersion
|
const version = brandingDetails.release.displayVersion
|
||||||
const channel = brandingKey || 'unofficial'
|
const channel = brandingKey || 'unofficial'
|
||||||
|
|
||||||
|
log.debug("Creating the dist directory if it doesn't exist")
|
||||||
|
if (!existsSync(DIST_DIR)) await mkdir(DIST_DIR, { recursive: true })
|
||||||
|
|
||||||
// The engine directory must have been downloaded for this to be valid
|
// The engine directory must have been downloaded for this to be valid
|
||||||
// TODO: Make this a reusable function that can be used by everything
|
// TODO: Make this a reusable function that can be used by everything
|
||||||
if (!process.env.JUST_MAR) {
|
if (!process.env.JUST_MAR) {
|
||||||
|
@ -72,9 +75,6 @@ export const surferPackage = async () => {
|
||||||
|
|
||||||
log.info('Copying results up')
|
log.info('Copying results up')
|
||||||
|
|
||||||
log.debug("Creating the dist directory if it doesn't exist")
|
|
||||||
if (!existsSync(DIST_DIR)) await mkdir(DIST_DIR, { recursive: true })
|
|
||||||
|
|
||||||
log.debug('Indexing files to copy')
|
log.debug('Indexing files to copy')
|
||||||
const filesInMozillaDistrobution = await readdir(join(OBJ_DIR, 'dist'), {
|
const filesInMozillaDistrobution = await readdir(join(OBJ_DIR, 'dist'), {
|
||||||
withFileTypes: true,
|
withFileTypes: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue