@ariestools/toolchain 9.1.0 → 9.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"gitlint.d.ts","sourceRoot":"","sources":["../../src/actions/gitlint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAKrD,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAG7E,eAAO,MAAM,aAAa,EAAE,mBAAmB,EA8C9C,CAAA;AAOD,wBAAsB,UAAU,CAAC,GAAG,UAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CAuBrE;AAED,wBAAgB,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,CAEjD"}
1
+ {"version":3,"file":"gitlint.d.ts","sourceRoot":"","sources":["../../src/actions/gitlint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAQrD,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAG7E,eAAO,MAAM,aAAa,EAAE,mBAAmB,EA+D9C,CAAA;AAOD,wBAAsB,UAAU,CAAC,GAAG,UAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CAuBrE;AAED,wBAAgB,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,CAEjD"}
@@ -0,0 +1,19 @@
1
+ /** The canonical entry that denies the toolchain cache at every depth. */
2
+ export declare const TOOLCHAIN_CACHE_IGNORE_ENTRY = "**/.xy/cache/";
3
+ export declare const TOOLCHAIN_CACHE_IGNORE_COMMENT = "# XY toolchain cache (never .xy/work, which is tracked)";
4
+ /**
5
+ * Whether the ignore file denies the toolchain cache in every package.
6
+ *
7
+ * The toolchain writes `<packageRoot>/.xy/cache` for each package it compiles,
8
+ * so a root-only rule leaves every package's cache committable.
9
+ */
10
+ export declare function coversNestedToolchainCache(content: string): boolean;
11
+ /**
12
+ * Add the canonical entry, replacing a superseded root-anchored one in place
13
+ * so the file gains coverage without gaining a redundant line.
14
+ */
15
+ export declare function applyToolchainCacheEntry(content: string): string;
16
+ export declare function hasNestedToolchainCacheEntry(rootDir: string): boolean;
17
+ /** Returns true when the file was changed. */
18
+ export declare function writeToolchainCacheEntry(rootDir: string): boolean;
19
+ //# sourceMappingURL=gitlintIgnore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitlintIgnore.d.ts","sourceRoot":"","sources":["../../src/actions/gitlintIgnore.ts"],"names":[],"mappings":"AAKA,0EAA0E;AAC1E,eAAO,MAAM,4BAA4B,kBAAkB,CAAA;AAE3D,eAAO,MAAM,8BAA8B,4DAA4D,CAAA;AA2BvG;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAKnE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAgBhE;AAWD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,8CAA8C;AAC9C,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAMjE"}
@@ -15,6 +15,7 @@ export * from './fix.ts';
15
15
  export * from './gitignore.ts';
16
16
  export * from './gitlint.ts';
17
17
  export * from './gitlint-fix.ts';
18
+ export * from './gitlintIgnore.ts';
18
19
  export * from './incremental.ts';
19
20
  export * from './install.ts';
20
21
  export * from './license.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;A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mB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAClD,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,yBAAyB,CAAA;AACvC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA"}
@@ -15595,7 +15595,7 @@ var init_main = __esmMin((() => {
15595
15595
  exec = x;
15596
15596
  }));
15597
15597
  //#endregion
15598
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
15598
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/utils.js
15599
15599
  /**
15600
15600
  * @param {string} packageManager
15601
15601
  * @returns {string[]}
@@ -15618,7 +15618,7 @@ async function getTempPackDir() {
15618
15618
  }
15619
15619
  var init_utils$2 = __esmMin((() => {}));
15620
15620
  //#endregion
15621
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack.js
15621
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/pack.js
15622
15622
  /** @type {import('../index.d.ts').pack} */
15623
15623
  async function pack(dir, opts) {
15624
15624
  const packageManager = opts?.packageManager ?? "npm";
@@ -15656,7 +15656,7 @@ var init_pack = __esmMin((() => {
15656
15656
  init_utils$2();
15657
15657
  }));
15658
15658
  //#endregion
15659
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-json.js
15659
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/pack-as-json.js
15660
15660
  /** @type {import('../index.d.ts').packAsJson} */
15661
15661
  async function packAsJson(dir, opts) {
15662
15662
  const packageManager = opts?.packageManager ?? "npm";
@@ -15715,7 +15715,7 @@ var init_pack_as_json = __esmMin((() => {
15715
15715
  init_utils$2();
15716
15716
  }));
15717
15717
  //#endregion
15718
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/buffer-stream.js
15718
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/shared/buffer-stream.js
15719
15719
  /**
15720
15720
  * @param {ReadableStream<Uint8Array>} readableStream
15721
15721
  * @returns {Promise<ArrayBuffer>}
@@ -15725,7 +15725,7 @@ async function readableStreamToArrayBuffer(readableStream) {
15725
15725
  }
15726
15726
  var init_buffer_stream = __esmMin((() => {}));
15727
15727
  //#endregion
15728
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/parse-tar.js
15728
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/shared/parse-tar.js
15729
15729
  /**
15730
15730
  * @param {ArrayBuffer} buffer
15731
15731
  * @returns {import('../index.d.ts').TarballFile[]}
@@ -15735,11 +15735,11 @@ function parseTar(buffer) {
15735
15735
  /** @type {import('../index.d.ts').TarballFile[]} */
15736
15736
  const files = [];
15737
15737
  let offset = 0;
15738
- while (offset < buffer.byteLength) {
15739
- const type = read(buffer, decoder, offset + 156, 1);
15740
- if (type === "\0") break;
15738
+ while (offset + 512 <= buffer.byteLength) {
15741
15739
  const size = parseInt(read(buffer, decoder, offset + 124, 12), 8);
15742
- if (type === "0") {
15740
+ if (Number.isNaN(size)) break;
15741
+ const type = read(buffer, decoder, offset + 156, 1);
15742
+ if (type === "0" || type === "\0") {
15743
15743
  const name = read(buffer, decoder, offset, 100).split("\0", 1)[0];
15744
15744
  const data = new Uint8Array(buffer, offset + 512, size);
15745
15745
  files.push({
@@ -15769,7 +15769,7 @@ function getFilesRootDir(files) {
15769
15769
  }
15770
15770
  var init_parse_tar = __esmMin((() => {}));
15771
15771
  //#endregion
15772
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/unpack.js
15772
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/unpack.js
15773
15773
  /** @type {import('../index.d.ts').unpack} */
15774
15774
  async function unpack(tarball) {
15775
15775
  /** @type {ArrayBuffer} */
@@ -15790,7 +15790,7 @@ var init_unpack = __esmMin((() => {
15790
15790
  init_parse_tar();
15791
15791
  }));
15792
15792
  //#endregion
15793
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-list.js
15793
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/pack-as-list.js
15794
15794
  /** @type {import('../index.d.ts').packAsList} */
15795
15795
  async function packAsList(dir, opts) {
15796
15796
  const packageManager = opts?.packageManager ?? "npm";
@@ -15874,7 +15874,7 @@ var init_pack_as_list = __esmMin((() => {
15874
15874
  init_utils$2();
15875
15875
  }));
15876
15876
  //#endregion
15877
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/get-pack-directory.js
15877
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/get-pack-directory.js
15878
15878
  /** @type {import('../index.d.ts').getPackDirectory} */
15879
15879
  async function getPackDirectory(dir, packageManager) {
15880
15880
  if (packageManager === "pnpm") try {
@@ -15886,7 +15886,7 @@ async function getPackDirectory(dir, packageManager) {
15886
15886
  }
15887
15887
  var init_get_pack_directory = __esmMin((() => {}));
15888
15888
  //#endregion
15889
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/constants.js
15889
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/shared/constants.js
15890
15890
  var supportedPackageManagers;
15891
15891
  var init_constants$2 = __esmMin((() => {
15892
15892
  supportedPackageManagers = [
@@ -15897,7 +15897,7 @@ var init_constants$2 = __esmMin((() => {
15897
15897
  ];
15898
15898
  }));
15899
15899
  //#endregion
15900
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/index-node.js
15900
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/index-node.js
15901
15901
  var init_index_node$1 = __esmMin((() => {
15902
15902
  init_pack();
15903
15903
  init_pack_as_list();
@@ -15907,7 +15907,7 @@ var init_index_node$1 = __esmMin((() => {
15907
15907
  init_constants$2();
15908
15908
  }));
15909
15909
  //#endregion
15910
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/node/vfs-node.js
15910
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/node/vfs-node.js
15911
15911
  /**
15912
15912
  * Creates a node-compatible Vfs object
15913
15913
  * @returns {import('../shared/core.js').Vfs}
@@ -15946,7 +15946,7 @@ function createNodeVfs() {
15946
15946
  }
15947
15947
  var init_vfs_node = __esmMin((() => {}));
15948
15948
  //#endregion
15949
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/constants.js
15949
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/constants.js
15950
15950
  var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, commonInternalTestFileRegex, licenseFiles;
15951
15951
  var init_constants$1 = __esmMin((() => {
15952
15952
  lintableFileExtensions = [
@@ -16007,7 +16007,7 @@ var init_constants$1 = __esmMin((() => {
16007
16007
  ];
16008
16008
  }));
16009
16009
  //#endregion
16010
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/utils.js
16010
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/utils.js
16011
16011
  /**
16012
16012
  * @param {string} code
16013
16013
  */
@@ -16423,7 +16423,7 @@ var init_utils$1 = __esmMin((() => {
16423
16423
  DTS_RE = /\.d\.[mc]?ts$/;
16424
16424
  }));
16425
16425
  //#endregion
16426
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/core.js
16426
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/core.js
16427
16427
  /**
16428
16428
  * @typedef Vfs
16429
16429
  * @property {(path: string) => Promise<string>} readFile
@@ -16781,7 +16781,7 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
16781
16781
  path: ["repository"],
16782
16782
  type: "warning"
16783
16783
  });
16784
- } else if (typeof repository === "object" && repository.url && repository.type === "git") {
16784
+ } else if (typeof repository === "object" && repository.url && (repository.type === "git" || repository.type == null)) {
16785
16785
  if (!isGitUrl(repository.url)) messages.push({
16786
16786
  code: "INVALID_REPOSITORY_VALUE",
16787
16787
  args: { type: "invalid-git-url" },
@@ -17299,7 +17299,7 @@ var init_core = __esmMin((() => {
17299
17299
  init_utils$1();
17300
17300
  }));
17301
17301
  //#endregion
17302
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/vfs-tarball.js
17302
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/vfs-tarball.js
17303
17303
  /**
17304
17304
  * @param {import("../index.d.ts").PackFile[]} files
17305
17305
  * @return {import("./core.js").Vfs}
@@ -17523,7 +17523,7 @@ var init_detect = __esmMin((() => {
17523
17523
  init_constants();
17524
17524
  }));
17525
17525
  //#endregion
17526
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/index-node.js
17526
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/index-node.js
17527
17527
  var index_node_exports = /* @__PURE__ */ __exportAll({ publint: () => publint });
17528
17528
  /**
17529
17529
  * @typedef {T extends string ? T : never} ExtractStringLiteral
@@ -17675,7 +17675,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17675
17675
  module.exports.createColors = createColors;
17676
17676
  }));
17677
17677
  //#endregion
17678
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/message.js
17678
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/message.js
17679
17679
  /** @type {import('../utils.d.ts').formatMessage} */
17680
17680
  function formatMessage(m, pkg, opts = {}) {
17681
17681
  const h = getHighlighter(opts.color);
@@ -17844,7 +17844,7 @@ var init_message = __esmMin((() => {
17844
17844
  EMPTY_MSG = "<empty>";
17845
17845
  }));
17846
17846
  //#endregion
17847
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/utils.js
17847
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/utils.js
17848
17848
  var utils_exports = /* @__PURE__ */ __exportAll({
17849
17849
  formatMessage: () => formatMessage,
17850
17850
  formatMessagePath: () => formatMessagePath,