Compare commits

...

2 Commits

Author SHA1 Message Date
bb9de1b13b 4.0.16 2024-02-12 18:40:01 +01:00
080e133e9f fix(core): update 2024-02-12 18:40:01 +01:00
3 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@push.rocks/npmextra",
"version": "4.0.15",
"version": "4.0.16",
"private": false,
"description": "do more with npm",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/npmextra',
version: '4.0.15',
version: '4.0.16',
description: 'do more with npm'
}

View File

@ -1,6 +1,7 @@
import * as plugins from './npmextra.plugins.js';
import * as paths from './npmextra.paths.js';
import { KeyValueStore } from './npmextra.classes.keyvaluestore.js';
import { env } from 'process';
export interface IAppDataOptions {
dirPath?: string;
@ -68,8 +69,11 @@ export class AppData {
if (this.options.envMapping) {
const qenvInstance = new plugins.qenv.Qenv(process.cwd(), '~/.cloudlyrc');
for (const key in this.options.envMapping) {
const envValue = await qenvInstance.getEnvVarOnDemand(key);
let envValue = await qenvInstance.getEnvVarOnDemand(key);
if (envValue) {
if (key.endsWith('_JSON')) {
envValue = JSON.parse(envValue);
}
await this.kvStore.writeKey(key, envValue);
}
}