@medable/mdctl-import-adapter
Advanced tools
Comparing version 1.0.67 to 1.0.68-alpha.0
17
index.js
@@ -25,3 +25,3 @@ const EventEmitter = require('events'), | ||
constructor(inputDir, format = 'json', manifest = null, cache) { | ||
constructor(inputDir, format = 'json', manifest = null, cache, preserveTemplateStatus = false) { | ||
super() | ||
@@ -43,3 +43,3 @@ Object.assign(privatesAccessor(this), { | ||
this.loadMetadata() | ||
this.readPackageFile() | ||
this.readPackageFile(preserveTemplateStatus) | ||
this.readManifest() | ||
@@ -179,3 +179,3 @@ } | ||
readPackageFile() { | ||
readPackageFile(preserveTemplateStatus = false) { | ||
@@ -231,2 +231,5 @@ let packageData, | ||
packageData.pipes.ingest = fs.readFileSync(ingestPipe).toString() | ||
if (preserveTemplateStatus) { | ||
packageData.pipes.ingest = `const preserveTemplateStatus = true\n${packageData.pipes.ingest}` | ||
} | ||
} | ||
@@ -266,6 +269,6 @@ } | ||
if (includes[0] === '*') { | ||
paths.push(`data/${pluralize(k)}/*.{json,yaml}`) | ||
paths.push(`data/${pluralize(k)}/**/*.{json,yaml}`) | ||
} else { | ||
includes.forEach((inc) => { | ||
paths.push(`data/${pluralize(k)}/${inc}.{json,yaml}`) | ||
paths.push(`data/${pluralize(k)}/**/${inc}.{json,yaml}`) | ||
}) | ||
@@ -275,3 +278,3 @@ } | ||
includes.forEach((inc) => { | ||
paths.push(`env/${k}/${inc}.{json,yaml}`) | ||
paths.push(`env/${k}/**/${inc}.{json,yaml}`) | ||
}) | ||
@@ -281,3 +284,3 @@ } | ||
manifestData[k].forEach((o) => { | ||
paths.push(`env/${k}/${o.name}.{json,yaml}`) | ||
paths.push(`env/${k}/**/${o.name}.{json,yaml}`) | ||
}) | ||
@@ -284,0 +287,0 @@ } |
{ | ||
"name": "@medable/mdctl-import-adapter", | ||
"version": "1.0.67", | ||
"version": "1.0.68-alpha.0", | ||
"description": "Medable Developer Client Tools :: Import Adapter", | ||
@@ -18,6 +18,11 @@ "repository": { | ||
"license": "MIT", | ||
"jest": { | ||
"testPathIgnorePatterns": [ | ||
"template-export" | ||
] | ||
}, | ||
"scripts": { | ||
"test": "npm run lint && npm run cover", | ||
"test": "jest", | ||
"test:prod": "npm run test", | ||
"test:only": "mocha --recursive", | ||
"test:only": "npm run test", | ||
"test:watch": "npm run test:only -- --watch", | ||
@@ -29,5 +34,5 @@ "test:examples": "node examples/", | ||
"dependencies": { | ||
"@medable/mdctl-core": "^1.0.67", | ||
"@medable/mdctl-core-utils": "^1.0.67", | ||
"@medable/mdctl-node-utils": "^1.0.67", | ||
"@medable/mdctl-core": "^1.0.68-alpha.0", | ||
"@medable/mdctl-core-utils": "^1.0.68-alpha.0", | ||
"@medable/mdctl-node-utils": "^1.0.68-alpha.0", | ||
"clone": "^2.1.2", | ||
@@ -52,6 +57,8 @@ "globby": "^9.1.0", | ||
"istanbul": "^1.0.0-alpha", | ||
"jest": "^27.4.5", | ||
"mocha": "^5.0.0", | ||
"nock": "^10.0.6", | ||
"sinon": "^7.2.2" | ||
}, | ||
"gitHead": "4b11d698fee9710cac10af30e44556e856cbb1e1" | ||
"gitHead": "af10e33af08f31f2777ac5cab00ee08f433c2a58" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29956
8
701
13
1
4