sdnext 0.0.30 → 0.0.32
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/index.js +15 -145
- package/package.json +3 -3
- package/src/utils/createRoute.ts +1 -1
- package/src/utils/syncSharedArtifacts.ts +1 -1
- package/tsconfig.json +1 -2
package/dist/index.js
CHANGED
|
@@ -1,146 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var commander__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("commander");
|
|
18
|
-
var _utils_build__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./utils/build");
|
|
19
|
-
var _utils_dev__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./utils/dev");
|
|
20
|
-
var _utils_hook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./utils/hook");
|
|
21
|
-
const program = new commander__WEBPACK_IMPORTED_MODULE_3__.Command();
|
|
22
|
-
const path = (0, url__WEBPACK_IMPORTED_MODULE_2__.fileURLToPath)(new URL("../", import.meta.url));
|
|
23
|
-
const packageJson = JSON.parse(await (0, fs_promises__WEBPACK_IMPORTED_MODULE_0__.readFile)((0, path__WEBPACK_IMPORTED_MODULE_1__.join)(path, "package.json"), "utf-8"));
|
|
24
|
-
program.name("soda next").version(packageJson.version);
|
|
25
|
-
program.command("build").allowUnknownOption(true).allowExcessArguments(true).action(_utils_build__WEBPACK_IMPORTED_MODULE_4__.build);
|
|
26
|
-
program.command("dev").allowUnknownOption(true).allowExcessArguments(true).action(_utils_dev__WEBPACK_IMPORTED_MODULE_5__.dev);
|
|
27
|
-
program.command("hook").action(_utils_hook__WEBPACK_IMPORTED_MODULE_6__.hook);
|
|
28
|
-
program.parse();
|
|
29
|
-
__webpack_async_result__();
|
|
30
|
-
} catch (e) {
|
|
31
|
-
__webpack_async_result__(e);
|
|
32
|
-
}
|
|
33
|
-
}, 1);
|
|
34
|
-
},
|
|
35
|
-
"./utils/build": function(module) {
|
|
36
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__utils_build_js_f9ba07bf__;
|
|
37
|
-
},
|
|
38
|
-
"./utils/dev": function(module) {
|
|
39
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__utils_dev_js_df994271__;
|
|
40
|
-
},
|
|
41
|
-
"./utils/hook": function(module) {
|
|
42
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__utils_hook_js_8cbfab27__;
|
|
43
|
-
},
|
|
44
|
-
commander: function(module) {
|
|
45
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_commander__;
|
|
46
|
-
},
|
|
47
|
-
"fs/promises": function(module) {
|
|
48
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__;
|
|
49
|
-
},
|
|
50
|
-
path: function(module) {
|
|
51
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_path__;
|
|
52
|
-
},
|
|
53
|
-
url: function(module) {
|
|
54
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_url__;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var __webpack_module_cache__ = {};
|
|
58
|
-
function __webpack_require__(moduleId) {
|
|
59
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
60
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
61
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
62
|
-
exports: {}
|
|
63
|
-
};
|
|
64
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
65
|
-
return module.exports;
|
|
66
|
-
}
|
|
67
|
-
(()=>{
|
|
68
|
-
var webpackQueues = "function" == typeof Symbol ? Symbol("webpack queues") : "__webpack_queues__";
|
|
69
|
-
var webpackExports = "function" == typeof Symbol ? Symbol("webpack exports") : "__webpack_exports__";
|
|
70
|
-
var webpackError = "function" == typeof Symbol ? Symbol("webpack error") : "__webpack_error__";
|
|
71
|
-
var resolveQueue = (queue)=>{
|
|
72
|
-
if (queue && queue.d < 1) {
|
|
73
|
-
queue.d = 1;
|
|
74
|
-
queue.forEach((fn)=>fn.r--);
|
|
75
|
-
queue.forEach((fn)=>fn.r-- ? fn.r++ : fn());
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
var wrapDeps = (deps)=>deps.map((dep)=>{
|
|
79
|
-
if (null !== dep && "object" == typeof dep) {
|
|
80
|
-
if (dep[webpackQueues]) return dep;
|
|
81
|
-
if (dep.then) {
|
|
82
|
-
var queue = [];
|
|
83
|
-
queue.d = 0;
|
|
84
|
-
dep.then((r)=>{
|
|
85
|
-
obj[webpackExports] = r;
|
|
86
|
-
resolveQueue(queue);
|
|
87
|
-
}, (e)=>{
|
|
88
|
-
obj[webpackError] = e;
|
|
89
|
-
resolveQueue(queue);
|
|
90
|
-
});
|
|
91
|
-
var obj = {};
|
|
92
|
-
obj[webpackQueues] = (fn)=>fn(queue);
|
|
93
|
-
return obj;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
var ret = {};
|
|
97
|
-
ret[webpackQueues] = function() {};
|
|
98
|
-
ret[webpackExports] = dep;
|
|
99
|
-
return ret;
|
|
100
|
-
});
|
|
101
|
-
__webpack_require__.a = (module, body, hasAwait)=>{
|
|
102
|
-
var queue;
|
|
103
|
-
hasAwait && ((queue = []).d = -1);
|
|
104
|
-
var depQueues = new Set();
|
|
105
|
-
var exports = module.exports;
|
|
106
|
-
var currentDeps;
|
|
107
|
-
var outerResolve;
|
|
108
|
-
var reject;
|
|
109
|
-
var promise = new Promise((resolve, rej)=>{
|
|
110
|
-
reject = rej;
|
|
111
|
-
outerResolve = resolve;
|
|
112
|
-
});
|
|
113
|
-
promise[webpackExports] = exports;
|
|
114
|
-
promise[webpackQueues] = (fn)=>{
|
|
115
|
-
queue && fn(queue), depQueues.forEach(fn), promise["catch"](function() {});
|
|
116
|
-
};
|
|
117
|
-
module.exports = promise;
|
|
118
|
-
body((deps)=>{
|
|
119
|
-
currentDeps = wrapDeps(deps);
|
|
120
|
-
var fn;
|
|
121
|
-
var getResult = ()=>currentDeps.map((d)=>{
|
|
122
|
-
if (d[webpackError]) throw d[webpackError];
|
|
123
|
-
return d[webpackExports];
|
|
124
|
-
});
|
|
125
|
-
var promise = new Promise((resolve)=>{
|
|
126
|
-
fn = ()=>resolve(getResult);
|
|
127
|
-
fn.r = 0;
|
|
128
|
-
var fnQueue = (q)=>q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn)));
|
|
129
|
-
currentDeps.map((dep)=>dep[webpackQueues](fnQueue));
|
|
130
|
-
});
|
|
131
|
-
return fn.r ? promise : getResult();
|
|
132
|
-
}, (err)=>(err ? reject(promise[webpackError] = err) : outerResolve(exports), resolveQueue(queue)));
|
|
133
|
-
queue && queue.d < 0 && (queue.d = 0);
|
|
134
|
-
};
|
|
135
|
-
})();
|
|
136
|
-
(()=>{
|
|
137
|
-
__webpack_require__.r = (exports)=>{
|
|
138
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
139
|
-
value: 'Module'
|
|
140
|
-
});
|
|
141
|
-
Object.defineProperty(exports, '__esModule', {
|
|
142
|
-
value: true
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
})();
|
|
146
|
-
__webpack_require__("./src/index.ts");
|
|
2
|
+
import { readFile } from "fs/promises";
|
|
3
|
+
import { join } from "path";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
5
|
+
import { Command } from "commander";
|
|
6
|
+
import { build } from "./utils/build.js";
|
|
7
|
+
import { dev } from "./utils/dev.js";
|
|
8
|
+
import { hook } from "./utils/hook.js";
|
|
9
|
+
const program = new Command();
|
|
10
|
+
const path = fileURLToPath(new URL("../", import.meta.url));
|
|
11
|
+
const packageJson = JSON.parse(await readFile(join(path, "package.json"), "utf-8"));
|
|
12
|
+
program.name("soda next").version(packageJson.version);
|
|
13
|
+
program.command("build").allowUnknownOption(true).allowExcessArguments(true).action(build);
|
|
14
|
+
program.command("dev").allowUnknownOption(true).allowExcessArguments(true).action(dev);
|
|
15
|
+
program.command("hook").action(hook);
|
|
16
|
+
program.parse();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdnext",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@inquirer/prompts": "^8.1.0",
|
|
42
42
|
"chokidar": "^5.0.0",
|
|
43
43
|
"commander": "^14.0.2",
|
|
44
|
-
"deepsea-tools": "5.
|
|
44
|
+
"deepsea-tools": "5.48.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^24.
|
|
47
|
+
"@types/node": "^24.12.4",
|
|
48
48
|
"typescript": ">=5.8.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
package/src/utils/createRoute.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
3
|
"strict": true,
|
|
5
4
|
"declaration": true,
|
|
6
5
|
"skipLibCheck": true,
|
|
@@ -8,7 +7,7 @@
|
|
|
8
7
|
"module": "ESNext",
|
|
9
8
|
"moduleResolution": "Bundler",
|
|
10
9
|
"paths": {
|
|
11
|
-
"@/*": ["src/*"]
|
|
10
|
+
"@/*": ["./src/*"]
|
|
12
11
|
}
|
|
13
12
|
},
|
|
14
13
|
"include": ["src"]
|