qarpeo 0.1.10 → 0.1.12
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/chunks/wrangler.mjs +5 -4
- package/dist/cli/index.mjs +1230 -82
- package/dist/module.mjs +12 -5
- package/dist/runtime/app/composables/cms.d.ts +1 -1
- package/dist/runtime/app/composables/cms.mjs +5 -1
- package/dist/runtime/server/routes/cms/[collection]/[slug].get.mjs +2 -1
- package/dist/runtime/server/routes/cms/[collection]/by-path.get.mjs +3 -1
- package/dist/runtime/server/routes/cms/[collection]/index.get.mjs +2 -1
- package/dist/runtime/server/utils/cms.d.ts +4 -0
- package/dist/runtime/server/utils/cms.mjs +59 -21
- package/dist/types.d.ts +1 -1
- package/dist/utils/cloudflare-api.d.ts +14 -0
- package/dist/utils/cms-sources.d.ts +1 -1
- package/dist/utils/pkg.d.ts +2 -2
- package/package.json +1 -1
package/dist/chunks/wrangler.mjs
CHANGED
|
@@ -197,12 +197,13 @@ async function confirmInstall(packageName, purpose) {
|
|
|
197
197
|
rl.close();
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
async function ensurePackage(packageName, options) {
|
|
201
|
-
const cwd = options
|
|
200
|
+
async function ensurePackage(packageName, options = {}) {
|
|
201
|
+
const cwd = options?.cwd || process.cwd();
|
|
202
|
+
const purpose = options?.purpose || "this operation";
|
|
202
203
|
if (isPackageInstalled(packageName, cwd)) {
|
|
203
204
|
return true;
|
|
204
205
|
}
|
|
205
|
-
const confirmed = await confirmInstall(packageName,
|
|
206
|
+
const confirmed = await confirmInstall(packageName, purpose);
|
|
206
207
|
if (!confirmed) {
|
|
207
208
|
console.error(
|
|
208
209
|
`
|
|
@@ -783,4 +784,4 @@ const wrangler = {
|
|
|
783
784
|
resolveProjectName: resolveProjectName
|
|
784
785
|
};
|
|
785
786
|
|
|
786
|
-
export {
|
|
787
|
+
export { checkDrizzleVersion as a, resolveProjectName as b, createWranglerConfig as c, findJobFiles as d, applyD1Migrations as e, findQueueFiles as f, generateDevWranglerConfig as g, findSchemaFiles as h, resolveBinaryPath as i, ensurePackage as j, getLocalDatabaseContext as k, getJiti as l, findLocalD1Database as m, localDb as n, resolveBindingName as r, scanSchemaExports as s, wrangler as w };
|