@tanstack/router-vite-plugin 1.2.2 → 1.2.4

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 (91) hide show
  1. package/build/cjs/node_modules/.pnpm/prettier@3.0.2/node_modules/prettier/index.js +14 -14
  2. package/build/cjs/node_modules/.pnpm/prettier@3.0.2/node_modules/prettier/index.js.map +1 -1
  3. package/build/cjs/packages/router-cli/src/generator.js +29 -8
  4. package/build/cjs/packages/router-cli/src/generator.js.map +1 -1
  5. package/build/esm/index.js +13 -10
  6. package/build/esm/index.js.map +1 -1
  7. package/package.json +3 -3
  8. package/build/cjs/_virtual/_commonjsHelpers.js +0 -16
  9. package/build/cjs/_virtual/_commonjsHelpers.js.map +0 -1
  10. package/build/cjs/_virtual/index.js +0 -16
  11. package/build/cjs/_virtual/index.js.map +0 -1
  12. package/build/cjs/_virtual/make-dir.js +0 -16
  13. package/build/cjs/_virtual/make-dir.js.map +0 -1
  14. package/build/cjs/_virtual/utils.js +0 -16
  15. package/build/cjs/_virtual/utils.js.map +0 -1
  16. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy-sync.js +0 -188
  17. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy-sync.js.map +0 -1
  18. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy.js +0 -255
  19. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy.js.map +0 -1
  20. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/index.js +0 -24
  21. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/index.js.map +0 -1
  22. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/empty/index.js +0 -59
  23. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/empty/index.js.map +0 -1
  24. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/file.js +0 -87
  25. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/file.js.map +0 -1
  26. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/index.js +0 -40
  27. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/index.js.map +0 -1
  28. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/link.js +0 -84
  29. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/link.js.map +0 -1
  30. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -116
  31. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js.map +0 -1
  32. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -46
  33. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js.map +0 -1
  34. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink.js +0 -105
  35. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink.js.map +0 -1
  36. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/fs/index.js +0 -146
  37. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/fs/index.js.map +0 -1
  38. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/index.js +0 -41
  39. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/index.js.map +0 -1
  40. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/index.js +0 -34
  41. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/index.js.map +0 -1
  42. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/jsonfile.js +0 -26
  43. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/jsonfile.js.map +0 -1
  44. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json-sync.js +0 -28
  45. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json-sync.js.map +0 -1
  46. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json.js +0 -28
  47. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json.js.map +0 -1
  48. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/index.js +0 -32
  49. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/index.js.map +0 -1
  50. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -49
  51. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js.map +0 -1
  52. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/utils.js +0 -35
  53. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/utils.js.map +0 -1
  54. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/index.js +0 -24
  55. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/index.js.map +0 -1
  56. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move-sync.js +0 -74
  57. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move-sync.js.map +0 -1
  58. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move.js +0 -96
  59. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move.js.map +0 -1
  60. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/output-file/index.js +0 -59
  61. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/output-file/index.js.map +0 -1
  62. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/path-exists/index.js +0 -30
  63. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/path-exists/index.js.map +0 -1
  64. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/remove/index.js +0 -39
  65. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/remove/index.js.map +0 -1
  66. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/remove/rimraf.js +0 -319
  67. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/remove/rimraf.js.map +0 -1
  68. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/stat.js +0 -172
  69. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/stat.js.map +0 -1
  70. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/utimes.js +0 -41
  71. package/build/cjs/node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/utimes.js.map +0 -1
  72. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js +0 -36
  73. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js.map +0 -1
  74. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js +0 -469
  75. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js.map +0 -1
  76. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js +0 -135
  77. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js.map +0 -1
  78. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js +0 -372
  79. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js.map +0 -1
  80. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js +0 -45
  81. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js.map +0 -1
  82. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js +0 -479
  83. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js.map +0 -1
  84. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js +0 -143
  85. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js.map +0 -1
  86. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js +0 -380
  87. package/build/cjs/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js.map +0 -1
  88. package/build/cjs/node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js +0 -108
  89. package/build/cjs/node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js.map +0 -1
  90. package/build/cjs/node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js +0 -29
  91. package/build/cjs/node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js.map +0 -1
