Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update Node.js to v22 LTS 📦 #586

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "pnpm"
- run: |
touch .env
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: ${{ steps.release.outputs.releases_created }}
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.releases_created }}
- uses: pnpm/action-setup@v4
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.13.1
v22.12.0
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}
},
"devDependencies": {
"@babel/plugin-syntax-import-assertions": "^7.26.0",
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@codecov/rollup-plugin": "^1.4.0",
"@noble/curves": "^1.7.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default [
json(),
babel({
extensions: ['.ts'],
plugins: ['@babel/plugin-syntax-import-assertions'],
plugins: ['@babel/plugin-syntax-import-attributes'],
babelHelpers: 'bundled',
presets: ['@babel/preset-env']
}),
Expand Down Expand Up @@ -54,7 +54,7 @@ export default [
json(),
babel({
extensions: ['.ts'],
plugins: ['@babel/plugin-syntax-import-assertions'],
plugins: ['@babel/plugin-syntax-import-attributes'],
babelHelpers: 'bundled',
presets: ['@babel/preset-env']
})
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/scripts/assets/checkDuplicates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import assetsMapJson from '../../src/maps/assets.json' assert { type: 'json' }
import assetsMapJson from '../../src/maps/assets.json' with { type: 'json' }
import type { TAssetJsonMap } from '../../src/types'

const assetsMap = assetsMapJson as TAssetJsonMap
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/nodes/config/getNodeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import configs from '../../maps/configs.json' assert { type: 'json' }
import configs from '../../maps/configs.json' with { type: 'json' }
import type { TNodeConfig, TNodeDotKsmWithRelayChains, TNodeConfigMap } from '../../types'

const configsMap = configs as TNodeConfigMap
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/pallets/assets/assets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Contains different useful asset query operations from compatible Parachains asset map

import assetsMapJson from '../../maps/assets.json' assert { type: 'json' }
import assetsMapJson from '../../maps/assets.json' with { type: 'json' }
import { NODE_NAMES_DOT_KSM } from '../../maps/consts'
import { getParaId } from '../../nodes/config'
import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/pallets/pallets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Script that pulls XCM Pallets for selected Parachain

import * as palletsMapJson from '../maps/pallets.json' assert { type: 'json' }
import * as palletsMapJson from '../maps/pallets.json' with { type: 'json' }
import type { TNodeDotKsmWithRelayChains, TPalletDetails } from '../types'
import { type TPallet, type TPalletJsonMap } from '../types'

Expand Down
3 changes: 0 additions & 3 deletions packages/xcm-analyser/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import typescript from 'rollup-plugin-typescript2';
import json from '@rollup/plugin-json';
import dts from 'rollup-plugin-dts';
import { babel } from '@rollup/plugin-babel';
import { codecovRollupPlugin } from '@codecov/rollup-plugin';
Expand All @@ -14,10 +13,8 @@ export default [
output: [{ file: './dist/index.mjs', format: 'esm' }],
plugins: [
typescript(),
json(),
babel({
extensions: ['.ts'],
plugins: ['@babel/plugin-syntax-import-assertions'],
babelHelpers: 'bundled',
presets: ['@babel/preset-env'],
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/xcm-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/plugin-syntax-import-assertions": "^7.26.0",
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@codecov/rollup-plugin": "^1.4.0",
"@rollup/plugin-babel": "^6.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/xcm-router/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default [
json(),
babel({
extensions: ['.ts'],
plugins: ['@babel/plugin-syntax-import-assertions'],
plugins: ['@babel/plugin-syntax-import-attributes'],
babelHelpers: 'bundled',
presets: ['@babel/preset-env'],
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/xcm-router/src/assets/assets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { TNodeWithRelayChains, TAsset as SdkTAsset, TCurrencyCoreV1 } from '@paraspell/sdk';
import { getAssets, isForeignAsset } from '@paraspell/sdk';
import * as assetsMapJson from '../consts/assets.json' assert { type: 'json' };
import * as assetsMapJson from '../consts/assets.json' with { type: 'json' };
import type { TAssetsRecord, TAutoSelect, TExchangeNode } from '../types';

const assetsMap = assetsMapJson as TAssetsRecord;
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading