@clerc/plugin-strict-flags 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -9
  2. package/package.json +5 -3
package/dist/index.js CHANGED
@@ -1,14 +1,6 @@
1
1
  import { definePlugin } from "@clerc/core";
2
+ import { joinWithAnd } from "@clerc/utils";
2
3
 
3
- //#region ../utils/src/index.ts
4
- function joinWithAnd(values) {
5
- if (values.length === 0) return "";
6
- if (values.length === 1) return values[0];
7
- const last = values.pop();
8
- return `${values.join(", ")} and ${last}`;
9
- }
10
-
11
- //#endregion
12
4
  //#region src/index.ts
13
5
  const strictFlagsPlugin = () => definePlugin({ setup: (cli) => {
14
6
  cli.interceptor(async (ctx, next) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-strict-flags",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve)",
5
5
  "type": "module",
6
6
  "description": "Clerc plugin strict flags",
@@ -44,9 +44,11 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
+ "dependencies": {
48
+ "@clerc/utils": "1.0.3"
49
+ },
47
50
  "devDependencies": {
48
- "@clerc/core": "1.0.1",
49
- "@clerc/utils": "1.0.1"
51
+ "@clerc/core": "1.0.3"
50
52
  },
51
53
  "peerDependencies": {
52
54
  "@clerc/core": "*"