-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
be less clever with constants and log less dumb stuff
- Loading branch information
Showing
3 changed files
with
1 addition
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
import path from 'node:path'; | ||
import fs from 'node:fs/promises'; | ||
|
||
const packageJsonContents = await fs.readFile(path.join(process.cwd(), 'package.json'), 'utf-8'); | ||
const packageJson = JSON.parse(packageJsonContents); | ||
|
||
export const VIDEOS_PATH = path.join(process.cwd(), '/videos'); | ||
export const PACKAGE_NAME = packageJson.name; | ||
export const PACKAGE_NAME = '@mux/next-video'; |
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