@akanjs/cli 0.0.90 → 0.0.91
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/index.js +3 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2179,9 +2179,7 @@ var LibraryRunner = class {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
async installLibrary(workspace, libName) {
|
|
2181
2181
|
workspace.log(`Installing ${libName} library as git subtree...`);
|
|
2182
|
-
await workspace.exec(
|
|
2183
|
-
`git subtree add --quiet --prefix=libs/${libName} git@github.com:akan-team/${libName}.git main`
|
|
2184
|
-
);
|
|
2182
|
+
await workspace.exec(`git subtree add --prefix=libs/${libName} git@github.com:akan-team/${libName}.git main`);
|
|
2185
2183
|
await workspace.cp(`libs/${libName}/env/env.server.example.ts`, `libs/${libName}/env/env.server.testing.ts`);
|
|
2186
2184
|
workspace.setTsPaths("lib", libName);
|
|
2187
2185
|
await workspace.commit(`Add ${libName} library`);
|
|
@@ -2215,13 +2213,13 @@ var LibraryRunner = class {
|
|
|
2215
2213
|
}
|
|
2216
2214
|
async pushLibrary(lib, branch) {
|
|
2217
2215
|
await lib.workspace.exec(
|
|
2218
|
-
`git subtree push --
|
|
2216
|
+
`git subtree push --prefix=libs/${lib.name} git@github.com:akan-team/${lib.name}.git ${branch}`
|
|
2219
2217
|
);
|
|
2220
2218
|
lib.logger.log(`${lib.name} library pushed to ${branch} branch`);
|
|
2221
2219
|
}
|
|
2222
2220
|
async pullLibrary(lib, branch) {
|
|
2223
2221
|
await lib.workspace.exec(
|
|
2224
|
-
`git subtree pull --
|
|
2222
|
+
`git subtree pull --prefix=libs/${lib.name} git@github.com:akan-team/${lib.name}.git ${branch}`
|
|
2225
2223
|
);
|
|
2226
2224
|
lib.logger.log(`${lib.name} library pulled from ${branch} branch`);
|
|
2227
2225
|
}
|