-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2024 from aeternity/update-deps
Switch package type to module and update deps
- Loading branch information
Showing
58 changed files
with
3,908 additions
and
2,280 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
name: Publish release docs | ||
name: Build and publish docs | ||
on: | ||
pull_request: | ||
push: | ||
branches: [develop] | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
|
@@ -12,7 +14,10 @@ jobs: | |
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
python-version: 3.x | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip3 | ||
|
@@ -24,7 +29,13 @@ jobs: | |
~/.autorest | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
- run: pip3 install -r docs/requirements.txt | ||
- run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Action" | ||
- run: mike deploy --push --update-aliases $RELEASE_VERSION latest | ||
- if: github.event_name == 'pull_request' | ||
run: mkdocs build | ||
- if: github.event_name == 'push' | ||
run: mike deploy --push develop | ||
- if: github.event_name == 'release' | ||
run: | | ||
echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV | ||
mike deploy --push --update-aliases $RELEASE_VERSION latest |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
'node-option': ['import=tsx'], | ||
recursive: true, | ||
extension: '.ts', | ||
timeout: process.env.NETWORK ? '30s' : '6s', | ||
ignore: ['test/charts/**', 'test/emitter/**', 'test/environment/**'], | ||
}; |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
module.exports = { | ||
export default { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
|
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,19 +1,18 @@ | ||
const config = require('./babel.config'); | ||
import config from './babel.config.js'; | ||
|
||
config.presets | ||
.filter((plugin) => Array.isArray(plugin)) | ||
.find(([name]) => name === '@babel/preset-env')[1].modules = false; | ||
|
||
config.plugins.push( | ||
['add-import-extension', { extension: 'mjs' }], | ||
['add-import-extension', { extension: 'js' }], | ||
[ | ||
'import-globals', | ||
{ | ||
Buffer: { moduleName: 'buffer', exportName: 'Buffer' }, | ||
}, | ||
], | ||
['transform-default-named-imports', { exclude: ['@scure/bip39'] }], | ||
); | ||
config.plugins = config.plugins.filter((p) => p !== 'babel-plugin-transform-import-meta'); | ||
|
||
module.exports = config; | ||
export default config; |
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,4 +1,4 @@ | ||
module.exports = { | ||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'scope-enum': [ | ||
|
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
File renamed without changes.
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
Oops, something went wrong.