@vuetify/cli 1.1.5-beta.1 → 1.1.5-beta.2

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/index.mjs CHANGED
@@ -13,8 +13,8 @@ import path, { delimiter, dirname, isAbsolute, join, normalize, resolve } from "
13
13
  import fs$1, { constants, mkdir, readFile, rm, writeFile } from "node:fs/promises";
14
14
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
15
15
  import v8 from "node:v8";
16
- import * as nativeFs$1 from "fs";
17
- import nativeFs from "fs";
16
+ import * as nativeFs from "fs";
17
+ import fs$1$1 from "fs";
18
18
  import path$1, { basename as basename$1, dirname as dirname$1, normalize as normalize$1, posix as posix$1, relative, resolve as resolve$1, sep } from "path";
19
19
  import { fileURLToPath as fileURLToPath$1 } from "url";
20
20
  import { createRequire as createRequire$1 } from "module";
@@ -16132,7 +16132,7 @@ var Walker = class {
16132
16132
  symlinks: /* @__PURE__ */ new Map(),
16133
16133
  visited: [""].slice(0, 0),
16134
16134
  controller: new Aborter(),
16135
- fs: options.fs || nativeFs$1
16135
+ fs: options.fs || nativeFs
16136
16136
  };
16137
16137
  this.joinPath = build$7(this.root, options);
16138
16138
  this.pushDirectory = build$6(this.root, options);
@@ -18252,12 +18252,12 @@ function getCrawler(patterns, inputOptions = {}) {
18252
18252
  return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
18253
18253
  },
18254
18254
  fs: options.fs ? {
18255
- readdir: options.fs.readdir || nativeFs.readdir,
18256
- readdirSync: options.fs.readdirSync || nativeFs.readdirSync,
18257
- realpath: options.fs.realpath || nativeFs.realpath,
18258
- realpathSync: options.fs.realpathSync || nativeFs.realpathSync,
18259
- stat: options.fs.stat || nativeFs.stat,
18260
- statSync: options.fs.statSync || nativeFs.statSync
18255
+ readdir: options.fs.readdir || fs$1$1.readdir,
18256
+ readdirSync: options.fs.readdirSync || fs$1$1.readdirSync,
18257
+ realpath: options.fs.realpath || fs$1$1.realpath,
18258
+ realpathSync: options.fs.realpathSync || fs$1$1.realpathSync,
18259
+ stat: options.fs.stat || fs$1$1.stat,
18260
+ statSync: options.fs.statSync || fs$1$1.statSync
18261
18261
  } : void 0,
18262
18262
  pathSeparator: "/",
18263
18263
  relativePaths: true,
