@powerlines/plugin-rspack 0.5.231 → 0.5.232

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 (136) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +0 -2
  2. package/dist/helpers/unplugin.cjs +4 -3
  3. package/dist/helpers/unplugin.mjs +3 -2
  4. package/dist/index.cjs +2 -2
  5. package/dist/index.d.mts +1 -1
  6. package/dist/index.mjs +3 -3
  7. package/dist/powerlines/package.cjs +11 -0
  8. package/dist/powerlines/package.mjs +5 -0
  9. package/dist/powerlines/schemas/fs.cjs +226 -0
  10. package/dist/powerlines/schemas/fs.mjs +224 -0
  11. package/dist/powerlines/src/api.cjs +568 -0
  12. package/dist/powerlines/src/api.mjs +566 -0
  13. package/dist/powerlines/src/internal/helpers/environment.cjs +50 -0
  14. package/dist/powerlines/src/internal/helpers/environment.mjs +47 -0
  15. package/dist/powerlines/src/internal/helpers/generate-types.cjs +78 -0
  16. package/dist/powerlines/src/internal/helpers/generate-types.mjs +76 -0
  17. package/dist/powerlines/src/internal/helpers/hooks.cjs +65 -0
  18. package/dist/powerlines/src/internal/helpers/hooks.mjs +63 -0
  19. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +24 -0
  20. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +23 -0
  21. package/dist/powerlines/src/internal/helpers/install.cjs +36 -0
  22. package/dist/powerlines/src/internal/helpers/install.mjs +35 -0
  23. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +97 -0
  24. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +93 -0
  25. package/dist/powerlines/src/internal/helpers/resolver.cjs +43 -0
  26. package/dist/powerlines/src/internal/helpers/resolver.mjs +41 -0
  27. package/dist/powerlines/src/lib/build/rspack.cjs +39 -0
  28. package/dist/powerlines/src/lib/build/rspack.mjs +37 -0
  29. package/dist/powerlines/src/lib/config-file.cjs +79 -0
  30. package/dist/powerlines/src/lib/config-file.mjs +76 -0
  31. package/dist/powerlines/src/lib/constants/environments.cjs +8 -0
  32. package/dist/powerlines/src/lib/constants/environments.mjs +6 -0
  33. package/dist/powerlines/src/lib/contexts/api-context.cjs +184 -0
  34. package/dist/powerlines/src/lib/contexts/api-context.mjs +182 -0
  35. package/dist/powerlines/src/lib/contexts/context.cjs +951 -0
  36. package/dist/powerlines/src/lib/contexts/context.mjs +949 -0
  37. package/dist/powerlines/src/lib/contexts/environment-context.cjs +195 -0
  38. package/dist/powerlines/src/lib/contexts/environment-context.mjs +194 -0
  39. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +78 -0
  40. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +77 -0
  41. package/dist/powerlines/src/lib/entry.cjs +85 -0
  42. package/dist/powerlines/src/lib/entry.mjs +83 -0
  43. package/dist/powerlines/src/lib/fs/helpers.cjs +85 -0
  44. package/dist/powerlines/src/lib/fs/helpers.mjs +81 -0
  45. package/dist/powerlines/src/lib/fs/storage/base.cjs +196 -0
  46. package/dist/powerlines/src/lib/fs/storage/base.mjs +195 -0
  47. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +170 -0
  48. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +169 -0
  49. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +88 -0
  50. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +87 -0
  51. package/dist/powerlines/src/lib/fs/vfs.cjs +912 -0
  52. package/dist/powerlines/src/lib/fs/vfs.mjs +910 -0
  53. package/dist/powerlines/src/lib/logger.cjs +58 -0
  54. package/dist/powerlines/src/lib/logger.mjs +55 -0
  55. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +103 -0
  56. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +101 -0
  57. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +149 -0
  58. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +144 -0
  59. package/dist/powerlines/src/lib/unplugin/factory.cjs +6 -0
  60. package/dist/powerlines/src/lib/unplugin/factory.mjs +8 -0
  61. package/dist/powerlines/src/lib/unplugin/helpers.cjs +29 -0
  62. package/dist/powerlines/src/lib/unplugin/helpers.mjs +27 -0
  63. package/dist/powerlines/src/lib/unplugin/index.cjs +4 -0
  64. package/dist/powerlines/src/lib/unplugin/index.mjs +6 -0
  65. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +66 -0
  66. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +65 -0
  67. package/dist/powerlines/src/lib/unplugin/plugin.cjs +71 -0
  68. package/dist/powerlines/src/lib/unplugin/plugin.mjs +70 -0
  69. package/dist/powerlines/src/lib/utilities/file-header.cjs +22 -0
  70. package/dist/powerlines/src/lib/utilities/file-header.mjs +21 -0
  71. package/dist/powerlines/src/lib/utilities/format.cjs +48 -0
  72. package/dist/powerlines/src/lib/utilities/format.mjs +46 -0
  73. package/dist/powerlines/src/lib/utilities/meta.cjs +44 -0
  74. package/dist/powerlines/src/lib/utilities/meta.mjs +40 -0
  75. package/dist/powerlines/src/lib/utilities/source-file.cjs +22 -0
  76. package/dist/powerlines/src/lib/utilities/source-file.mjs +21 -0
  77. package/dist/powerlines/src/plugin-utils/helpers.cjs +167 -0
  78. package/dist/powerlines/src/plugin-utils/helpers.mjs +156 -0
  79. package/dist/powerlines/src/plugin-utils/paths.cjs +36 -0
  80. package/dist/powerlines/src/plugin-utils/paths.mjs +35 -0
  81. package/dist/powerlines/src/types/babel.d.mts +2 -0
  82. package/dist/powerlines/src/types/build.cjs +23 -0
  83. package/dist/powerlines/src/types/build.mjs +21 -0
  84. package/dist/powerlines/src/types/commands.cjs +16 -0
  85. package/dist/powerlines/src/types/commands.mjs +15 -0
  86. package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +3 -2
  87. package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +4 -4
  88. package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +1 -1
  89. package/dist/powerlines/src/types/plugin.cjs +33 -0
  90. package/dist/powerlines/src/types/plugin.mjs +32 -0
  91. package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +1 -1
  92. package/dist/types/plugin.d.mts +3 -3
  93. package/package.json +3 -3
  94. package/dist/_virtual/rolldown_runtime.mjs +0 -32
  95. package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.cjs +0 -2
  96. package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +0 -4
  97. package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.cjs +0 -2
  98. package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.mjs +0 -4
  99. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +0 -15
  100. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -15
  101. package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs +0 -1
  102. package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +0 -3
  103. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.cjs +0 -28
  104. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs +0 -23
  105. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.cjs +0 -175
  106. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs +0 -170
  107. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.cjs +0 -871
  108. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs +0 -866
  109. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.cjs +0 -307
  110. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs +0 -302
  111. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.cjs +0 -300
  112. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs +0 -295
  113. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.cjs +0 -60
  114. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs +0 -55
  115. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.cjs +0 -46
  116. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.mjs +0 -44
  117. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs +0 -142
  118. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs +0 -140
  119. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.cjs +0 -114
  120. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.mjs +0 -112
  121. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.cjs +0 -59
  122. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.mjs +0 -54
  123. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.cjs +0 -35
  124. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.mjs +0 -33
  125. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.cjs +0 -236
  126. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.mjs +0 -231
  127. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.cjs +0 -54
  128. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.mjs +0 -49
  129. /package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +0 -0
  130. /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
  131. /package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +0 -0
  132. /package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +0 -0
  133. /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
  134. /package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +0 -0
  135. /package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +0 -0
  136. /package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +0 -0
