mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
register: do not dep on cac
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -89,8 +89,8 @@ require.extensions['.jsc'] = function loader(module, filename) {
|
||||
return compiledWrapper.apply(module.exports, args);
|
||||
};
|
||||
|
||||
const argv = require('cac')().parse();
|
||||
if (argv.options.debug) {
|
||||
const debug = process.argv.find((i) => i.startsWith('--debug'));
|
||||
if (debug && !['0', 'false', 'off', 'disabled', 'no'].includes(debug.split('=')[1]?.toLowerCase())) {
|
||||
console.log('Debug mode enabled');
|
||||
process.env.NODE_ENV = 'development';
|
||||
process.env.DEV = 'on';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/register",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
|
||||
Reference in new issue
Block a user