@bafsllc/serverless-import-config-plugin
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -29,2 +29,3 @@ "use strict"; | ||
const SERVERLESS = "serverless"; | ||
const DIRNAME = "dirname"; | ||
const JS_EXTNAME = ".js"; | ||
@@ -128,3 +129,5 @@ const CONFIG_EXTNAMES = new Set([".yml", ".yaml", JS_EXTNAME]); | ||
.forEach(({ property, matches }) => { | ||
matches.forEach(({ match }) => { | ||
matches | ||
.filter(({ variable }) => variable === DIRNAME) | ||
.forEach(({ match }) => { | ||
const newValue = property.value.replace(match, importDir); | ||
@@ -131,0 +134,0 @@ lodash_set_1.default(config, property.path, newValue); |
{ | ||
"name": "@bafsllc/serverless-import-config-plugin", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Adds possibility to import YAML files in serverless.yaml config file", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23701
234