@@ -1,32 +0,0 @@
1
- import { createRequire } from "node:module";
2
-
3
- //#region rolldown:runtime
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
14
- key = keys[i];
15
- if (!__hasOwnProp.call(to, key) && key !== except) {
16
- __defProp(to, key, {
17
- get: ((k) => from[k]).bind(null, key),
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- }
21
- }
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: true
28
- }) : target, mod));
29
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
30
-
31
- //#endregion
32
- export { __commonJSMin, __require, __toESM };
@@ -1,2 +0,0 @@
1
- require('../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs');
2
- require('../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs');
@@ -1,4 +0,0 @@
1
- import "../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs";
2
- import "../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs";
3
-
4
- export { };
@@ -1,2 +0,0 @@
1
- require('../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs');
2
- require('../../../../../@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.cjs');
@@ -1,4 +0,0 @@
1
- import "../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs";
2
- import "../../../../../@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs";
3
-
4
- export { };
@@ -1,15 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
3
- var comma = ",".charCodeAt(0);
4
- var semicolon = ";".charCodeAt(0);
5
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
6
- var intToChar = new Uint8Array(64);
7
- var charToInt = new Uint8Array(128);
8
- for (let i = 0; i < chars.length; i++) {
9
- const c = chars.charCodeAt(i);
10
- intToChar[i] = c;
11
- charToInt[c] = i;
12
- }
13
- var bufLength = 1024 * 16;
14
-
15
- //#endregion
@@ -1,15 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
2
- var comma = ",".charCodeAt(0);
3
- var semicolon = ";".charCodeAt(0);
4
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5
- var intToChar = new Uint8Array(64);
6
- var charToInt = new Uint8Array(128);
7
- for (let i = 0; i < chars.length; i++) {
8
- const c = chars.charCodeAt(i);
9
- intToChar[i] = c;
10
- charToInt[c] = i;
11
- }
12
- var bufLength = 1024 * 16;
13
-
14
- //#endregion
15
- export { };
@@ -1 +0,0 @@
1
- require('../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs');
@@ -1,3 +0,0 @@
1
- import "../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs";
2
-
3
- export { };
@@ -1,28 +0,0 @@
1
- 'use strict';
2
-
3
- const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
4
- const require_utils$1 = require('./lib/utils.cjs');
5
- const require_picomatch$2 = require('./lib/picomatch.cjs');
6
-
7
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
8
- var require_picomatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
9
- const pico = require_picomatch$2.default;
10
- const utils = require_utils$1.default;
11
- function picomatch(glob, options, returnState = false) {
12
- if (options && (options.windows === null || options.windows === void 0)) options = {
13
- ...options,
14
- windows: utils.isWindows()
15
- };
16
- return pico(glob, options, returnState);
17
- }
18
- Object.assign(picomatch, pico);
19
- module.exports = picomatch;
20
- }));
21
-
22
- //#endregion
23
- Object.defineProperty(exports, 'default', {
24
- enumerable: true,
25
- get: function () {
26
- return require_picomatch();
27
- }
28
- });
@@ -1,23 +0,0 @@
1
- import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_utils } from "./lib/utils.mjs";
3
- import { require_picomatch as require_picomatch$1 } from "./lib/picomatch.mjs";
4
-
5
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
6
- var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7
- const pico = require_picomatch$1();
8
- const utils = require_utils();
9
- function picomatch(glob, options, returnState = false) {
10
- if (options && (options.windows === null || options.windows === void 0)) options = {
11
- ...options,
12
- windows: utils.isWindows()
13
- };
14
- return pico(glob, options, returnState);
15
- }
16
- Object.assign(picomatch, pico);
17
- module.exports = picomatch;
18
- }));
19
-
20
- //#endregion
21
- export default require_picomatch();
22
-
23
- export { require_picomatch };
@@ -1,175 +0,0 @@
1
- 'use strict';
2
-
3
- const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
4
-
5
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
6
- var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
7
- const WIN_SLASH = "\\\\/";
8
- const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
9
- /**
10
- * Posix glob regex
11
- */
12
- const DOT_LITERAL = "\\.";
13
- const PLUS_LITERAL = "\\+";
14
- const QMARK_LITERAL = "\\?";
15
- const SLASH_LITERAL = "\\/";
16
- const ONE_CHAR = "(?=.)";
17
- const QMARK = "[^/]";
18
- const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
19
- const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
20
- const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
21
- const POSIX_CHARS = {
22
- DOT_LITERAL,
23
- PLUS_LITERAL,
24
- QMARK_LITERAL,
25
- SLASH_LITERAL,
26
- ONE_CHAR,
27
- QMARK,
28
- END_ANCHOR,
29
- DOTS_SLASH,
30
- NO_DOT: `(?!${DOT_LITERAL})`,
31
- NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
32
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
33
- NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
34
- QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
35
- STAR: `${QMARK}*?`,
36
- START_ANCHOR,
37
- SEP: "/"
38
- };
39
- /**
40
- * Windows glob regex
41
- */
42
- const WINDOWS_CHARS = {
43
- ...POSIX_CHARS,
44
- SLASH_LITERAL: `[${WIN_SLASH}]`,
45
- QMARK: WIN_NO_SLASH,
46
- STAR: `${WIN_NO_SLASH}*?`,
47
- DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
48
- NO_DOT: `(?!${DOT_LITERAL})`,
49
- NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
50
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
51
- NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
52
- QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
53
- START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
54
- END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
55
- SEP: "\\"
56
- };
57
- /**
58
- * POSIX Bracket Regex
59
- */
60
- const POSIX_REGEX_SOURCE = {
61
- alnum: "a-zA-Z0-9",
62
- alpha: "a-zA-Z",
63
- ascii: "\\x00-\\x7F",
64
- blank: " \\t",
65
- cntrl: "\\x00-\\x1F\\x7F",
66
- digit: "0-9",
67
- graph: "\\x21-\\x7E",
68
- lower: "a-z",
69
- print: "\\x20-\\x7E ",
70
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
71
- space: " \\t\\r\\n\\v\\f",
72
- upper: "A-Z",
73
- word: "A-Za-z0-9_",
74
- xdigit: "A-Fa-f0-9"
75
- };
76
- module.exports = {
77
- MAX_LENGTH: 1024 * 64,
78
- POSIX_REGEX_SOURCE,
79
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
80
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
81
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
82
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
83
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
84
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
85
- REPLACEMENTS: {
86
- __proto__: null,
87
- "***": "*",
88
- "**/**": "**",
89
- "**/**/**": "**"
90
- },
91
- CHAR_0: 48,
92
- CHAR_9: 57,
93
- CHAR_UPPERCASE_A: 65,
94
- CHAR_LOWERCASE_A: 97,
95
- CHAR_UPPERCASE_Z: 90,
96
- CHAR_LOWERCASE_Z: 122,
97
- CHAR_LEFT_PARENTHESES: 40,
98
- CHAR_RIGHT_PARENTHESES: 41,
99
- CHAR_ASTERISK: 42,
100
- CHAR_AMPERSAND: 38,
101
- CHAR_AT: 64,
102
- CHAR_BACKWARD_SLASH: 92,
103
- CHAR_CARRIAGE_RETURN: 13,
104
- CHAR_CIRCUMFLEX_ACCENT: 94,
105
- CHAR_COLON: 58,
106
- CHAR_COMMA: 44,
107
- CHAR_DOT: 46,
108
- CHAR_DOUBLE_QUOTE: 34,
109
- CHAR_EQUAL: 61,
110
- CHAR_EXCLAMATION_MARK: 33,
111
- CHAR_FORM_FEED: 12,
112
- CHAR_FORWARD_SLASH: 47,
113
- CHAR_GRAVE_ACCENT: 96,
114
- CHAR_HASH: 35,
115
- CHAR_HYPHEN_MINUS: 45,
116
- CHAR_LEFT_ANGLE_BRACKET: 60,
117
- CHAR_LEFT_CURLY_BRACE: 123,
118
- CHAR_LEFT_SQUARE_BRACKET: 91,
119
- CHAR_LINE_FEED: 10,
120
- CHAR_NO_BREAK_SPACE: 160,
121
- CHAR_PERCENT: 37,
122
- CHAR_PLUS: 43,
123
- CHAR_QUESTION_MARK: 63,
124
- CHAR_RIGHT_ANGLE_BRACKET: 62,
125
- CHAR_RIGHT_CURLY_BRACE: 125,
126
- CHAR_RIGHT_SQUARE_BRACKET: 93,
127
- CHAR_SEMICOLON: 59,
128
- CHAR_SINGLE_QUOTE: 39,
129
- CHAR_SPACE: 32,
130
- CHAR_TAB: 9,
131
- CHAR_UNDERSCORE: 95,
132
- CHAR_VERTICAL_LINE: 124,
133
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
134
- extglobChars(chars) {
135
- return {
136
- "!": {
137
- type: "negate",
138
- open: "(?:(?!(?:",
139
- close: `))${chars.STAR})`
140
- },
141
- "?": {
142
- type: "qmark",
143
- open: "(?:",
144
- close: ")?"
145
- },
146
- "+": {
147
- type: "plus",
148
- open: "(?:",
149
- close: ")+"
150
- },
151
- "*": {
152
- type: "star",
153
- open: "(?:",
154
- close: ")*"
155
- },
156
- "@": {
157
- type: "at",
158
- open: "(?:",
159
- close: ")"
160
- }
161
- };
162
- },
163
- globChars(win32) {
164
- return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
165
- }
166
- };
167
- }));
168
-
169
- //#endregion
170
- Object.defineProperty(exports, 'default', {
171
- enumerable: true,
172
- get: function () {
173
- return require_constants();
174
- }
175
- });
@@ -1,170 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
4
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- const WIN_SLASH = "\\\\/";
6
- const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
7
- /**
8
- * Posix glob regex
9
- */
10
- const DOT_LITERAL = "\\.";
11
- const PLUS_LITERAL = "\\+";
12
- const QMARK_LITERAL = "\\?";
13
- const SLASH_LITERAL = "\\/";
14
- const ONE_CHAR = "(?=.)";
15
- const QMARK = "[^/]";
16
- const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
17
- const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
18
- const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
19
- const POSIX_CHARS = {
20
- DOT_LITERAL,
21
- PLUS_LITERAL,
22
- QMARK_LITERAL,
23
- SLASH_LITERAL,
24
- ONE_CHAR,
25
- QMARK,
26
- END_ANCHOR,
27
- DOTS_SLASH,
28
- NO_DOT: `(?!${DOT_LITERAL})`,
29
- NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
30
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
31
- NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
32
- QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
33
- STAR: `${QMARK}*?`,
34
- START_ANCHOR,
35
- SEP: "/"
36
- };
37
- /**
38
- * Windows glob regex
39
- */
40
- const WINDOWS_CHARS = {
41
- ...POSIX_CHARS,
42
- SLASH_LITERAL: `[${WIN_SLASH}]`,
43
- QMARK: WIN_NO_SLASH,
44
- STAR: `${WIN_NO_SLASH}*?`,
45
- DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
46
- NO_DOT: `(?!${DOT_LITERAL})`,
47
- NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
48
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
49
- NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
50
- QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
51
- START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
52
- END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
53
- SEP: "\\"
54
- };
55
- /**
56
- * POSIX Bracket Regex
57
- */
58
- const POSIX_REGEX_SOURCE = {
59
- alnum: "a-zA-Z0-9",
60
- alpha: "a-zA-Z",
61
- ascii: "\\x00-\\x7F",
62
- blank: " \\t",
63
- cntrl: "\\x00-\\x1F\\x7F",
64
- digit: "0-9",
65
- graph: "\\x21-\\x7E",
66
- lower: "a-z",
67
- print: "\\x20-\\x7E ",
68
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
69
- space: " \\t\\r\\n\\v\\f",
70
- upper: "A-Z",
71
- word: "A-Za-z0-9_",
72
- xdigit: "A-Fa-f0-9"
73
- };
74
- module.exports = {
75
- MAX_LENGTH: 1024 * 64,
76
- POSIX_REGEX_SOURCE,
77
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
78
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
79
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
80
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
81
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
82
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
83
- REPLACEMENTS: {
84
- __proto__: null,
85
- "***": "*",
86
- "**/**": "**",
87
- "**/**/**": "**"
88
- },
89
- CHAR_0: 48,
90
- CHAR_9: 57,
91
- CHAR_UPPERCASE_A: 65,
92
- CHAR_LOWERCASE_A: 97,
93
- CHAR_UPPERCASE_Z: 90,
94
- CHAR_LOWERCASE_Z: 122,
95
- CHAR_LEFT_PARENTHESES: 40,
96
- CHAR_RIGHT_PARENTHESES: 41,
97
- CHAR_ASTERISK: 42,
98
- CHAR_AMPERSAND: 38,
99
- CHAR_AT: 64,
100
- CHAR_BACKWARD_SLASH: 92,
101
- CHAR_CARRIAGE_RETURN: 13,
102
- CHAR_CIRCUMFLEX_ACCENT: 94,
103
- CHAR_COLON: 58,
104
- CHAR_COMMA: 44,
105
- CHAR_DOT: 46,
106
- CHAR_DOUBLE_QUOTE: 34,
107
- CHAR_EQUAL: 61,
108
- CHAR_EXCLAMATION_MARK: 33,
109
- CHAR_FORM_FEED: 12,
110
- CHAR_FORWARD_SLASH: 47,
111
- CHAR_GRAVE_ACCENT: 96,
112
- CHAR_HASH: 35,
113
- CHAR_HYPHEN_MINUS: 45,
114
- CHAR_LEFT_ANGLE_BRACKET: 60,
115
- CHAR_LEFT_CURLY_BRACE: 123,
116
- CHAR_LEFT_SQUARE_BRACKET: 91,
117
- CHAR_LINE_FEED: 10,
118
- CHAR_NO_BREAK_SPACE: 160,
119
- CHAR_PERCENT: 37,
120
- CHAR_PLUS: 43,
121
- CHAR_QUESTION_MARK: 63,
122
- CHAR_RIGHT_ANGLE_BRACKET: 62,
123
- CHAR_RIGHT_CURLY_BRACE: 125,
124
- CHAR_RIGHT_SQUARE_BRACKET: 93,
125
- CHAR_SEMICOLON: 59,
126
- CHAR_SINGLE_QUOTE: 39,
127
- CHAR_SPACE: 32,
128
- CHAR_TAB: 9,
129
- CHAR_UNDERSCORE: 95,
130
- CHAR_VERTICAL_LINE: 124,
131
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
132
- extglobChars(chars) {
133
- return {
134
- "!": {
135
- type: "negate",
136
- open: "(?:(?!(?:",
137
- close: `))${chars.STAR})`
138
- },
139
- "?": {
140
- type: "qmark",
141
- open: "(?:",
142
- close: ")?"
143
- },
144
- "+": {
145
- type: "plus",
146
- open: "(?:",
147
- close: ")+"
148
- },
149
- "*": {
150
- type: "star",
151
- open: "(?:",
152
- close: ")*"
153
- },
154
- "@": {
155
- type: "at",
156
- open: "(?:",
157
- close: ")"
158
- }
159
- };
160
- },
161
- globChars(win32) {
162
- return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
163
- }
164
- };
165
- }));
166
-
167
- //#endregion
168
- export default require_constants();
169
-
170
- export { require_constants };