Comparing version 0.2.1 to 0.2.2
@@ -88,4 +88,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const missingMembers = rustProjects | ||
.filter(([name]) => { var _a, _b; return !((_b = (_a = cargoToml === null || cargoToml === void 0 ? void 0 : cargoToml.workspace) === null || _a === void 0 ? void 0 : _a.members) === null || _b === void 0 ? void 0 : _b.includes(name)); }) | ||
.map(([name]) => getMemberPath(name)); | ||
.map(([name]) => getMemberPath(name)) | ||
.filter((path) => { var _a, _b; return !((_b = (_a = cargoToml === null || cargoToml === void 0 ? void 0 : cargoToml.workspace) === null || _a === void 0 ? void 0 : _a.members) === null || _b === void 0 ? void 0 : _b.includes(path)); }); | ||
if (missingMembers.length) { | ||
@@ -92,0 +92,0 @@ console.log(chalk.yellow(`Add the following \`workspace.members\` to ${resolve(cargoTomlPath)}: ${JSON.stringify(missingMembers)}`)); |
{ | ||
"name": "canpack", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Package multiple libraries into one ICP canister.", | ||
@@ -5,0 +5,0 @@ "author": "Ryan Vandersmith (https://github.com/rvanasa)", |
@@ -120,4 +120,4 @@ import TOML from '@iarna/toml'; | ||
const missingMembers = rustProjects | ||
.filter(([name]) => !cargoToml?.workspace?.members?.includes(name)) | ||
.map(([name]) => getMemberPath(name)); | ||
.map(([name]) => getMemberPath(name)) | ||
.filter((path) => !cargoToml?.workspace?.members?.includes(path)); | ||
if (missingMembers.length) { | ||
@@ -124,0 +124,0 @@ console.log( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70958