-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lint and format for build scripts
- Loading branch information
Showing
3 changed files
with
68 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#!/usr/bin/env node | ||
import path from 'path' | ||
import dotenv from 'dotenv' | ||
import { fileURLToPath } from 'url' | ||
import sade from 'sade' | ||
import path from 'path'; | ||
import dotenv from 'dotenv'; | ||
import { fileURLToPath } from 'url'; | ||
import sade from 'sade'; | ||
|
||
import { buildCmd } from './build.js' | ||
import { buildCmd } from './build.js'; | ||
|
||
const __dirname = path.dirname(fileURLToPath(import.meta.url)) | ||
const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
dotenv.config({ | ||
path: path.join(__dirname, '..', '.env') | ||
}) | ||
path: path.join(__dirname, '..', '.env'), | ||
}); | ||
|
||
const prog = sade('privacy-pass-issuer') | ||
const prog = sade('privacy-pass-issuer'); | ||
|
||
prog | ||
.command('build') | ||
.describe('Build the worker.') | ||
.option('--env', 'Environment', process.env.ENVIRONMENT ?? 'dev') | ||
.action(buildCmd) | ||
.command('build') | ||
.describe('Build the worker.') | ||
.option('--env', 'Environment', process.env.ENVIRONMENT ?? 'dev') | ||
.action(buildCmd); | ||
|
||
prog.parse(process.argv) | ||
prog.parse(process.argv); |