limina 0.0.5 → 0.0.6

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/README.md CHANGED
@@ -8,7 +8,6 @@
8
8
  <p align="center">
9
9
  <a href="https://npmjs.com/package/limina"><img src="https://img.shields.io/npm/v/limina.svg" alt="npm package"></a>
10
10
  <a href="https://nodejs.org/en/about/previous-releases"><img src="https://img.shields.io/node/v/limina.svg" alt="node compatibility"></a>
11
- <a href="https://github.com/XiSenao/docs-islands/actions/workflows/ci.yml"><img src="https://github.com/XiSenao/docs-islands/actions/workflows/ci.yml/badge.svg?branch=main" alt="build status"></a>
12
11
  <a href="https://github.com/XiSenao/docs-islands/blob/main/packages/limina/LICENSE.md"><img src="https://img.shields.io/npm/l/limina.svg" alt="license"></a>
13
12
  </p>
14
13
 
@@ -19,7 +18,7 @@ English | [简体中文](./README.zh-CN.md)
19
18
  - Keep source dependency graphs aligned with type build graphs
20
19
  - Guard package, runtime, and workspace boundaries
21
20
  - Cover TypeScript and framework-specific checkers
22
- - Manage compatibility paths for workspace source dependencies
21
+ - Keep source manifests and built package outputs aligned
23
22
  - Validate package outputs before release
24
23
  - Compose checks for local development, CI, and publishing
25
24
 
package/README.zh-CN.md CHANGED
@@ -8,7 +8,6 @@
8
8
  <p align="center">
9
9
  <a href="https://npmjs.com/package/limina"><img src="https://img.shields.io/npm/v/limina.svg" alt="npm package"></a>
10
10
  <a href="https://nodejs.org/en/about/previous-releases"><img src="https://img.shields.io/node/v/limina.svg" alt="node compatibility"></a>
11
- <a href="https://github.com/XiSenao/docs-islands/actions/workflows/ci.yml"><img src="https://github.com/XiSenao/docs-islands/actions/workflows/ci.yml/badge.svg?branch=main" alt="build status"></a>
12
11
  <a href="https://github.com/XiSenao/docs-islands/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/limina.svg" alt="license"></a>
13
12
  </p>
14
13
 
@@ -19,7 +18,7 @@
19
18
  - 保持源码依赖图与类型构建图一致
20
19
  - 守住 package、运行时与工程边界
21
20
  - 覆盖 TypeScript 与框架专属 checker
22
- - 管理 workspace 源码依赖的兼容路径
21
+ - 让源码 manifest 与构建产物 manifest 保持一致
23
22
  - 验证发布前 package 产物
24
23
  - 组合适合本地、CI 与发布流程的检查
25
24
 
package/bin/limina.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawnSync } from 'node:child_process';
3
3
  import { existsSync } from 'node:fs';
4
+ import path from 'node:path';
4
5
  import { fileURLToPath, pathToFileURL } from 'node:url';
5
- import path from 'pathe';
6
6
 
7
7
  const packageDir = path.resolve(fileURLToPath(new URL('..', import.meta.url)));
8
8
  const distCliPath = path.join(packageDir, 'cli.js');
@@ -0,0 +1,114 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ //#region \0rolldown/runtime.js
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 __exportAll = (all, no_symbols) => {
12
+ let target = {};
13
+ for (var name in all) {
14
+ __defProp(target, name, {
15
+ get: all[name],
16
+ enumerable: true
17
+ });
18
+ }
19
+ if (!no_symbols) {
20
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
21
+ }
22
+ return target;
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") {
26
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
27
+ key = keys[i];
28
+ if (!__hasOwnProp.call(to, key) && key !== except) {
29
+ __defProp(to, key, {
30
+ get: ((k) => from[k]).bind(null, key),
31
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
32
+ });
33
+ }
34
+ }
35
+ }
36
+ return to;
37
+ };
38
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
39
+ value: mod,
40
+ enumerable: true
41
+ }) : target, mod));
42
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
43
+
44
+ //#endregion
45
+ //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
46
+ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
48
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
49
+ let formatter = (open, close, replace = open) => (input) => {
50
+ let string = "" + input, index = string.indexOf(close, open.length);
51
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
52
+ };
53
+ let replaceClose = (string, close, replace, index) => {
54
+ let result = "", cursor = 0;
55
+ do {
56
+ result += string.substring(cursor, index) + replace;
57
+ cursor = index + close.length;
58
+ index = string.indexOf(close, cursor);
59
+ } while (~index);
60
+ return result + string.substring(cursor);
61
+ };
62
+ let createColors = (enabled = isColorSupported) => {
63
+ let f = enabled ? formatter : () => String;
64
+ return {
65
+ isColorSupported: enabled,
66
+ reset: f("\x1B[0m", "\x1B[0m"),
67
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
68
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
69
+ italic: f("\x1B[3m", "\x1B[23m"),
70
+ underline: f("\x1B[4m", "\x1B[24m"),
71
+ inverse: f("\x1B[7m", "\x1B[27m"),
72
+ hidden: f("\x1B[8m", "\x1B[28m"),
73
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
74
+ black: f("\x1B[30m", "\x1B[39m"),
75
+ red: f("\x1B[31m", "\x1B[39m"),
76
+ green: f("\x1B[32m", "\x1B[39m"),
77
+ yellow: f("\x1B[33m", "\x1B[39m"),
78
+ blue: f("\x1B[34m", "\x1B[39m"),
79
+ magenta: f("\x1B[35m", "\x1B[39m"),
80
+ cyan: f("\x1B[36m", "\x1B[39m"),
81
+ white: f("\x1B[37m", "\x1B[39m"),
82
+ gray: f("\x1B[90m", "\x1B[39m"),
83
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
84
+ bgRed: f("\x1B[41m", "\x1B[49m"),
85
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
86
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
87
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
88
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
89
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
90
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
91
+ blackBright: f("\x1B[90m", "\x1B[39m"),
92
+ redBright: f("\x1B[91m", "\x1B[39m"),
93
+ greenBright: f("\x1B[92m", "\x1B[39m"),
94
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
95
+ blueBright: f("\x1B[94m", "\x1B[39m"),
96
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
97
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
98
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
99
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
100
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
101
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
102
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
103
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
104
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
105
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
106
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
107
+ };
108
+ };
109
+ module.exports = createColors();
110
+ module.exports.createColors = createColors;
111
+ }));
112
+
113
+ //#endregion
114
+ export { __toESM as a, __require as i, __commonJSMin as n, __exportAll as r, require_picocolors as t };