@lark-apaas/fullstack-cli 1.1.12-alpha.15 → 1.1.12-alpha.16
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/gen-dbschema-template/types.ts +1 -1
- package/dist/index.js +13 -1
- package/package.json +1 -1
|
@@ -50,7 +50,7 @@ export const customTimestamptz = customType<{
|
|
|
50
50
|
return `timestamptz${precision}`;
|
|
51
51
|
},
|
|
52
52
|
toDriver(value: Date | string | number){
|
|
53
|
-
if(value == null) return value;
|
|
53
|
+
if(value == null) return value as any;
|
|
54
54
|
if (typeof value === 'number') {
|
|
55
55
|
return new Date(value).toISOString();
|
|
56
56
|
}
|
package/dist/index.js
CHANGED
|
@@ -2014,6 +2014,14 @@ async function init() {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
2016
|
// src/commands/action-plugin/install.handler.ts
|
|
2017
|
+
function syncActionPluginsRecord(name, version) {
|
|
2018
|
+
const plugins = readActionPlugins();
|
|
2019
|
+
if (plugins[name] !== version) {
|
|
2020
|
+
plugins[name] = version;
|
|
2021
|
+
writeActionPlugins(plugins);
|
|
2022
|
+
console.log(`[action-plugin] Synced actionPlugins record: ${name}@${version}`);
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2017
2025
|
async function installOne(nameWithVersion) {
|
|
2018
2026
|
let tgzPath;
|
|
2019
2027
|
const { name, version: requestedVersion } = parsePluginName(nameWithVersion);
|
|
@@ -2023,6 +2031,7 @@ async function installOne(nameWithVersion) {
|
|
|
2023
2031
|
if (actualVersion && requestedVersion !== "latest") {
|
|
2024
2032
|
if (actualVersion === requestedVersion) {
|
|
2025
2033
|
console.log(`[action-plugin] Plugin ${name}@${requestedVersion} is already installed`);
|
|
2034
|
+
syncActionPluginsRecord(name, actualVersion);
|
|
2026
2035
|
return { name, version: actualVersion, success: true, skipped: true };
|
|
2027
2036
|
}
|
|
2028
2037
|
}
|
|
@@ -2030,6 +2039,7 @@ async function installOne(nameWithVersion) {
|
|
|
2030
2039
|
const latestInfo = await getPluginVersion(name, "latest");
|
|
2031
2040
|
if (actualVersion === latestInfo.version) {
|
|
2032
2041
|
console.log(`[action-plugin] Plugin ${name} is already up to date (version: ${actualVersion})`);
|
|
2042
|
+
syncActionPluginsRecord(name, actualVersion);
|
|
2033
2043
|
return { name, version: actualVersion, success: true, skipped: true };
|
|
2034
2044
|
}
|
|
2035
2045
|
console.log(`[action-plugin] Found newer version: ${latestInfo.version} (installed: ${actualVersion})`);
|
|
@@ -2068,6 +2078,7 @@ async function install(namesWithVersion) {
|
|
|
2068
2078
|
}
|
|
2069
2079
|
const results = [];
|
|
2070
2080
|
for (const nameWithVersion of namesWithVersion) {
|
|
2081
|
+
console.log(`[action-plugin] Processing ${nameWithVersion}...`);
|
|
2071
2082
|
const result = await installOne(nameWithVersion);
|
|
2072
2083
|
results.push(result);
|
|
2073
2084
|
}
|
|
@@ -2900,8 +2911,9 @@ async function migrateJsonFiles(options) {
|
|
|
2900
2911
|
// src/commands/migration/versions/v001_capability/plugin-installer/detector.ts
|
|
2901
2912
|
import fs13 from "fs";
|
|
2902
2913
|
function isPluginInstalled2(pluginKey) {
|
|
2914
|
+
const actionPlugins = readActionPlugins();
|
|
2903
2915
|
const manifestPath = getPluginManifestPath2(pluginKey);
|
|
2904
|
-
return fs13.existsSync(manifestPath);
|
|
2916
|
+
return fs13.existsSync(manifestPath) && !!actionPlugins[pluginKey];
|
|
2905
2917
|
}
|
|
2906
2918
|
function detectPluginsToInstall(capabilities) {
|
|
2907
2919
|
const pluginKeys = /* @__PURE__ */ new Set();
|