tnx-shared 5.0.13 → 5.0.17
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/assets/gulpfile.js +4 -4
- package/package.json +2 -2
package/assets/gulpfile.js
CHANGED
|
@@ -216,7 +216,7 @@ task('updateDepdendServiceToLatest', function (done) {
|
|
|
216
216
|
console.log(`latest version of service ${serviceName} is ${version.versionString}`);
|
|
217
217
|
modifyFile(pathPackageJson, rootProjectPath, (content) => {
|
|
218
218
|
const json = JSON.parse(content);
|
|
219
|
-
json.dependencies[serviceName] = version.versionString
|
|
219
|
+
json.dependencies[serviceName] = `~${version.versionString}`;
|
|
220
220
|
return JSON.stringify(json);
|
|
221
221
|
});
|
|
222
222
|
}
|
|
@@ -237,7 +237,7 @@ function resetPackageJson() {
|
|
|
237
237
|
return new Promise((resolve) => {
|
|
238
238
|
const json = JSON.parse(content);
|
|
239
239
|
getCurrentVersion({}, 'tnx-shared', (data) => {
|
|
240
|
-
json.dependencies['tnx-shared'] =
|
|
240
|
+
json.dependencies['tnx-shared'] = `~${data.versionString}`;
|
|
241
241
|
resolve(JSON.stringify(json));
|
|
242
242
|
});
|
|
243
243
|
});
|
|
@@ -682,13 +682,13 @@ function buildTsConfigPath(paths, project) {
|
|
|
682
682
|
const refType = prj.refType ? prj.refType : 'package';
|
|
683
683
|
if (project == 'tnx-shared') {
|
|
684
684
|
if (refType != 'package') {
|
|
685
|
-
paths[`tnx-shared`] = [
|
|
685
|
+
paths[`tnx-shared`] = [`${prj.refPath}/src/lib/public-api`];
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
else {
|
|
689
689
|
const pathAlias = `${prefix}${project}`;
|
|
690
690
|
if (refType != 'package') {
|
|
691
|
-
paths[`${pathAlias}/*`] = [
|
|
691
|
+
paths[`${pathAlias}/*`] = [`${prj.refPath}/src/lib/*/public-api`];
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|