@adbayb/stack 0.0.0-next-b487c31 → 0.0.0-next-beb94a3
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/index.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -168,7 +168,7 @@ const ESLINT_EXTENSIONS = [
|
|
|
168
168
|
"mdx"
|
|
169
169
|
];
|
|
170
170
|
|
|
171
|
-
var version = "0.0.0-next-
|
|
171
|
+
var version = "0.0.0-next-beb94a3";
|
|
172
172
|
|
|
173
173
|
const VERSION = version;
|
|
174
174
|
|
|
@@ -412,6 +412,11 @@ const createCreateCommand = (program)=>{
|
|
|
412
412
|
handler ({ data, inputTemplate }) {
|
|
413
413
|
applyTemplate(inputTemplate, data);
|
|
414
414
|
}
|
|
415
|
+
}).task({
|
|
416
|
+
label: label$2("Set up the package manager"),
|
|
417
|
+
async handler () {
|
|
418
|
+
await setPkgManager();
|
|
419
|
+
}
|
|
415
420
|
}).task({
|
|
416
421
|
label: label$2("Install dependencies"),
|
|
417
422
|
async handler ({ data }) {
|
|
@@ -430,15 +435,10 @@ const createCreateCommand = (program)=>{
|
|
|
430
435
|
throw createError("pnpm", error);
|
|
431
436
|
}
|
|
432
437
|
}
|
|
433
|
-
}).task({
|
|
434
|
-
label: label$2("Set up the package manager"),
|
|
435
|
-
async handler () {
|
|
436
|
-
await setPkgManager();
|
|
437
|
-
}
|
|
438
438
|
}).task({
|
|
439
439
|
label: label$2("Create a symlink to `README.md` file"),
|
|
440
|
-
async handler ({ data }) {
|
|
441
|
-
await symlink(
|
|
440
|
+
async handler ({ data: { projectName }, inputTemplate }) {
|
|
441
|
+
await symlink(join(inputTemplate === "single-project" ? projectName : join("libraries", projectName), "README.md"), "./README.md");
|
|
442
442
|
}
|
|
443
443
|
}).task({
|
|
444
444
|
label: label$2("Run `stack install`"),
|