main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

166
node_modules/next/dist/bin/next generated vendored Executable file
View File

@@ -0,0 +1,166 @@
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
require("../server/require-hook");
const _log = /*#__PURE__*/ _interop_require_wildcard(require("../build/output/log"));
const _index = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/arg/index.js"));
const _constants = require("../lib/constants");
const _commands = require("../lib/commands");
const _commandargs = require("../lib/command-args");
const _getvalidatedargs = require("../lib/get-validated-args");
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _getRequireWildcardCache(nodeInterop) {
if (typeof WeakMap !== "function") return null;
var cacheBabelInterop = new WeakMap();
var cacheNodeInterop = new WeakMap();
return (_getRequireWildcardCache = function(nodeInterop) {
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
})(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) {
return obj;
}
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
return {
default: obj
};
}
var cache = _getRequireWildcardCache(nodeInterop);
if (cache && cache.has(obj)) {
return cache.get(obj);
}
var newObj = {};
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for(var key in obj){
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
if (desc && (desc.get || desc.set)) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
if (cache) {
cache.set(obj, newObj);
}
return newObj;
}
const defaultCommand = "dev";
const args = (0, _index.default)({
// Types
"--version": Boolean,
"--help": Boolean,
"--inspect": Boolean,
// Aliases
"-v": "--version",
"-h": "--help"
}, {
permissive: true
});
// Version is inlined into the file using taskr build pipeline
if (args["--version"]) {
console.log(`Next.js v${"13.5.1"}`);
process.exit(0);
}
// Check if we are running `next <subcommand>` or `next`
const foundCommand = Boolean(_commands.commands[args._[0]]);
// Makes sure the `next --help` case is covered
// This help message is only showed for `next --help`
// `next <subcommand> --help` falls through to be handled later
if (!foundCommand && args["--help"]) {
console.log(`
Usage
$ next <command>
Available commands
${Object.keys(_commands.commands).join(", ")}
Options
--version, -v Version number
--help, -h Displays this message
For more information run a command with the --help flag
$ next build --help
`);
process.exit(0);
}
const command = foundCommand ? args._[0] : defaultCommand;
if ([
"experimental-compile",
"experimental-generate"
].includes(command)) {
args._.push("--build-mode", command);
}
const forwardedArgs = foundCommand ? args._.slice(1) : args._;
if (args["--inspect"]) throw new Error(`--inspect flag is deprecated. Use env variable NODE_OPTIONS instead: NODE_OPTIONS='--inspect' next ${command}`);
// Make sure the `next <subcommand> --help` case is covered
if (args["--help"]) {
forwardedArgs.push("--help");
}
const defaultEnv = command === "dev" ? "development" : "production";
const standardEnv = [
"production",
"development",
"test"
];
if (process.env.NODE_ENV) {
const isNotStandard = !standardEnv.includes(process.env.NODE_ENV);
const shouldWarnCommands = process.env.NODE_ENV === "development" ? [
"start",
"build"
] : process.env.NODE_ENV === "production" ? [
"dev"
] : [];
if (isNotStandard || shouldWarnCommands.includes(command)) {
_log.warn(_constants.NON_STANDARD_NODE_ENV);
}
}
process.env.NODE_ENV = process.env.NODE_ENV || defaultEnv;
process.env.NEXT_RUNTIME = "nodejs";
// x-ref: https://github.com/vercel/next.js/pull/34688#issuecomment-1047994505
if (process.versions.pnp === "3") {
const nodeVersionParts = process.versions.node.split(".").map((v)=>Number(v));
if (nodeVersionParts[0] < 16 || nodeVersionParts[0] === 16 && nodeVersionParts[1] < 14) {
_log.warn("Node.js 16.14+ is required for Yarn PnP 3.20+. More info: https://github.com/vercel/next.js/pull/34688#issuecomment-1047994505");
}
}
// Make sure commands gracefully respect termination signals (e.g. from Docker)
// Allow the graceful termination to be manually configurable
if (!process.env.NEXT_MANUAL_SIG_HANDLE && command !== "dev") {
process.on("SIGTERM", ()=>process.exit(0));
process.on("SIGINT", ()=>process.exit(0));
}
async function main() {
const currentArgsSpec = _commandargs.commandArgs[command]();
const validatedArgs = (0, _getvalidatedargs.getValidatedArgs)(currentArgsSpec, forwardedArgs);
for (const dependency of [
"react",
"react-dom"
]){
try {
// When 'npm link' is used it checks the clone location. Not the project.
require.resolve(dependency);
} catch (err) {
console.warn(`The module '${dependency}' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install ${dependency}'`);
}
}
await _commands.commands[command]().then((exec)=>exec(validatedArgs)).then(()=>{
if (command === "build" || command === "experimental-compile") {
// ensure process exits after build completes so open handles/connections
// don't cause process to hang
process.exit(0);
}
});
}
main();
//# sourceMappingURL=next.map

2
node_modules/next/dist/bin/next.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env node
import '../server/require-hook';

1
node_modules/next/dist/bin/next.map generated vendored Executable file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/bin/next.ts"],"names":["defaultCommand","args","arg","Boolean","permissive","console","log","process","env","__NEXT_VERSION","exit","foundCommand","commands","_","Object","keys","join","command","includes","push","forwardedArgs","slice","Error","defaultEnv","standardEnv","NODE_ENV","isNotStandard","shouldWarnCommands","warn","NON_STANDARD_NODE_ENV","NEXT_RUNTIME","versions","pnp","nodeVersionParts","node","split","map","v","Number","NEXT_MANUAL_SIG_HANDLE","on","main","currentArgsSpec","commandArgs","validatedArgs","getValidatedArgs","dependency","require","resolve","err","then","exec"],"mappings":";;;;;QACO;6DACc;8DACL;2BACsB;0BACb;6BACG;kCACK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,MAAMA,iBAAiB;AACvB,MAAMC,OAAOC,IAAAA,cAAG,EACd;IACE,QAAQ;IACR,aAAaC;IACb,UAAUA;IACV,aAAaA;IAEb,UAAU;IACV,MAAM;IACN,MAAM;AACR,GAC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