@lark-apaas/fullstack-cli 1.1.66-alpha.20260904154137 → 1.1.66-alpha.20260908191831
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
CHANGED
|
@@ -6009,7 +6009,7 @@ function addInjection(sourceFile) {
|
|
|
6009
6009
|
type: PARAM_TYPE,
|
|
6010
6010
|
scope: Scope.Private,
|
|
6011
6011
|
isReadonly: true,
|
|
6012
|
-
decorators: [{ name: "Inject", arguments: [] }]
|
|
6012
|
+
decorators: [{ name: "Inject", arguments: ["CapabilityService"] }]
|
|
6013
6013
|
});
|
|
6014
6014
|
} else {
|
|
6015
6015
|
classDecl.addConstructor({
|
|
@@ -6018,7 +6018,7 @@ function addInjection(sourceFile) {
|
|
|
6018
6018
|
type: PARAM_TYPE,
|
|
6019
6019
|
scope: Scope.Private,
|
|
6020
6020
|
isReadonly: true,
|
|
6021
|
-
decorators: [{ name: "Inject", arguments: [] }]
|
|
6021
|
+
decorators: [{ name: "Inject", arguments: ["CapabilityService"] }]
|
|
6022
6022
|
}]
|
|
6023
6023
|
});
|
|
6024
6024
|
}
|
package/package.json
CHANGED
package/templates/scripts/dev.js
CHANGED
|
@@ -5,7 +5,6 @@ const fs = require('fs');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const { spawn, execSync } = require('child_process');
|
|
7
7
|
const readline = require('readline');
|
|
8
|
-
const { buildNestServerArgs } = require('./nest-type-check.cjs');
|
|
9
8
|
|
|
10
9
|
// ── Project root ──────────────────────────────────────────────────────────────
|
|
11
10
|
const PROJECT_ROOT = path.resolve(__dirname, '..');
|
|
@@ -281,7 +280,7 @@ async function main() {
|
|
|
281
280
|
const serverPromise = startProcess({
|
|
282
281
|
name: 'server',
|
|
283
282
|
command: 'npm',
|
|
284
|
-
args:
|
|
283
|
+
args: ['run', 'dev:server'],
|
|
285
284
|
cleanupPort: SERVER_PORT,
|
|
286
285
|
});
|
|
287
286
|
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const TYPE_CHECK_ENV = 'MIAODA_NEST_TYPE_CHECK_ENABLED';
|
|
7
|
-
const DISABLED_CONFIG_RELATIVE_PATH = 'logs/nest-cli.type-check-disabled.json';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Build the npm arguments used to launch Nest in development.
|
|
11
|
-
*
|
|
12
|
-
* Missing or malformed values deliberately preserve the project's existing
|
|
13
|
-
* nest-cli.json behavior. The platform injects an exact true/false value;
|
|
14
|
-
* exact true forces the checker on, while exact false writes a narrow runtime
|
|
15
|
-
* config override so the checked-in project config is never mutated.
|
|
16
|
-
*/
|
|
17
|
-
function buildNestServerArgs({ projectRoot, env = process.env }) {
|
|
18
|
-
const enabled = env[TYPE_CHECK_ENV];
|
|
19
|
-
if (enabled === 'true') {
|
|
20
|
-
return ['run', 'dev:server', '--', '--type-check'];
|
|
21
|
-
}
|
|
22
|
-
if (enabled !== 'false') {
|
|
23
|
-
return ['run', 'dev:server'];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const sourcePath = path.join(projectRoot, 'nest-cli.json');
|
|
27
|
-
const sourceConfig = JSON.parse(fs.readFileSync(sourcePath, 'utf8'));
|
|
28
|
-
const runtimeConfig = {
|
|
29
|
-
...sourceConfig,
|
|
30
|
-
compilerOptions: {
|
|
31
|
-
...(sourceConfig.compilerOptions || {}),
|
|
32
|
-
typeCheck: false,
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
const runtimePath = path.join(
|
|
36
|
-
projectRoot,
|
|
37
|
-
...DISABLED_CONFIG_RELATIVE_PATH.split('/')
|
|
38
|
-
);
|
|
39
|
-
fs.mkdirSync(path.dirname(runtimePath), { recursive: true });
|
|
40
|
-
const temporaryPath = `${runtimePath}.${process.pid}.tmp`;
|
|
41
|
-
fs.writeFileSync(
|
|
42
|
-
temporaryPath,
|
|
43
|
-
`${JSON.stringify(runtimeConfig, null, 2)}\n`,
|
|
44
|
-
{
|
|
45
|
-
mode: 0o600,
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
fs.renameSync(temporaryPath, runtimePath);
|
|
49
|
-
|
|
50
|
-
return ['run', 'dev:server', '--', '--config', DISABLED_CONFIG_RELATIVE_PATH];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
module.exports = { buildNestServerArgs };
|