@secondlayer/cli 5.4.4 → 5.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +10 -4
- package/dist/cli.js.map +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -32321,7 +32321,7 @@ var {
|
|
|
32321
32321
|
// package.json
|
|
32322
32322
|
var package_default = {
|
|
32323
32323
|
name: "@secondlayer/cli",
|
|
32324
|
-
version: "5.4.
|
|
32324
|
+
version: "5.4.5",
|
|
32325
32325
|
description: "CLI for subgraphs and blockchain indexing on Stacks",
|
|
32326
32326
|
type: "module",
|
|
32327
32327
|
bin: {
|
|
@@ -36975,8 +36975,13 @@ function registerProjectCommand(program2) {
|
|
|
36975
36975
|
body: { name, slug }
|
|
36976
36976
|
});
|
|
36977
36977
|
success(`Created project ${res.name} (${res.slug})`);
|
|
36978
|
-
const
|
|
36979
|
-
|
|
36978
|
+
const config = await loadConfig();
|
|
36979
|
+
if (!config.defaultProject) {
|
|
36980
|
+
await saveConfig({ ...config, defaultProject: res.slug });
|
|
36981
|
+
info(dim("Set as your default project."));
|
|
36982
|
+
} else {
|
|
36983
|
+
info(dim(`To use this project, run: sl project use ${res.slug}`));
|
|
36984
|
+
}
|
|
36980
36985
|
info(dim("Next: sl subgraphs deploy <file.ts>"));
|
|
36981
36986
|
} catch (err) {
|
|
36982
36987
|
handleProjectError(err);
|
|
@@ -37017,6 +37022,7 @@ function registerProjectCommand(program2) {
|
|
|
37017
37022
|
const path2 = await writeActiveProject(slug, process.cwd());
|
|
37018
37023
|
success(`Bound to project "${slug}"`);
|
|
37019
37024
|
info(dim(`Written to ${path2}`));
|
|
37025
|
+
info(dim("Tip: add `.secondlayer/` to .gitignore — it's account-personal."));
|
|
37020
37026
|
});
|
|
37021
37027
|
project.command("current").description("Show the active project for this directory").action(async () => {
|
|
37022
37028
|
const config = await loadConfig();
|
|
@@ -37095,5 +37101,5 @@ registerAccountCommand(program);
|
|
|
37095
37101
|
registerBillingCommand(program);
|
|
37096
37102
|
program.parse();
|
|
37097
37103
|
|
|
37098
|
-
//# debugId=
|
|
37104
|
+
//# debugId=461B712EBC3F36FC64756E2164756E21
|
|
37099
37105
|
//# sourceMappingURL=cli.js.map
|