Skip to content
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
5 changes: 2 additions & 3 deletions scripts/update-nightly/versions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ export function getExistingVersions() {
rust: getRustSDKVersion(false),
ts: getTSSDKVersion(false),
wallet: getWalletVersion(false),
// TODO: uncomment when sway-libs is bumped to 0.22.0
// sway_libs: getSwayLibsVersion(false),
sway_libs: getSwayLibsVersion(false),
sway_standards: getSwayStandardsVersion(false),
};
versions.nightly = {
forc: getForcVersion(true),
rust: getRustSDKVersion(true),
ts: getTSSDKVersion(true),
wallet: getWalletVersion(true),
// sway_libs: getSwayLibsVersion(true),
sway_libs: getSwayLibsVersion(true),
sway_standards: getSwayStandardsVersion(true),
};

Expand Down
2 changes: 1 addition & 1 deletion src/config/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rust": "0.63.0",
"ts": "0.89.1",
"wallet": "0.21.0",
"sway_libs": "0.21.0",
"sway_libs": "0.22.0",
"sway_standards": "0.5.0"
}
}
10 changes: 4 additions & 6 deletions src/lib/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ function getForcVersion(docsDir: string) {
}

function getSwayLibsVersion(docsDir: string) {
// TODO: uncomment this once sway-libs 0.22.0 is released
// const filedir = join(docsDir, 'sway-libs/Cargo.toml');
// const file = fs.readFileSync(filedir, 'utf-8');
// const tomfile = toml.parse(file);
// const version = tomfile.package.version;
const version = '0.21.0';
const filedir = join(docsDir, 'sway-libs/Cargo.toml');
const file = fs.readFileSync(filedir, 'utf-8');
const tomfile = toml.parse(file);
const version = tomfile.package.version;
return {
name: 'sway-libs',
category: 'Sway Libraries',
Expand Down