@@ -126770,7 +126770,7 @@ async function downloadTemplate(input, options = {}) {
126770
126770
  await mkdir(extractPath, { recursive: true });
126771
126771
  const s = Date.now();
126772
126772
  const subdir = template.subdir?.replace(/^\//, "") || "";
126773
- const { extract } = await import("./tar-CdTjip02.mjs").then((n) => n.t);
126773
+ const { extract } = await import("./tar-CDUmqXZq.mjs").then((n) => n.t);
126774
126774
  await extract({
126775
126775
  file: tarPath,
126776
126776
  cwd: extractPath,
@@ -148103,7 +148103,7 @@ export const useAppStore = defineStore('app', {
148103
148103
 
148104
148104
  //#endregion
148105
148105
  //#region ../shared/package.json
148106
- var version$1 = "1.1.5-beta.1";
148106
+ var version$1 = "1.1.5-beta.2";
148107
148107
 
148108
148108
  //#endregion
148109
148109
  //#region ../shared/src/utils/getTemplateSource.ts
@@ -151026,7 +151026,7 @@ const JsonReporter = { report: async (data, options) => {
151026
151026
 
151027
151027
  //#endregion
151028
151028
  //#region package.json
151029
- var version = "1.1.5-beta.1";
151029
+ var version = "1.1.5-beta.2";
151030
151030
 
151031
151031
  //#endregion
151032
151032
  //#region src/commands/analyze.ts
@@ -4,7 +4,7 @@ import e from "node:assert";
4
4
  import fs from "node:fs";
5
5
  import path, { basename, join, posix, win32 } from "node:path";
6
6
  import fs$1 from "node:fs/promises";
7
- import nativeFs from "fs";
7
+ import fs$1$1 from "fs";
8
8
  import path$1, { dirname as dirname$1, parse } from "path";
9
9
  import assert from "assert";
10
10
  import EE, { EventEmitter } from "events";
@@ -341,7 +341,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER$1].length);
341
341
  return isStream;
342
342
  }
343
343
  };
344
- const writev = nativeFs.writev, _autoClose = Symbol(`_autoClose`), _close = Symbol(`_close`), _ended = Symbol(`_ended`), _fd = Symbol(`_fd`), _finished = Symbol(`_finished`), _flags = Symbol(`_flags`), _flush = Symbol(`_flush`), _handleChunk = Symbol(`_handleChunk`), _makeBuf = Symbol(`_makeBuf`), _mode = Symbol(`_mode`), _needDrain = Symbol(`_needDrain`), _onerror = Symbol(`_onerror`), _onopen = Symbol(`_onopen`), _onread = Symbol(`_onread`), _onwrite = Symbol(`_onwrite`), _open = Symbol(`_open`), _path = Symbol(`_path`), _pos = Symbol(`_pos`), _queue = Symbol(`_queue`), _read = Symbol(`_read`), _readSize = Symbol(`_readSize`), _reading = Symbol(`_reading`), _remain = Symbol(`_remain`), _size = Symbol(`_size`), _write = Symbol(`_write`), _writing = Symbol(`_writing`), _defaultFlag = Symbol(`_defaultFlag`), _errored = Symbol(`_errored`);
344
+ const writev = fs$1$1.writev, _autoClose = Symbol(`_autoClose`), _close = Symbol(`_close`), _ended = Symbol(`_ended`), _fd = Symbol(`_fd`), _finished = Symbol(`_finished`), _flags = Symbol(`_flags`), _flush = Symbol(`_flush`), _handleChunk = Symbol(`_handleChunk`), _makeBuf = Symbol(`_makeBuf`), _mode = Symbol(`_mode`), _needDrain = Symbol(`_needDrain`), _onerror = Symbol(`_onerror`), _onopen = Symbol(`_onopen`), _onread = Symbol(`_onread`), _onwrite = Symbol(`_onwrite`), _open = Symbol(`_open`), _path = Symbol(`_path`), _pos = Symbol(`_pos`), _queue = Symbol(`_queue`), _read = Symbol(`_read`), _readSize = Symbol(`_readSize`), _reading = Symbol(`_reading`), _remain = Symbol(`_remain`), _size = Symbol(`_size`), _write = Symbol(`_write`), _writing = Symbol(`_writing`), _defaultFlag = Symbol(`_defaultFlag`), _errored = Symbol(`_errored`);
345
345
  var ReadStream = class extends Minipass {
346
346
  [_errored] = !1;
347
347
  [_fd];
@@ -368,7 +368,7 @@ var ReadStream = class extends Minipass {
368
368
  throw TypeError(`this is a readable stream`);
369
369
  }
370
370
  [_open]() {
371
- nativeFs.open(this[_path], `r`, (e, t) => this[_onopen](e, t));
371
+ fs$1$1.open(this[_path], `r`, (e, t) => this[_onopen](e, t));
372
372
  }
373
373
  [_onopen](e, t) {
374
374
  e ? this[_onerror](e) : (this[_fd] = t, this.emit(`open`, t), this[_read]());
@@ -381,7 +381,7 @@ var ReadStream = class extends Minipass {
381
381
  this[_reading] = !0;
382
382
  let e = this[_makeBuf]();
383
383
  if (e.length === 0) return process.nextTick(() => this[_onread](null, 0, e));
384
- nativeFs.read(this[_fd], e, 0, e.length, null, (e, t, n) => this[_onread](e, t, n));
384
+ fs$1$1.read(this[_fd], e, 0, e.length, null, (e, t, n) => this[_onread](e, t, n));
385
385
  }
386
386
  }
387
387
  [_onread](e, t, n) {
@@ -390,7 +390,7 @@ var ReadStream = class extends Minipass {
390
390
  [_close]() {
391
391
  if (this[_autoClose] && typeof this[_fd] == `number`) {
392
392
  let e = this[_fd];
393
- this[_fd] = void 0, nativeFs.close(e, (e) => e ? this.emit(`error`, e) : this.emit(`close`));
393
+ this[_fd] = void 0, fs$1$1.close(e, (e) => e ? this.emit(`error`, e) : this.emit(`close`));
394
394
  }
395
395
  }
396
396
  [_onerror](e) {
@@ -413,7 +413,7 @@ var ReadStream = class extends Minipass {
413
413
  [_open]() {
414
414
  let e = !0;
415
415
  try {
416
- this[_onopen](null, nativeFs.openSync(this[_path], `r`)), e = !1;
416
+ this[_onopen](null, fs$1$1.openSync(this[_path], `r`)), e = !1;
417
417
  } finally {
418
418
  e && this[_close]();
419
419
  }
@@ -424,7 +424,7 @@ var ReadStream = class extends Minipass {
424
424
  if (!this[_reading]) {
425
425
  this[_reading] = !0;
426
426
  do {
427
- let e = this[_makeBuf](), t = e.length === 0 ? 0 : nativeFs.readSync(this[_fd], e, 0, e.length, null);
427
+ let e = this[_makeBuf](), t = e.length === 0 ? 0 : fs$1$1.readSync(this[_fd], e, 0, e.length, null);
428
428
  if (!this[_handleChunk](t, e)) break;
429
429
  } while (!0);
430
430
  this[_reading] = !1;
@@ -437,7 +437,7 @@ var ReadStream = class extends Minipass {
437
437
  [_close]() {
438
438
  if (this[_autoClose] && typeof this[_fd] == `number`) {
439
439
  let e = this[_fd];
440
- this[_fd] = void 0, nativeFs.closeSync(e), this.emit(`close`);
440
+ this[_fd] = void 0, fs$1$1.closeSync(e), this.emit(`close`);
441
441
  }
442
442
  }
443
443
  }, WriteStream = class extends EE {
@@ -478,7 +478,7 @@ var ReadStream = class extends Minipass {
478
478
  this[_close](), this[_writing] = !0, this.emit(`error`, e);
479
479
  }
480
480
  [_open]() {
481
- nativeFs.open(this[_path], this[_flags], this[_mode], (e, t) => this[_onopen](e, t));
481
+ fs$1$1.open(this[_path], this[_flags], this[_mode], (e, t) => this[_onopen](e, t));
482
482
  }
483
483
  [_onopen](e, t) {
484
484
  this[_defaultFlag] && this[_flags] === `r+` && e && e.code === `ENOENT` ? (this[_flags] = `w`, this[_open]()) : e ? this[_onerror](e) : (this[_fd] = t, this.emit(`open`, t), this[_writing] || this[_flush]());
@@ -490,7 +490,7 @@ var ReadStream = class extends Minipass {
490
490
  return typeof e == `string` && (e = Buffer.from(e, t)), this[_ended] ? (this.emit(`error`, Error(`write() after end()`)), !1) : this[_fd] === void 0 || this[_writing] || this[_queue].length ? (this[_queue].push(e), this[_needDrain] = !0, !1) : (this[_writing] = !0, this[_write](e), !0);
491
491
  }
492
492
  [_write](e) {
493
- nativeFs.write(this[_fd], e, 0, e.length, this[_pos], (e, t) => this[_onwrite](e, t));
493
+ fs$1$1.write(this[_fd], e, 0, e.length, this[_pos], (e, t) => this[_onwrite](e, t));
494
494
  }
495
495
  [_onwrite](e, t) {
496
496
  e ? this[_onerror](e) : (this[_pos] !== void 0 && typeof t == `number` && (this[_pos] += t), this[_queue].length ? this[_flush]() : (this[_writing] = !1, this[_ended] && !this[_finished] ? (this[_finished] = !0, this[_close](), this.emit(`finish`)) : this[_needDrain] && (this[_needDrain] = !1, this.emit(`drain`))));
@@ -506,31 +506,31 @@ var ReadStream = class extends Minipass {
506
506
  [_close]() {
507
507
  if (this[_autoClose] && typeof this[_fd] == `number`) {
508
508
  let e = this[_fd];
509
- this[_fd] = void 0, nativeFs.close(e, (e) => e ? this.emit(`error`, e) : this.emit(`close`));
509
+ this[_fd] = void 0, fs$1$1.close(e, (e) => e ? this.emit(`error`, e) : this.emit(`close`));
510
510
  }
511
511
  }
512
512
  }, WriteStreamSync = class extends WriteStream {
513
513
  [_open]() {
514
514
  let e;
515
515
  if (this[_defaultFlag] && this[_flags] === `r+`) try {
516
- e = nativeFs.openSync(this[_path], this[_flags], this[_mode]);
516
+ e = fs$1$1.openSync(this[_path], this[_flags], this[_mode]);
517
517
  } catch (e) {
518
518
  if (e?.code === `ENOENT`) return this[_flags] = `w`, this[_open]();
519
519
  throw e;
520
520
  }
521
- else e = nativeFs.openSync(this[_path], this[_flags], this[_mode]);
521
+ else e = fs$1$1.openSync(this[_path], this[_flags], this[_mode]);
522
522
  this[_onopen](null, e);
523
523
  }
524
524
  [_close]() {
525
525
  if (this[_autoClose] && typeof this[_fd] == `number`) {
526
526
  let e = this[_fd];
527
- this[_fd] = void 0, nativeFs.closeSync(e), this.emit(`close`);
527
+ this[_fd] = void 0, fs$1$1.closeSync(e), this.emit(`close`);
528
528
  }
529
529
  }
530
530
  [_write](e) {
531
531
  let t = !0;
532
532
  try {
533
- this[_onwrite](null, nativeFs.writeSync(this[_fd], e, 0, e.length, this[_pos])), t = !1;
533
+ this[_onwrite](null, fs$1$1.writeSync(this[_fd], e, 0, e.length, this[_pos])), t = !1;
534
534
  } finally {
535
535
  if (t) try {
536
536
  this[_close]();
@@ -1524,7 +1524,7 @@ var WriteEntry = class extends Minipass {
1524
1524
  return e === `error` && (this.#hadError = !0), super.emit(e, ...t);
1525
1525
  }
1526
1526
  [LSTAT]() {
1527
- nativeFs.lstat(this.absolute, (e, t) => {
1527
+ fs$1$1.lstat(this.absolute, (e, t) => {
1528
1528
  if (e) return this.emit(`error`, e);
1529
1529
  this[ONLSTAT](t);
1530
1530
  });
@@ -1583,7 +1583,7 @@ var WriteEntry = class extends Minipass {
1583
1583
  this.path.slice(-1) !== `/` && (this.path += `/`), this.stat.size = 0, this[HEADER](), this.end();
1584
1584
  }
1585
1585
  [SYMLINK$1]() {
1586
- nativeFs.readlink(this.absolute, (e, t) => {
1586
+ fs$1$1.readlink(this.absolute, (e, t) => {
1587
1587
  if (e) return this.emit(`error`, e);
1588
1588
  this[ONREADLINK](t);
1589
1589
  });
@@ -1606,7 +1606,7 @@ var WriteEntry = class extends Minipass {
1606
1606
  this[OPENFILE]();
1607
1607
  }
1608
1608
  [OPENFILE]() {
1609
- nativeFs.open(this.absolute, `r`, (e, t) => {
1609
+ fs$1$1.open(this.absolute, `r`, (e, t) => {
1610
1610
  if (e) return this.emit(`error`, e);
1611
1611
  this[ONOPENFILE](t);
1612
1612
  });
@@ -1621,13 +1621,13 @@ var WriteEntry = class extends Minipass {
1621
1621
  [READ]() {
1622
1622
  let { fd: e, buf: t, offset: n, length: r, pos: i } = this;
1623
1623
  if (e === void 0 || t === void 0) throw Error(`cannot read file without first opening`);
1624
- nativeFs.read(e, t, n, r, i, (e, t) => {
1624
+ fs$1$1.read(e, t, n, r, i, (e, t) => {
1625
1625
  if (e) return this[CLOSE](() => this.emit(`error`, e));
1626
1626
  this[ONREAD](t);
1627
1627
  });
1628
1628
  }
1629
1629
  [CLOSE](e = () => {}) {
1630
- this.fd !== void 0 && nativeFs.close(this.fd, e);
1630
+ this.fd !== void 0 && fs$1$1.close(this.fd, e);
1631
1631
  }
1632
1632
  [ONREAD](e) {
1633
1633
  if (e <= 0 && this.remain > 0) {
@@ -1669,20 +1669,20 @@ var WriteEntry = class extends Minipass {
1669
1669
  }, WriteEntrySync = class extends WriteEntry {
1670
1670
  sync = !0;
1671
1671
  [LSTAT]() {
1672
- this[ONLSTAT](nativeFs.lstatSync(this.absolute));
1672
+ this[ONLSTAT](fs$1$1.lstatSync(this.absolute));
1673
1673
  }
1674
1674
  [SYMLINK$1]() {
1675
- this[ONREADLINK](nativeFs.readlinkSync(this.absolute));
1675
+ this[ONREADLINK](fs$1$1.readlinkSync(this.absolute));
1676
1676
  }
1677
1677
  [OPENFILE]() {
1678
- this[ONOPENFILE](nativeFs.openSync(this.absolute, `r`));
1678
+ this[ONOPENFILE](fs$1$1.openSync(this.absolute, `r`));
1679
1679
  }
1680
1680
  [READ]() {
1681
1681
  let e = !0;
1682
1682
  try {
1683
1683
  let { fd: t, buf: n, offset: r, length: i, pos: a } = this;
1684
1684
  if (t === void 0 || n === void 0) throw Error(`fd and buf must be set in READ method`);
1685
- let o = nativeFs.readSync(t, n, r, i, a);
1685
+ let o = fs$1$1.readSync(t, n, r, i, a);
1686
1686
  this[ONREAD](o), e = !1;
1687
1687
  } finally {
1688
1688
  if (e) try {
@@ -1694,7 +1694,7 @@ var WriteEntry = class extends Minipass {
1694
1694
  e();
1695
1695
  }
1696
1696
  [CLOSE](e = () => {}) {
1697
- this.fd !== void 0 && nativeFs.closeSync(this.fd), e();
1697
+ this.fd !== void 0 && fs$1$1.closeSync(this.fd), e();
1698
1698
  }
1699
1699
  }, WriteEntryTar = class extends Minipass {
1700
1700
  blockLen = 0;
@@ -2026,7 +2026,7 @@ var Pack = class extends Minipass {
2026
2026
  this[QUEUE].push(new PackJob(e, t)), this[PROCESS]();
2027
2027
  }
2028
2028
  [STAT](e) {
2029
- e.pending = !0, this[JOBS] += 1, nativeFs[this.follow ? `stat` : `lstat`](e.absolute, (t, n) => {
2029
+ e.pending = !0, this[JOBS] += 1, fs$1$1[this.follow ? `stat` : `lstat`](e.absolute, (t, n) => {
2030
2030
  e.pending = !1, --this[JOBS], t ? this.emit(`error`, t) : this[ONSTAT](e, n);
2031
2031
  });
2032
2032
  }
@@ -2034,7 +2034,7 @@ var Pack = class extends Minipass {
2034
2034
  this.statCache.set(e.absolute, t), e.stat = t, this.filter(e.path, t) ? t.isFile() && t.nlink > 1 && e === this[CURRENT] && !this.linkCache.get(`${t.dev}:${t.ino}`) && !this.sync && this[PROCESSJOB](e) : e.ignore = !0, this[PROCESS]();
2035
2035
  }
2036
2036
  [READDIR](e) {
2037
- e.pending = !0, this[JOBS] += 1, nativeFs.readdir(e.absolute, (t, n) => {
2037
+ e.pending = !0, this[JOBS] += 1, fs$1$1.readdir(e.absolute, (t, n) => {
2038
2038
  if (e.pending = !1, --this[JOBS], t) return this.emit(`error`, t);
2039
2039
  this[ONREADDIR](e, n);
2040
2040
  });
@@ -2138,10 +2138,10 @@ var Pack = class extends Minipass {
2138
2138
  resume() {}
2139
2139
  [STAT](e) {
2140
2140
  let t = this.follow ? `statSync` : `lstatSync`;
2141
- this[ONSTAT](e, nativeFs[t](e.absolute));
2141
+ this[ONSTAT](e, fs$1$1[t](e.absolute));
2142
2142
  }
2143
2143
  [READDIR](e) {
2144
- this[ONREADDIR](e, nativeFs.readdirSync(e.absolute));
2144
+ this[ONREADDIR](e, fs$1$1.readdirSync(e.absolute));
2145
2145
  }
2146
2146
  [PIPE](e) {
2147
2147
  let t = e.entry, n = this.zip;
@@ -2197,7 +2197,7 @@ makeCommand(createFileSync, createFile, (e, t) => {
2197
2197
  }, (e, t) => {
2198
2198
  if (!t?.length) throw TypeError(`no paths specified to add to archive`);
2199
2199
  });
2200
- const isWindows$2 = (process.env.__FAKE_PLATFORM__ || process.platform) === `win32`, { O_CREAT, O_TRUNC, O_WRONLY } = nativeFs.constants, UV_FS_O_FILEMAP = Number(process.env.__FAKE_FS_O_FILENAME__) || nativeFs.constants.UV_FS_O_FILEMAP || 0, fMapEnabled = isWindows$2 && !!UV_FS_O_FILEMAP, fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY, getWriteFlag = fMapEnabled ? (e) => e < 524288 ? fMapFlag : `w` : () => `w`;
2200
+ const isWindows$2 = (process.env.__FAKE_PLATFORM__ || process.platform) === `win32`, { O_CREAT, O_TRUNC, O_WRONLY } = fs$1$1.constants, UV_FS_O_FILEMAP = Number(process.env.__FAKE_FS_O_FILENAME__) || fs$1$1.constants.UV_FS_O_FILEMAP || 0, fMapEnabled = isWindows$2 && !!UV_FS_O_FILEMAP, fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY, getWriteFlag = fMapEnabled ? (e) => e < 524288 ? fMapFlag : `w` : () => `w`;
2201
2201
  var CwdError = class extends Error {
2202
2202
  path;
2203
2203
  code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/cli",
3
- "version": "1.1.5-beta.1",
3
+ "version": "1.1.5-beta.2",
4
4
  "description": "Vuetify CLI",
5
5
  "type": "module",
6
6
  "files": [
@@ -35,7 +35,7 @@
35
35
  "open": "^11.0.0",
36
36
  "pathe": "^2.0.3",
37
37
  "tsdown": "^0.20.3",
38
- "@vuetify/cli-shared": "1.1.5-beta.1"
38
+ "@vuetify/cli-shared": "1.1.5-beta.2"
39
39
  },
40
40
  "dependencies": {
41
41
  "@typescript-eslint/parser": "^8.54.0"