Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
21
Frontend-Learner/node_modules/nitropack/dist/cli/prepare.mjs
generated
vendored
Normal file
21
Frontend-Learner/node_modules/nitropack/dist/cli/prepare.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { defineCommand } from 'citty';
|
||||
import { createNitro, writeTypes } from 'nitropack/core';
|
||||
import { resolve } from 'pathe';
|
||||
import { c as commonArgs } from './common.mjs';
|
||||
|
||||
const prepare = defineCommand({
|
||||
meta: {
|
||||
name: "prepare",
|
||||
description: "Generate types for the project"
|
||||
},
|
||||
args: {
|
||||
...commonArgs
|
||||
},
|
||||
async run({ args }) {
|
||||
const rootDir = resolve(args.dir || args._dir || ".");
|
||||
const nitro = await createNitro({ rootDir });
|
||||
await writeTypes(nitro);
|
||||
}
|
||||
});
|
||||
|
||||
export { prepare as default };
|
||||
Loading…
Add table
Add a link
Reference in a new issue