@adbayb/stack 2.1.0 → 2.3.0

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.
@@ -14,7 +14,6 @@ export const config = [
14
14
  rules: {
15
15
  "n/callback-return": "error",
16
16
  "n/exports-style": ["error", "module.exports"],
17
- "n/hashbang": "error",
18
17
  "n/no-exports-assign": "error",
19
18
  "n/no-path-concat": "error",
20
19
  "n/no-process-env": [
package/dist/index.js CHANGED
@@ -168,7 +168,7 @@ const ESLINT_EXTENSIONS = [
168
168
  "mdx"
169
169
  ];
170
170
 
171
- var version = "2.1.0";
171
+ var version = "2.3.0";
172
172
 
173
173
  const VERSION = version;
174
174
 
@@ -412,6 +412,16 @@ const createCreateCommand = (program)=>{
412
412
  handler ({ data, inputTemplate }) {
413
413
  applyTemplate(inputTemplate, data);
414
414
  }
415
+ }).task({
416
+ label: label$2("Create a symlink to `README.md` file"),
417
+ async handler ({ data: { projectName }, inputTemplate }) {
418
+ await symlink(join(inputTemplate === "single-project" ? projectName : join("libraries", projectName), "README.md"), "./README.md");
419
+ }
420
+ }).task({
421
+ label: label$2("Set up the package manager"),
422
+ async handler () {
423
+ await setPkgManager();
424
+ }
415
425
  }).task({
416
426
  label: label$2("Install dependencies"),
417
427
  async handler ({ data }) {
@@ -430,16 +440,6 @@ const createCreateCommand = (program)=>{
430
440
  throw createError("pnpm", error);
431
441
  }
432
442
  }
433
- }).task({
434
- label: label$2("Set up the package manager"),
435
- async handler () {
436
- await setPkgManager();
437
- }
438
- }).task({
439
- label: label$2("Create a symlink to `README.md` file"),
440
- async handler ({ data: { projectName }, inputTemplate }) {
441
- await symlink(join(inputTemplate === "single-project" ? projectName : join("libraries", projectName), "README.md"), "./README.md");
442
- }
443
443
  }).task({
444
444
  label: label$2("Run `stack install`"),
445
445
  async handler () {
@@ -653,7 +653,7 @@ const createPackagesVersionMismatchChecker = ()=>{
653
653
  };
654
654
  };
655
655
  const createPackageError = (message, context)=>{
656
- return createError("stack check", !context ? message : `\`${context.name}\` consumed by \`${context.consumedBy}\` doesn't conform to our package policy.\n${message}`);
656
+ return createError("stack check", !context ? message : `\`${context.name}\` consumed by \`${context.consumedBy}\` doesn't conform to \`package.json\` guidelines.\n${message}`);
657
657
  };
658
658
  function assertVersion(version, { name, consumedBy }) {
659
659
  assert(version, ()=>createPackageError(`\`${name}\` must have a valid version specified (current version equals to \`${String(version)}\`).`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adbayb/stack",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -60,7 +60,7 @@
60
60
  "eslint-plugin-jest-formatting": "^3.1.0",
61
61
  "eslint-plugin-jsdoc": "^50.4.3",
62
62
  "eslint-plugin-mdx": "^3.1.5",
63
- "eslint-plugin-n": "^17.12.0",
63
+ "eslint-plugin-n": "^17.13.1",
64
64
  "eslint-plugin-prettier": "^5.2.1",
65
65
  "eslint-plugin-react-hooks": "^5.0.0",
66
66
  "eslint-plugin-react": "^7.37.2",