@simplysm/sd-cli 13.0.83 → 13.0.84
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/package.json +4 -4
- package/src/workers/server.worker.ts +3 -3
- package/templates/init/package.json.hbs +2 -2
- package/templates/init/packages/client-admin/package.json.hbs +5 -5
- package/templates/init/packages/client-admin/src/views/home/HomeView.tsx +1 -1
- package/templates/init/packages/db-main/package.json.hbs +2 -2
- package/templates/init/packages/server/package.json.hbs +4 -4
- package/templates/init/tests/e2e/package.json.hbs +1 -1
- package/templates/init/tests/e2e/src/e2e.spec.ts +1 -1
- package/templates/init/vitest.config.ts +3 -3
- package/tests/sd-cli.spec.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/sd-cli",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.84",
|
|
4
4
|
"description": "Simplysm package - CLI tool",
|
|
5
5
|
"author": "simplysm",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"vite-plugin-solid": "^2.11.10",
|
|
44
44
|
"vite-tsconfig-paths": "^6.1.1",
|
|
45
45
|
"yargs": "^18.0.0",
|
|
46
|
-
"@simplysm/core-
|
|
47
|
-
"@simplysm/
|
|
48
|
-
"@simplysm/
|
|
46
|
+
"@simplysm/core-common": "13.0.84",
|
|
47
|
+
"@simplysm/core-node": "13.0.84",
|
|
48
|
+
"@simplysm/storage": "13.0.84"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/semver": "^7.7.1",
|
|
@@ -175,8 +175,8 @@ function collectAllExternals(pkgDir: string, manualExternals?: string[]): string
|
|
|
175
175
|
*
|
|
176
176
|
* - dist/package.json: include external modules as dependencies (add volta field if volta is used)
|
|
177
177
|
* - dist/mise.toml: specify Node version (only when packageManager === "mise")
|
|
178
|
-
* - dist/openssl.cnf:
|
|
179
|
-
* - dist/pm2.config.cjs: PM2
|
|
178
|
+
* - dist/openssl.cnf: enable legacy OpenSSL provider
|
|
179
|
+
* - dist/pm2.config.cjs: PM2 process configuration (only when pm2 option is present)
|
|
180
180
|
*/
|
|
181
181
|
function generateProductionFiles(info: ServerBuildInfo, externals: string[]): void {
|
|
182
182
|
const distDir = path.join(info.pkgDir, "dist");
|
|
@@ -202,7 +202,7 @@ function generateProductionFiles(info: ServerBuildInfo, externals: string[]): vo
|
|
|
202
202
|
}
|
|
203
203
|
fs.writeFileSync(path.join(distDir, "package.json"), JSON.stringify(distPkgJson, undefined, 2));
|
|
204
204
|
|
|
205
|
-
// dist/mise.toml (packageManager === "mise"
|
|
205
|
+
// dist/mise.toml (only when packageManager === "mise")
|
|
206
206
|
if (info.packageManager === "mise") {
|
|
207
207
|
logger.debug("GEN mise.toml...");
|
|
208
208
|
const rootMiseTomlPath = path.join(info.cwd, "mise.toml");
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"vitest": "vitest"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@simplysm/lint": "~13.0.
|
|
21
|
-
"@simplysm/sd-cli": "~13.0.
|
|
20
|
+
"@simplysm/lint": "~13.0.84",
|
|
21
|
+
"@simplysm/sd-cli": "~13.0.84",
|
|
22
22
|
"@types/node": "^20.19.35",
|
|
23
23
|
"eslint": "^9.39.3",
|
|
24
24
|
"prettier": "^3.8.1",
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"private": true,
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@{{projectName}}/db-main": "workspace:*",
|
|
9
|
-
"@simplysm/core-browser": "~13.0.
|
|
10
|
-
"@simplysm/core-common": "~13.0.
|
|
9
|
+
"@simplysm/core-browser": "~13.0.84",
|
|
10
|
+
"@simplysm/core-common": "~13.0.84",
|
|
11
11
|
"@simplysm/excel": "^13.0.71",
|
|
12
|
-
"@simplysm/orm-common": "~13.0.
|
|
13
|
-
"@simplysm/service-client": "~13.0.
|
|
14
|
-
"@simplysm/solid": "~13.0.
|
|
12
|
+
"@simplysm/orm-common": "~13.0.84",
|
|
13
|
+
"@simplysm/service-client": "~13.0.84",
|
|
14
|
+
"@simplysm/solid": "~13.0.84",
|
|
15
15
|
"@solid-primitives/event-listener": "^2.4.5",
|
|
16
16
|
"@solidjs/router": "^0.15.4",
|
|
17
17
|
"@tabler/icons-solidjs": "^3.37.1",
|
|
@@ -25,7 +25,7 @@ function HomeContent(props: RouteSectionProps) {
|
|
|
25
25
|
|
|
26
26
|
const titleChain = () => {
|
|
27
27
|
const chain = appStructure.getTitleChainByHref(location.pathname);
|
|
28
|
-
//
|
|
28
|
+
// Exclude the top-level group (home)
|
|
29
29
|
return chain.length > 1 ? chain.slice(1) : chain;
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@{{projectName}}/db-main": "workspace:*",
|
|
8
|
-
"@simplysm/core-common": "~13.0.
|
|
8
|
+
"@simplysm/core-common": "~13.0.84",
|
|
9
9
|
"@simplysm/excel": "^13.0.71",
|
|
10
|
-
"@simplysm/orm-common": "~13.0.
|
|
11
|
-
"@simplysm/orm-node": "~13.0.
|
|
12
|
-
"@simplysm/service-server": "~13.0.
|
|
10
|
+
"@simplysm/orm-common": "~13.0.84",
|
|
11
|
+
"@simplysm/orm-node": "~13.0.84",
|
|
12
|
+
"@simplysm/service-server": "~13.0.84",
|
|
13
13
|
"bcrypt": "^6.0.0",
|
|
14
14
|
"pg": "^8.19.0",
|
|
15
15
|
"pg-copy-streams": "^7.0.0"
|
|
@@ -16,7 +16,7 @@ describe("E2E", () => {
|
|
|
16
16
|
ctx.page = await context.newPage();
|
|
17
17
|
ctx.page.setDefaultTimeout(500);
|
|
18
18
|
|
|
19
|
-
//
|
|
19
|
+
// Output browser console errors to test console
|
|
20
20
|
ctx.page.on("pageerror", (err) => {
|
|
21
21
|
console.error(`[PAGE_ERROR] ${err.message}`);
|
|
22
22
|
});
|
|
@@ -22,9 +22,9 @@ export default defineConfig({
|
|
|
22
22
|
coverage: {
|
|
23
23
|
reportsDirectory: "./.coverage",
|
|
24
24
|
},
|
|
25
|
-
//
|
|
25
|
+
// Define as projects array here
|
|
26
26
|
projects: [
|
|
27
|
-
//
|
|
27
|
+
// Unit tests (tests within packages)
|
|
28
28
|
{
|
|
29
29
|
extends: true,
|
|
30
30
|
test: {
|
|
@@ -33,7 +33,7 @@ export default defineConfig({
|
|
|
33
33
|
testTimeout: 30000,
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
|
-
// E2E
|
|
36
|
+
// E2E tests (requires Docker + dev server)
|
|
37
37
|
{
|
|
38
38
|
extends: true,
|
|
39
39
|
test: {
|
package/tests/sd-cli.spec.ts
CHANGED
|
@@ -224,12 +224,12 @@ describe("sd-cli", () => {
|
|
|
224
224
|
|
|
225
225
|
const output = logSpy.mock.calls.map((c) => c.join(" ")).join("\n");
|
|
226
226
|
|
|
227
|
-
//
|
|
227
|
+
// All command names are included in the output
|
|
228
228
|
for (const cmd of ["lint", "typecheck", "check", "watch", "dev", "build", "device", "init", "publish", "replace-deps"]) {
|
|
229
229
|
expect(output).toContain(cmd);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
//
|
|
232
|
+
// Each command's unique options are included in the output
|
|
233
233
|
expect(output).toContain("--fix");
|
|
234
234
|
expect(output).toContain("--timing");
|
|
235
235
|
expect(output).toContain("--no-build");
|