@@ -1,146 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var index = require('../../../../../../../_virtual/index.js');
14
- var require$$0 = require('universalify');
15
- var gracefulFs = require('../../../../../graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js');
16
-
17
- (function (exports) {
18
- // This is adapted from https://github.com/normalize/mz
19
- // Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
20
- const u = require$$0.fromCallback;
21
- const fs = gracefulFs.gracefulFs;
22
-
23
- const api = [
24
- 'access',
25
- 'appendFile',
26
- 'chmod',
27
- 'chown',
28
- 'close',
29
- 'copyFile',
30
- 'fchmod',
31
- 'fchown',
32
- 'fdatasync',
33
- 'fstat',
34
- 'fsync',
35
- 'ftruncate',
36
- 'futimes',
37
- 'lchmod',
38
- 'lchown',
39
- 'link',
40
- 'lstat',
41
- 'mkdir',
42
- 'mkdtemp',
43
- 'open',
44
- 'opendir',
45
- 'readdir',
46
- 'readFile',
47
- 'readlink',
48
- 'realpath',
49
- 'rename',
50
- 'rm',
51
- 'rmdir',
52
- 'stat',
53
- 'symlink',
54
- 'truncate',
55
- 'unlink',
56
- 'utimes',
57
- 'writeFile'
58
- ].filter(key => {
59
- // Some commands are not available on some systems. Ex:
60
- // fs.opendir was added in Node.js v12.12.0
61
- // fs.rm was added in Node.js v14.14.0
62
- // fs.lchown is not available on at least some Linux
63
- return typeof fs[key] === 'function'
64
- });
65
-
66
- // Export cloned fs:
67
- Object.assign(exports, fs);
68
-
69
- // Universalify async methods:
70
- api.forEach(method => {
71
- exports[method] = u(fs[method]);
72
- });
73
-
74
- // We differ from mz/fs in that we still ship the old, broken, fs.exists()
75
- // since we are a drop-in replacement for the native module
76
- exports.exists = function (filename, callback) {
77
- if (typeof callback === 'function') {
78
- return fs.exists(filename, callback)
79
- }
80
- return new Promise(resolve => {
81
- return fs.exists(filename, resolve)
82
- })
83
- };
84
-
85
- // fs.read(), fs.write(), & fs.writev() need special treatment due to multiple callback args
86
-
87
- exports.read = function (fd, buffer, offset, length, position, callback) {
88
- if (typeof callback === 'function') {
89
- return fs.read(fd, buffer, offset, length, position, callback)
90
- }
91
- return new Promise((resolve, reject) => {
92
- fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => {
93
- if (err) return reject(err)
94
- resolve({ bytesRead, buffer });
95
- });
96
- })
97
- };
98
-
99
- // Function signature can be
100
- // fs.write(fd, buffer[, offset[, length[, position]]], callback)
101
- // OR
102
- // fs.write(fd, string[, position[, encoding]], callback)
103
- // We need to handle both cases, so we use ...args
104
- exports.write = function (fd, buffer, ...args) {
105
- if (typeof args[args.length - 1] === 'function') {
106
- return fs.write(fd, buffer, ...args)
107
- }
108
-
109
- return new Promise((resolve, reject) => {
110
- fs.write(fd, buffer, ...args, (err, bytesWritten, buffer) => {
111
- if (err) return reject(err)
112
- resolve({ bytesWritten, buffer });
113
- });
114
- })
115
- };
116
-
117
- // fs.writev only available in Node v12.9.0+
118
- if (typeof fs.writev === 'function') {
119
- // Function signature is
120
- // s.writev(fd, buffers[, position], callback)
121
- // We need to handle the optional arg, so we use ...args
122
- exports.writev = function (fd, buffers, ...args) {
123
- if (typeof args[args.length - 1] === 'function') {
124
- return fs.writev(fd, buffers, ...args)
125
- }
126
-
127
- return new Promise((resolve, reject) => {
128
- fs.writev(fd, buffers, ...args, (err, bytesWritten, buffers) => {
129
- if (err) return reject(err)
130
- resolve({ bytesWritten, buffers });
131
- });
132
- })
133
- };
134
- }
135
-
136
- // fs.realpath.native sometimes not available if fs is monkey-patched
137
- if (typeof fs.realpath.native === 'function') {
138
- exports.realpath.native = u(fs.realpath.native);
139
- } else {
140
- process.emitWarning(
141
- 'fs.realpath.native is not a function. Is fs being monkey-patched?',
142
- 'Warning', 'fs-extra-WARN0003'
143
- );
144
- }
145
- } (index.__exports));
146
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/fs/index.js"],"sourcesContent":["'use strict'\n// This is adapted from https://github.com/normalize/mz\n// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors\nconst u = require('universalify').fromCallback\nconst fs = require('graceful-fs')\n\nconst api = [\n 'access',\n 'appendFile',\n 'chmod',\n 'chown',\n 'close',\n 'copyFile',\n 'fchmod',\n 'fchown',\n 'fdatasync',\n 'fstat',\n 'fsync',\n 'ftruncate',\n 'futimes',\n 'lchmod',\n 'lchown',\n 'link',\n 'lstat',\n 'mkdir',\n 'mkdtemp',\n 'open',\n 'opendir',\n 'readdir',\n 'readFile',\n 'readlink',\n 'realpath',\n 'rename',\n 'rm',\n 'rmdir',\n 'stat',\n 'symlink',\n 'truncate',\n 'unlink',\n 'utimes',\n 'writeFile'\n].filter(key => {\n // Some commands are not available on some systems. Ex:\n // fs.opendir was added in Node.js v12.12.0\n // fs.rm was added in Node.js v14.14.0\n // fs.lchown is not available on at least some Linux\n return typeof fs[key] === 'function'\n})\n\n// Export cloned fs:\nObject.assign(exports, fs)\n\n// Universalify async methods:\napi.forEach(method => {\n exports[method] = u(fs[method])\n})\n\n// We differ from mz/fs in that we still ship the old, broken, fs.exists()\n// since we are a drop-in replacement for the native module\nexports.exists = function (filename, callback) {\n if (typeof callback === 'function') {\n return fs.exists(filename, callback)\n }\n return new Promise(resolve => {\n return fs.exists(filename, resolve)\n })\n}\n\n// fs.read(), fs.write(), & fs.writev() need special treatment due to multiple callback args\n\nexports.read = function (fd, buffer, offset, length, position, callback) {\n if (typeof callback === 'function') {\n return fs.read(fd, buffer, offset, length, position, callback)\n }\n return new Promise((resolve, reject) => {\n fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => {\n if (err) return reject(err)\n resolve({ bytesRead, buffer })\n })\n })\n}\n\n// Function signature can be\n// fs.write(fd, buffer[, offset[, length[, position]]], callback)\n// OR\n// fs.write(fd, string[, position[, encoding]], callback)\n// We need to handle both cases, so we use ...args\nexports.write = function (fd, buffer, ...args) {\n if (typeof args[args.length - 1] === 'function') {\n return fs.write(fd, buffer, ...args)\n }\n\n return new Promise((resolve, reject) => {\n fs.write(fd, buffer, ...args, (err, bytesWritten, buffer) => {\n if (err) return reject(err)\n resolve({ bytesWritten, buffer })\n })\n })\n}\n\n// fs.writev only available in Node v12.9.0+\nif (typeof fs.writev === 'function') {\n // Function signature is\n // s.writev(fd, buffers[, position], callback)\n // We need to handle the optional arg, so we use ...args\n exports.writev = function (fd, buffers, ...args) {\n if (typeof args[args.length - 1] === 'function') {\n return fs.writev(fd, buffers, ...args)\n }\n\n return new Promise((resolve, reject) => {\n fs.writev(fd, buffers, ...args, (err, bytesWritten, buffers) => {\n if (err) return reject(err)\n resolve({ bytesWritten, buffers })\n })\n })\n }\n}\n\n// fs.realpath.native sometimes not available if fs is monkey-patched\nif (typeof fs.realpath.native === 'function') {\n exports.realpath.native = u(fs.realpath.native)\n} else {\n process.emitWarning(\n 'fs.realpath.native is not a function. Is fs being monkey-patched?',\n 'Warning', 'fs-extra-WARN0003'\n )\n}\n"],"names":["require$$1"],"mappings":";;;;;;;;;;;;;;;;;AACA;AACA;AACA,CAAA,MAAM,CAAC,GAAG,UAAuB,CAAC,aAAY;CAC9C,MAAM,EAAE,GAAGA,sBAAsB;AACjC;AACA,CAAA,MAAM,GAAG,GAAG;AACZ,GAAE,QAAQ;AACV,GAAE,YAAY;AACd,GAAE,OAAO;AACT,GAAE,OAAO;AACT,GAAE,OAAO;AACT,GAAE,UAAU;AACZ,GA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H;AACD;AACA;AACA,CAAA,IAAI,OAAO,EAAE,CAAC,MAAM,KAAK,UAAU,EAAE;AACrC;AACA;AACA;GACE,OAAA,CAAA,MAAA,GAAiB,UAAU,EAAE,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE;AACnD,KAAI,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,UAAU,EAAE;OAC/C,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;MACvC;AACL;KACI,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AAC5C,OAAM,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,OAAO,KAAK;AACtE,SAAQ,IAAI,GAAG,EAAE,OAAO,MAAM,CAAC,GAAG,CAAC;AACnC,SAAQ,OAAO,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,EAAC;AAC1C,QAAO,EAAC;AACR,MAAK,CAAC;KACH;EACF;AACD;AACA;CACA,IAAI,OAAO,EAAE,CAAC,QAAQ,CAAC,MAAM,KAAK,UAAU,EAAE;AAC9C,GAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAC;AACjD,EAAC,MAAM;GACL,OAAO,CAAC,WAAW;AACrB,KAAI,mEAAmE;KACnE,SAAS,EAAE,mBAAmB;KAC/B;AACH,EAAA;;;","x_google_ignoreList":[0]}
@@ -1,41 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- require('./fs/index.js');
14
- var index$1 = require('./copy/index.js');
15
- var index$2 = require('./empty/index.js');
16
- var index$3 = require('./ensure/index.js');
17
- var index$4 = require('./json/index.js');
18
- var index$5 = require('./mkdirs/index.js');
19
- var index$6 = require('./move/index.js');
20
- var index$7 = require('./output-file/index.js');
21
- var index$8 = require('./path-exists/index.js');
22
- var index$9 = require('./remove/index.js');
23
- var index = require('../../../../../../_virtual/index.js');
24
-
25
- var lib = {
26
- // Export promiseified graceful-fs:
27
- ...index.__exports,
28
- // Export extra methods:
29
- ...index$1.copy,
30
- ...index$2.empty,
31
- ...index$3.ensure,
32
- ...index$4.json,
33
- ...index$5.mkdirs,
34
- ...index$6.move,
35
- ...index$7.outputFile_1,
36
- ...index$8.pathExists_1,
37
- ...index$9.remove_1
38
- };
39
-
40
- exports.lib = lib;
41
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/index.js"],"sourcesContent":["'use strict'\n\nmodule.exports = {\n // Export promiseified graceful-fs:\n ...require('./fs'),\n // Export extra methods:\n ...require('./copy'),\n ...require('./empty'),\n ...require('./ensure'),\n ...require('./json'),\n ...require('./mkdirs'),\n ...require('./move'),\n ...require('./output-file'),\n ...require('./path-exists'),\n ...require('./remove')\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAA,GAAc,GAAG;AACjB;AACA,EAAE,GAAGA,eAAe;AACpB;AACA,EAAE,GAAGC,YAAiB;AACtB,EAAE,GAAGC,aAAkB;AACvB,EAAE,GAAGC,cAAmB;AACxB,EAAE,GAAGC,YAAiB;AACtB,EAAE,GAAGC,cAAmB;AACxB,EAAE,GAAGC,YAAiB;AACtB,EAAE,GAAGC,oBAAwB;AAC7B,EAAE,GAAGC,oBAAwB;AAC7B,EAAE,GAAGC,gBAAmB;AACxB;;;;","x_google_ignoreList":[0]}
@@ -1,34 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var require$$0 = require('universalify');
14
- var jsonfile = require('./jsonfile.js');
15
- var outputJson = require('./output-json.js');
16
- var outputJsonSync = require('./output-json-sync.js');
17
-
18
- const u = require$$0.fromPromise;
19
- const jsonFile = jsonfile.jsonfile;
20
-
21
- jsonFile.outputJson = u(outputJson.outputJson_1);
22
- jsonFile.outputJsonSync = outputJsonSync.outputJsonSync_1;
23
- // aliases
24
- jsonFile.outputJSON = jsonFile.outputJson;
25
- jsonFile.outputJSONSync = jsonFile.outputJsonSync;
26
- jsonFile.writeJSON = jsonFile.writeJson;
27
- jsonFile.writeJSONSync = jsonFile.writeJsonSync;
28
- jsonFile.readJSON = jsonFile.readJson;
29
- jsonFile.readJSONSync = jsonFile.readJsonSync;
30
-
31
- var json = jsonFile;
32
-
33
- exports.json = json;
34
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/index.js"],"sourcesContent":["'use strict'\n\nconst u = require('universalify').fromPromise\nconst jsonFile = require('./jsonfile')\n\njsonFile.outputJson = u(require('./output-json'))\njsonFile.outputJsonSync = require('./output-json-sync')\n// aliases\njsonFile.outputJSON = jsonFile.outputJson\njsonFile.outputJSONSync = jsonFile.outputJsonSync\njsonFile.writeJSON = jsonFile.writeJson\njsonFile.writeJSONSync = jsonFile.writeJsonSync\njsonFile.readJSON = jsonFile.readJson\njsonFile.readJSONSync = jsonFile.readJsonSync\n\nmodule.exports = jsonFile\n"],"names":["require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;;;;;;AAEA,MAAM,CAAC,GAAG,UAAuB,CAAC,YAAW;AAC7C,MAAM,QAAQ,GAAGA,kBAAqB;AACtC;AACA,QAAQ,CAAC,UAAU,GAAG,CAAC,CAACC,uBAAwB,EAAC;AACjD,QAAQ,CAAC,cAAc,GAAGC,gCAA6B;AACvD;AACA,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAU;AACzC,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,eAAc;AACjD,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,UAAS;AACvC,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,cAAa;AAC/C,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC,SAAQ;AACrC,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,aAAY;AAC7C;AACA,IAAA,IAAc,GAAG;;;;","x_google_ignoreList":[0]}
@@ -1,26 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var index = require('../../../../../jsonfile@6.1.0/node_modules/jsonfile/index.js');
14
-
15
- const jsonFile = index.jsonfile_1;
16
-
17
- var jsonfile = {
18
- // jsonfile exports
19
- readJson: jsonFile.readFile,
20
- readJsonSync: jsonFile.readFileSync,
21
- writeJson: jsonFile.writeFile,
22
- writeJsonSync: jsonFile.writeFileSync
23
- };
24
-
25
- exports.jsonfile = jsonfile;
26
- //# sourceMappingURL=jsonfile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonfile.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/jsonfile.js"],"sourcesContent":["'use strict'\n\nconst jsonFile = require('jsonfile')\n\nmodule.exports = {\n // jsonfile exports\n readJson: jsonFile.readFile,\n readJsonSync: jsonFile.readFileSync,\n writeJson: jsonFile.writeFile,\n writeJsonSync: jsonFile.writeFileSync\n}\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;;;;AAEA,MAAM,QAAQ,GAAGA,iBAAmB;AACpC;AACA,IAAA,QAAc,GAAG;AACjB;AACA,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ;AAC7B,EAAE,YAAY,EAAE,QAAQ,CAAC,YAAY;AACrC,EAAE,SAAS,EAAE,QAAQ,CAAC,SAAS;AAC/B,EAAE,aAAa,EAAE,QAAQ,CAAC,aAAa;AACvC;;;;","x_google_ignoreList":[0]}
@@ -1,28 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var require$$0 = require('jsonfile/utils');
14
- var index = require('../output-file/index.js');
15
-
16
- const { stringify } = require$$0;
17
- const { outputFileSync } = index.outputFile_1;
18
-
19
- function outputJsonSync (file, data, options) {
20
- const str = stringify(data, options);
21
-
22
- outputFileSync(file, str, options);
23
- }
24
-
25
- var outputJsonSync_1 = outputJsonSync;
26
-
27
- exports.outputJsonSync_1 = outputJsonSync_1;
28
- //# sourceMappingURL=output-json-sync.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output-json-sync.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"],"sourcesContent":["'use strict'\n\nconst { stringify } = require('jsonfile/utils')\nconst { outputFileSync } = require('../output-file')\n\nfunction outputJsonSync (file, data, options) {\n const str = stringify(data, options)\n\n outputFileSync(file, str, options)\n}\n\nmodule.exports = outputJsonSync\n"],"names":["require$$1"],"mappings":";;;;;;;;;;;;;;;AAEA,MAAM,EAAE,SAAS,EAAE,GAAG,WAAyB;AAC/C,MAAM,EAAE,cAAc,EAAE,GAAGA,mBAAyB;AACpD;AACA,SAAS,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE;AAC9C,EAAE,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,EAAE,OAAO,EAAC;AACtC;AACA,EAAE,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAC;AACpC,CAAC;AACD;AACA,IAAA,gBAAc,GAAG;;;;","x_google_ignoreList":[0]}
@@ -1,28 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var require$$0 = require('jsonfile/utils');
14
- var index = require('../output-file/index.js');
15
-
16
- const { stringify } = require$$0;
17
- const { outputFile } = index.outputFile_1;
18
-
19
- async function outputJson (file, data, options = {}) {
20
- const str = stringify(data, options);
21
-
22
- await outputFile(file, str, options);
23
- }
24
-
25
- var outputJson_1 = outputJson;
26
-
27
- exports.outputJson_1 = outputJson_1;
28
- //# sourceMappingURL=output-json.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output-json.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json.js"],"sourcesContent":["'use strict'\n\nconst { stringify } = require('jsonfile/utils')\nconst { outputFile } = require('../output-file')\n\nasync function outputJson (file, data, options = {}) {\n const str = stringify(data, options)\n\n await outputFile(file, str, options)\n}\n\nmodule.exports = outputJson\n"],"names":["require$$1"],"mappings":";;;;;;;;;;;;;;;AAEA,MAAM,EAAE,SAAS,EAAE,GAAG,WAAyB;AAC/C,MAAM,EAAE,UAAU,EAAE,GAAGA,mBAAyB;AAChD;AACA,eAAe,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE,EAAE;AACrD,EAAE,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,EAAE,OAAO,EAAC;AACtC;AACA,EAAE,MAAM,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAC;AACtC,CAAC;AACD;AACA,IAAA,YAAc,GAAG;;;;","x_google_ignoreList":[0]}
@@ -1,32 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var require$$0 = require('universalify');
14
- require('./make-dir.js');
15
- var makeDir$1 = require('../../../../../../../_virtual/make-dir.js');
16
-
17
- const u = require$$0.fromPromise;
18
- const { makeDir: _makeDir, makeDirSync } = makeDir$1.__exports;
19
- const makeDir = u(_makeDir);
20
-
21
- var mkdirs = {
22
- mkdirs: makeDir,
23
- mkdirsSync: makeDirSync,
24
- // alias
25
- mkdirp: makeDir,
26
- mkdirpSync: makeDirSync,
27
- ensureDir: makeDir,
28
- ensureDirSync: makeDirSync
29
- };
30
-
31
- exports.mkdirs = mkdirs;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/index.js"],"sourcesContent":["'use strict'\nconst u = require('universalify').fromPromise\nconst { makeDir: _makeDir, makeDirSync } = require('./make-dir')\nconst makeDir = u(_makeDir)\n\nmodule.exports = {\n mkdirs: makeDir,\n mkdirsSync: makeDirSync,\n // alias\n mkdirp: makeDir,\n mkdirpSync: makeDirSync,\n ensureDir: makeDir,\n ensureDirSync: makeDirSync\n}\n"],"names":["require$$1"],"mappings":";;;;;;;;;;;;;;;;AACA,MAAM,CAAC,GAAG,UAAuB,CAAC,YAAW;AAC7C,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAGA,oBAAqB;AAChE,MAAM,OAAO,GAAG,CAAC,CAAC,QAAQ,EAAC;AAC3B;AACA,IAAA,MAAc,GAAG;AACjB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,UAAU,EAAE,WAAW;AACzB;AACA,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,UAAU,EAAE,WAAW;AACzB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,aAAa,EAAE,WAAW;AAC5B;;;;","x_google_ignoreList":[0]}
@@ -1,49 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- Object.defineProperty(exports, '__esModule', { value: true });
14
-
15
- var makeDir = require('../../../../../../../_virtual/make-dir.js');
16
- require('../fs/index.js');
17
- require('./utils.js');
18
- var index = require('../../../../../../../_virtual/index.js');
19
- var utils = require('../../../../../../../_virtual/utils.js');
20
-
21
- const fs = index.__exports;
22
- const { checkPath } = utils.__exports;
23
-
24
- const getMode = options => {
25
- const defaults = { mode: 0o777 };
26
- if (typeof options === 'number') return options
27
- return ({ ...defaults, ...options }).mode
28
- };
29
-
30
- makeDir.__exports.makeDir = async (dir, options) => {
31
- checkPath(dir);
32
-
33
- return fs.mkdir(dir, {
34
- mode: getMode(options),
35
- recursive: true
36
- })
37
- };
38
-
39
- makeDir.__exports.makeDirSync = (dir, options) => {
40
- checkPath(dir);
41
-
42
- return fs.mkdirSync(dir, {
43
- mode: getMode(options),
44
- recursive: true
45
- })
46
- };
47
-
48
- exports.default = makeDir.__exports;
49
- //# sourceMappingURL=make-dir.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"make-dir.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"],"sourcesContent":["'use strict'\nconst fs = require('../fs')\nconst { checkPath } = require('./utils')\n\nconst getMode = options => {\n const defaults = { mode: 0o777 }\n if (typeof options === 'number') return options\n return ({ ...defaults, ...options }).mode\n}\n\nmodule.exports.makeDir = async (dir, options) => {\n checkPath(dir)\n\n return fs.mkdir(dir, {\n mode: getMode(options),\n recursive: true\n })\n}\n\nmodule.exports.makeDirSync = (dir, options) => {\n checkPath(dir)\n\n return fs.mkdirSync(dir, {\n mode: getMode(options),\n recursive: true\n })\n}\n"],"names":["require$$0","require$$1","makeDir"],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,MAAM,EAAE,GAAGA,gBAAgB;AAC3B,MAAM,EAAE,SAAS,EAAE,GAAGC,gBAAkB;AACxC;AACA,MAAM,OAAO,GAAG,OAAO,IAAI;AAC3B,EAAE,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,KAAK,GAAE;AAClC,EAAE,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,OAAO,OAAO;AACjD,EAAE,OAAO,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI;AAC3C,EAAC;AACD;AACAC,iBAAA,CAAA,OAAsB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AACjD,EAAE,SAAS,CAAC,GAAG,EAAC;AAChB;AACA,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;AACvB,IAAI,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC;AAC1B,IAAI,SAAS,EAAE,IAAI;AACnB,GAAG,CAAC;AACJ,EAAC;AACD;AACAA,iBAAA,CAAA,WAA0B,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AAC/C,EAAE,SAAS,CAAC,GAAG,EAAC;AAChB;AACA,EAAE,OAAO,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE;AAC3B,IAAI,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC;AAC1B,IAAI,SAAS,EAAE,IAAI;AACnB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- Object.defineProperty(exports, '__esModule', { value: true });
14
-
15
- var utils = require('../../../../../../../_virtual/utils.js');
16
- var path$1 = require('path');
17
-
18
- const path = path$1;
19
-
20
- // https://github.com/nodejs/node/issues/8987
21
- // https://github.com/libuv/libuv/pull/1088
22
- utils.__exports.checkPath = function checkPath (pth) {
23
- if (process.platform === 'win32') {
24
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ''));
25
-
26
- if (pathHasInvalidWinCharacters) {
27
- const error = new Error(`Path contains invalid characters: ${pth}`);
28
- error.code = 'EINVAL';
29
- throw error
30
- }
31
- }
32
- };
33
-
34
- exports.default = utils.__exports;
35
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/utils.js"],"sourcesContent":["// Adapted from https://github.com/sindresorhus/make-dir\n// Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict'\nconst path = require('path')\n\n// https://github.com/nodejs/node/issues/8987\n// https://github.com/libuv/libuv/pull/1088\nmodule.exports.checkPath = function checkPath (pth) {\n if (process.platform === 'win32') {\n const pathHasInvalidWinCharacters = /[<>:\"|?*]/.test(pth.replace(path.parse(pth).root, ''))\n\n if (pathHasInvalidWinCharacters) {\n const error = new Error(`Path contains invalid characters: ${pth}`)\n error.code = 'EINVAL'\n throw error\n }\n }\n}\n"],"names":["require$$0","utils"],"mappings":";;;;;;;;;;;;;;;;;AAMA,MAAM,IAAI,GAAGA,OAAe;AAC5B;AACA;AACA;AACAC,eAAA,CAAA,SAAwB,GAAG,SAAS,SAAS,EAAE,GAAG,EAAE;AACpD,EAAE,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;AACpC,IAAI,MAAM,2BAA2B,GAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,EAAC;AAC/F;AACA,IAAI,IAAI,2BAA2B,EAAE;AACrC,MAAM,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,kCAAkC,EAAE,GAAG,CAAC,CAAC,EAAC;AACzE,MAAM,KAAK,CAAC,IAAI,GAAG,SAAQ;AAC3B,MAAM,MAAM,KAAK;AACjB,KAAK;AACL,GAAG;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,24 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var require$$0 = require('universalify');
14
- var move$1 = require('./move.js');
15
- var moveSync = require('./move-sync.js');
16
-
17
- const u = require$$0.fromCallback;
18
- var move = {
19
- move: u(move$1.move_1),
20
- moveSync: moveSync.moveSync_1
21
- };
22
-
23
- exports.move = move;
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/index.js"],"sourcesContent":["'use strict'\n\nconst u = require('universalify').fromCallback\nmodule.exports = {\n move: u(require('./move')),\n moveSync: require('./move-sync')\n}\n"],"names":["require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;AAEA,MAAM,CAAC,GAAG,UAAuB,CAAC,aAAY;AAC9C,IAAA,IAAc,GAAG;AACjB,EAAE,IAAI,EAAE,CAAC,CAACA,aAAiB,CAAC;AAC5B,EAAE,QAAQ,EAAEC,mBAAsB;AAClC;;;;","x_google_ignoreList":[0]}
@@ -1,74 +0,0 @@
1
- /**
2
- * @tanstack/router-vite-plugin/src/index.ts
3
- *
4
- * Copyright (c) TanStack
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */
11
- 'use strict';
12
-
13
- var gracefulFs = require('../../../../../graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js');
14
- var path$1 = require('path');
15
- var index$2 = require('../copy/index.js');
16
- var index = require('../remove/index.js');
17
- var index$1 = require('../mkdirs/index.js');
18
- var stat$1 = require('../util/stat.js');
19
-
20
- const fs = gracefulFs.gracefulFs;
21
- const path = path$1;
22
- const copySync = index$2.copy.copySync;
23
- const removeSync = index.remove_1.removeSync;
24
- const mkdirpSync = index$1.mkdirs.mkdirpSync;
25
- const stat = stat$1.stat;
26
-
27
- function moveSync (src, dest, opts) {
28
- opts = opts || {};
29
- const overwrite = opts.overwrite || opts.clobber || false;
30
-
31
- const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, 'move', opts);
32
- stat.checkParentPathsSync(src, srcStat, dest, 'move');
33
- if (!isParentRoot(dest)) mkdirpSync(path.dirname(dest));
34
- return doRename(src, dest, overwrite, isChangingCase)
35
- }
36
-
37
- function isParentRoot (dest) {
38
- const parent = path.dirname(dest);
39
- const parsedPath = path.parse(parent);
40
- return parsedPath.root === parent
41
- }
42
-
43
- function doRename (src, dest, overwrite, isChangingCase) {
44
- if (isChangingCase) return rename(src, dest, overwrite)
45
- if (overwrite) {
46
- removeSync(dest);
47
- return rename(src, dest, overwrite)
48
- }
49
- if (fs.existsSync(dest)) throw new Error('dest already exists.')
50
- return rename(src, dest, overwrite)
51
- }
52
-
53
- function rename (src, dest, overwrite) {
54
- try {
55
- fs.renameSync(src, dest);
56
- } catch (err) {
57
- if (err.code !== 'EXDEV') throw err
58
- return moveAcrossDevice(src, dest, overwrite)
59
- }
60
- }
61
-
62
- function moveAcrossDevice (src, dest, overwrite) {
63
- const opts = {
64
- overwrite,
65
- errorOnExist: true
66
- };
67
- copySync(src, dest, opts);
68
- return removeSync(src)
69
- }
70
-
71
- var moveSync_1 = moveSync;
72
-
73
- exports.moveSync_1 = moveSync_1;
74
- //# sourceMappingURL=move-sync.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"move-sync.js","sources":["../../../../../../../../../../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move-sync.js"],"sourcesContent":["'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst copySync = require('../copy').copySync\nconst removeSync = require('../remove').removeSync\nconst mkdirpSync = require('../mkdirs').mkdirpSync\nconst stat = require('../util/stat')\n\nfunction moveSync (src, dest, opts) {\n opts = opts || {}\n const overwrite = opts.overwrite || opts.clobber || false\n\n const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, 'move', opts)\n stat.checkParentPathsSync(src, srcStat, dest, 'move')\n if (!isParentRoot(dest)) mkdirpSync(path.dirname(dest))\n return doRename(src, dest, overwrite, isChangingCase)\n}\n\nfunction isParentRoot (dest) {\n const parent = path.dirname(dest)\n const parsedPath = path.parse(parent)\n return parsedPath.root === parent\n}\n\nfunction doRename (src, dest, overwrite, isChangingCase) {\n if (isChangingCase) return rename(src, dest, overwrite)\n if (overwrite) {\n removeSync(dest)\n return rename(src, dest, overwrite)\n }\n if (fs.existsSync(dest)) throw new Error('dest already exists.')\n return rename(src, dest, overwrite)\n}\n\nfunction rename (src, dest, overwrite) {\n try {\n fs.renameSync(src, dest)\n } catch (err) {\n if (err.code !== 'EXDEV') throw err\n return moveAcrossDevice(src, dest, overwrite)\n }\n}\n\nfunction moveAcrossDevice (src, dest, overwrite) {\n const opts = {\n overwrite,\n errorOnExist: true\n }\n copySync(src, dest, opts)\n return removeSync(src)\n}\n\nmodule.exports = moveSync\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,MAAM,EAAE,GAAGA,sBAAsB;AACjC,MAAM,IAAI,GAAGC,OAAe;AAC5B,MAAM,QAAQ,GAAGC,YAAkB,CAAC,SAAQ;AAC5C,MAAM,UAAU,GAAGC,cAAoB,CAAC,WAAU;AAClD,MAAM,UAAU,GAAGC,cAAoB,CAAC,WAAU;AAClD,MAAM,IAAI,GAAGC,YAAuB;AACpC;AACA,SAAS,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE;AACpC,EAAE,IAAI,GAAG,IAAI,IAAI,GAAE;AACnB,EAAE,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,IAAI,MAAK;AAC3D;AACA,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;AAC1F,EAAE,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAC;AACv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