@plumeria/next-plugin 19.10.0 → 19.10.1

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/lint.d.ts CHANGED
@@ -1,2 +1 @@
1
- export declare function isNextBuild(argv: string[]): boolean;
2
1
  export declare function startNextLintGuard(rules?: Record<string, unknown>, argv?: string[]): boolean;
package/dist/lint.js CHANGED
@@ -1,13 +1,44 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNextBuild = isNextBuild;
4
36
  exports.startNextLintGuard = startNextLintGuard;
37
+ const path = __importStar(require("path"));
5
38
  const guard_1 = require("@plumeria/eslint-plugin/guard");
6
- function isNextBuild(argv) {
7
- return (/[\\/]next[\\/]/.test(argv[1] ?? '') && argv.slice(2).includes('build'));
8
- }
9
39
  function startNextLintGuard(rules = {}, argv = process.argv) {
10
- if (!isNextBuild(argv))
40
+ const [, bin = '', ...args] = argv;
41
+ if (path.basename(bin) !== 'next' || !args.includes('build'))
11
42
  return false;
12
43
  return (0, guard_1.startLintGuard)(rules);
13
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/next-plugin",
3
- "version": "19.10.0",
3
+ "version": "19.10.1",
4
4
  "description": "Plumeria Next.js plugin",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "dist/"
38
38
  ],
39
39
  "dependencies": {
40
- "@plumeria/eslint-plugin": "19.10.0",
41
- "@plumeria/turbopack-loader": "19.10.0"
40
+ "@plumeria/eslint-plugin": "19.10.1",
41
+ "@plumeria/turbopack-loader": "19.10.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "next": "^16.3.8",