-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove single usage of import assertion (import ... with/assert) which was breaking compat with older node 18 versions (see https://github.com/nodejs/node/pull/52104\#issuecomment-2000337367)
- Loading branch information
Roy Razon
committed
May 28, 2024
1 parent
d804e84
commit 5cc497d
Showing
5 changed files
with
20 additions
and
10 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
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,10 +1,9 @@ | ||
import path from 'path' | ||
import url from 'url' | ||
import packageJsonImport from '../package.json' with { type: 'json' } | ||
|
||
// eslint-disable-next-line no-underscore-dangle | ||
const __dirname = url.fileURLToPath(new URL('.', import.meta.url)) | ||
|
||
export const DIR = path.join(__dirname, '../static') | ||
export const DEFAULT_TEMPLATE = path.join(DIR, './default-template.yaml.njk') | ||
export const packageJson = packageJsonImport | ||
export const packageJsonPath = path.join(__dirname, '../package.json') |