@vuetify/cli 1.1.4 → 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 +38 -21
- package/dist/{tar-CdTjip02.mjs → tar-CDUmqXZq.mjs} +30 -30
- package/package.json +2 -2
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
|
|
17
|
-
import
|
|
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";
|
|
@@ -9938,7 +9938,7 @@ var en_default = {
|
|
|
9938
9938
|
},
|
|
9939
9939
|
"file": {
|
|
9940
9940
|
"label": "Vue Router (File-based)",
|
|
9941
|
-
"hint": "File-based routing with
|
|
9941
|
+
"hint": "File-based routing with vue-router"
|
|
9942
9942
|
}
|
|
9943
9943
|
},
|
|
9944
9944
|
"features": {
|
|
@@ -10193,7 +10193,7 @@ var ru_default = {
|
|
|
10193
10193
|
},
|
|
10194
10194
|
"file": {
|
|
10195
10195
|
"label": "Vue Router (File-based)",
|
|
10196
|
-
"hint": "Файловый роутинг с
|
|
10196
|
+
"hint": "Файловый роутинг с vue-router"
|
|
10197
10197
|
}
|
|
10198
10198
|
},
|
|
10199
10199
|
"features": {
|
|
@@ -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
|
|
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 ||
|
|
18256
|
-
readdirSync: options.fs.readdirSync ||
|
|
18257
|
-
realpath: options.fs.realpath ||
|
|
18258
|
-
realpathSync: options.fs.realpathSync ||
|
|
18259
|
-
stat: options.fs.stat ||
|
|
18260
|
-
statSync: options.fs.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-
|
|
126773
|
+
const { extract } = await import("./tar-CDUmqXZq.mjs").then((n) => n.t);
|
|
126774
126774
|
await extract({
|
|
126775
126775
|
file: tarPath,
|
|
126776
126776
|
cwd: extractPath,
|
|
@@ -147801,9 +147801,8 @@ var dependencies = {
|
|
|
147801
147801
|
"@nuxt/eslint": "^1.12.1",
|
|
147802
147802
|
"@pinia/nuxt": "^0.11.3",
|
|
147803
147803
|
"@nuxtjs/i18n": "^10.2.1",
|
|
147804
|
-
"vue-router": "^
|
|
147804
|
+
"vue-router": "^5.0.3",
|
|
147805
147805
|
"vue-i18n": "^11.2.7",
|
|
147806
|
-
"unplugin-vue-router": "^0.19.1",
|
|
147807
147806
|
"vite-plugin-vuetify": "^2.1.3",
|
|
147808
147807
|
"unocss": "^66.5.12",
|
|
147809
147808
|
"@unocss/transformer-directives": "^66.6.0",
|
|
@@ -148104,7 +148103,7 @@ export const useAppStore = defineStore('app', {
|
|
|
148104
148103
|
|
|
148105
148104
|
//#endregion
|
|
148106
148105
|
//#region ../shared/package.json
|
|
148107
|
-
var version$1 = "1.1.
|
|
148106
|
+
var version$1 = "1.1.5-beta.2";
|
|
148108
148107
|
|
|
148109
148108
|
//#endregion
|
|
148110
148109
|
//#region ../shared/src/utils/getTemplateSource.ts
|
|
@@ -148158,6 +148157,16 @@ const router = {
|
|
|
148158
148157
|
const registerPlugins = mod.exports.registerPlugins;
|
|
148159
148158
|
if (isFunction(registerPlugins)) addStatementToFunctionBody(registerPlugins, "app.use(router)");
|
|
148160
148159
|
await writeFile(pluginsPath, mod.generate().code);
|
|
148160
|
+
if (isTypescript) {
|
|
148161
|
+
const tsConfigPath = join$1(cwd, "tsconfig.app.json");
|
|
148162
|
+
if (existsSync(tsConfigPath)) {
|
|
148163
|
+
const tsConfig = await loadFile(tsConfigPath);
|
|
148164
|
+
tsConfig.exports.vueCompilerOptions = tsConfig.exports.vueCompilerOptions || {};
|
|
148165
|
+
tsConfig.exports.vueCompilerOptions.plugins = tsConfig.exports.vueCompilerOptions.plugins || [];
|
|
148166
|
+
tsConfig.exports.vueCompilerOptions.plugins.push("vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks");
|
|
148167
|
+
await writeFile(tsConfigPath, tsConfig.generate().code);
|
|
148168
|
+
}
|
|
148169
|
+
}
|
|
148161
148170
|
}
|
|
148162
148171
|
};
|
|
148163
148172
|
const fileRouter = {
|
|
@@ -148167,8 +148176,6 @@ const fileRouter = {
|
|
|
148167
148176
|
const ext = isTypescript ? "ts" : "js";
|
|
148168
148177
|
pkg.dependencies = pkg.dependencies || {};
|
|
148169
148178
|
pkg.dependencies["vue-router"] = dependencies["vue-router"];
|
|
148170
|
-
pkg.devDependencies = pkg.devDependencies || {};
|
|
148171
|
-
pkg.devDependencies["unplugin-vue-router"] = dependencies["unplugin-vue-router"];
|
|
148172
148179
|
const routerContent = getFileRouterContent(isTypescript);
|
|
148173
148180
|
if (!existsSync(join$1(cwd, "src/router"))) mkdirSync(join$1(cwd, "src/router"), { recursive: true });
|
|
148174
148181
|
await writeFile(join$1(cwd, `src/router/index.${ext}`), routerContent);
|
|
@@ -148186,14 +148193,24 @@ const fileRouter = {
|
|
|
148186
148193
|
if (existsSync(viteConfigPath)) {
|
|
148187
148194
|
const viteMod = await loadFile(viteConfigPath);
|
|
148188
148195
|
viteMod.imports.$prepend({
|
|
148189
|
-
from: "
|
|
148196
|
+
from: "vue-router/vite",
|
|
148190
148197
|
imported: "default",
|
|
148191
148198
|
local: "VueRouter"
|
|
148192
148199
|
});
|
|
148193
148200
|
const plugins = viteMod.exports.default.plugins || viteMod.exports.default.$args?.[0]?.plugins;
|
|
148194
|
-
if (plugins && Array.isArray(plugins)) plugins.unshift(builders.raw("VueRouter()"));
|
|
148201
|
+
if (plugins && Array.isArray(plugins)) plugins.unshift(builders.raw("VueRouter({ dts: 'src/typed-router.d.ts' })"));
|
|
148195
148202
|
await writeFile(viteConfigPath, viteMod.generate().code);
|
|
148196
148203
|
}
|
|
148204
|
+
if (isTypescript) {
|
|
148205
|
+
const tsConfigPath = join$1(cwd, "tsconfig.app.json");
|
|
148206
|
+
if (existsSync(tsConfigPath)) {
|
|
148207
|
+
const tsConfig = await loadFile(tsConfigPath);
|
|
148208
|
+
tsConfig.exports.vueCompilerOptions = tsConfig.exports.vueCompilerOptions || {};
|
|
148209
|
+
tsConfig.exports.vueCompilerOptions.plugins = tsConfig.exports.vueCompilerOptions.plugins || [];
|
|
148210
|
+
tsConfig.exports.vueCompilerOptions.plugins.push("vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks");
|
|
148211
|
+
await writeFile(tsConfigPath, tsConfig.generate().code);
|
|
148212
|
+
}
|
|
148213
|
+
}
|
|
148197
148214
|
}
|
|
148198
148215
|
};
|
|
148199
148216
|
function getRouterContent(ts) {
|
|
@@ -149311,7 +149328,7 @@ async function deno(root) {
|
|
|
149311
149328
|
//#region ../shared/src/utils/cli/preinstall/yarn.ts
|
|
149312
149329
|
const templateToAppend = `
|
|
149313
149330
|
packageExtensions:
|
|
149314
|
-
|
|
149331
|
+
vue-router@*:
|
|
149315
149332
|
dependencies:
|
|
149316
149333
|
"@vue/compiler-sfc": "*"
|
|
149317
149334
|
`;
|
|
@@ -151009,7 +151026,7 @@ const JsonReporter = { report: async (data, options) => {
|
|
|
151009
151026
|
|
|
151010
151027
|
//#endregion
|
|
151011
151028
|
//#region package.json
|
|
151012
|
-
var version = "1.1.
|
|
151029
|
+
var version = "1.1.5-beta.2";
|
|
151013
151030
|
|
|
151014
151031
|
//#endregion
|
|
151015
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
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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 :
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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 =
|
|
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 =
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 &&
|
|
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](
|
|
1672
|
+
this[ONLSTAT](fs$1$1.lstatSync(this.absolute));
|
|
1673
1673
|
}
|
|
1674
1674
|
[SYMLINK$1]() {
|
|
1675
|
-
this[ONREADLINK](
|
|
1675
|
+
this[ONREADLINK](fs$1$1.readlinkSync(this.absolute));
|
|
1676
1676
|
}
|
|
1677
1677
|
[OPENFILE]() {
|
|
1678
|
-
this[ONOPENFILE](
|
|
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 =
|
|
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 &&
|
|
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,
|
|
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,
|
|
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,
|
|
2141
|
+
this[ONSTAT](e, fs$1$1[t](e.absolute));
|
|
2142
2142
|
}
|
|
2143
2143
|
[READDIR](e) {
|
|
2144
|
-
this[ONREADDIR](e,
|
|
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 } =
|
|
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.
|
|
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.
|
|
38
|
+
"@vuetify/cli-shared": "1.1.5-beta.2"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@typescript-eslint/parser": "^8.54.0"
|