-
-
Notifications
You must be signed in to change notification settings - Fork 881
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build scripts, set project type to 'module'
- Loading branch information
1 parent
5140221
commit 9b2dffd
Showing
11 changed files
with
386 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"plugins": [ | ||
"@babel/plugin-transform-modules-commonjs", | ||
"@babel/plugin-transform-flow-strip-types" | ||
"@babel/plugin-transform-flow-strip-types", | ||
"@babel/plugin-syntax-import-attributes" | ||
], | ||
"sourceMaps": "inline" | ||
} |
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
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,18 +1,14 @@ | ||
/* @noflow */ | ||
/* eslint import/no-nodejs-modules: 0 */ | ||
|
||
/* eslint-disable import/no-commonjs, import/no-nodejs-modules */ | ||
|
||
const path = require('path'); // eslint-disable-line import/no-extraneous-dependencies | ||
import path from 'node:path'; | ||
|
||
const dir = 'changelog'; | ||
|
||
function changelogPath(filename) { | ||
return path.resolve(__dirname, path.join('..', '..', dir, filename)); | ||
export function changelogPath(filename) { | ||
return path.join(import.meta.dirname, '..', '..', dir, filename); | ||
} | ||
|
||
function changelogPathFromVersion(version) { | ||
export function changelogPathFromVersion(version) { | ||
return changelogPath(`v${version}.md`); | ||
} | ||
|
||
module.exports.changelogPath = changelogPath; | ||
module.exports.changelogPathFromVersion = changelogPathFromVersion; |
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
Oops, something went wrong.