@onivoro/onix 20.0.55 → 20.0.56
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/package.json +1 -1
- package/src/executors/build-cli/executor.js +2 -2
- package/src/executors/build-cli/executor.js.map +1 -1
- package/src/executors/typeorm/executor.js +1 -1
- package/src/executors/typeorm/executor.js.map +1 -1
- package/src/functions/pm.function.d.ts +14 -1
- package/src/functions/pm.function.js +3 -2
- package/src/functions/pm.function.js.map +1 -1
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ exports.default = (0, executor_factory_function_1.executorFactory)((options, con
|
|
|
11
11
|
const tempPath = `${outputPath}/temp`;
|
|
12
12
|
const executableOutputPath = `${outputPath}/main.js`;
|
|
13
13
|
devkit_1.logger.info(`add a bin entry to root package.json pointing at this executable => ${executableOutputPath} and re-run this if the bin entry hasn't been added yet`);
|
|
14
|
-
const { dlx,
|
|
15
|
-
(0, child_process_1.execSync)(`${dlx} nx build ${context.projectName} && echo '#! /usr/bin/env node' > ${tempPath} && cat ${executableOutputPath} >> ${tempPath} && mv ${tempPath} ${executableOutputPath} && chmod +x ${executableOutputPath} && ${
|
|
14
|
+
const { dlx, run } = (0, pm_function_1.pm)(context);
|
|
15
|
+
(0, child_process_1.execSync)(`${dlx} nx build ${context.projectName} && echo '#! /usr/bin/env node' > ${tempPath} && cat ${executableOutputPath} >> ${tempPath} && mv ${tempPath} ${executableOutputPath} && chmod +x ${executableOutputPath} && ${run} link`, { stdio: 'inherit' });
|
|
16
16
|
}));
|
|
17
17
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/build-cli/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,iDAAyC;AACzC,yFAA4E;AAC5E,mHAAoG;AACpG,6DAAiD;AAEjD,kBAAe,IAAA,2CAAe,EAAC,CAAO,OAAuB,EAAE,OAAO,EAAE,EAAE;IACxE,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,mEAA0B,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9E,MAAM,QAAQ,GAAG,GAAG,UAAU,OAAO,CAAC;IACtC,MAAM,oBAAoB,GAAG,GAAG,UAAU,UAAU,CAAC;IAErD,eAAM,CAAC,IAAI,CAAC,uEAAuE,oBAAoB,yDAAyD,CAAC,CAAC;IAElK,MAAM,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/build-cli/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,iDAAyC;AACzC,yFAA4E;AAC5E,mHAAoG;AACpG,6DAAiD;AAEjD,kBAAe,IAAA,2CAAe,EAAC,CAAO,OAAuB,EAAE,OAAO,EAAE,EAAE;IACxE,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,mEAA0B,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9E,MAAM,QAAQ,GAAG,GAAG,UAAU,OAAO,CAAC;IACtC,MAAM,oBAAoB,GAAG,GAAG,UAAU,UAAU,CAAC;IAErD,eAAM,CAAC,IAAI,CAAC,uEAAuE,oBAAoB,yDAAyD,CAAC,CAAC;IAElK,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC;IAEjC,IAAA,wBAAQ,EAAC,GAAG,GAAG,aAAa,OAAO,CAAC,WAAW,qCAAqC,QAAQ,WAAW,oBAAoB,OAAO,QAAQ,UAAU,QAAQ,IAAI,oBAAoB,gBAAgB,oBAAoB,OAAO,GAAG,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAC,CAAC,CAAC;AAClQ,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -10,6 +10,6 @@ exports.default = (0, executor_factory_function_1.executorFactory)((options, con
|
|
|
10
10
|
const { envFile, ormConfigPath, runOrRevert } = options;
|
|
11
11
|
(0, load_env_file_function_1.loadEnvFile)(envFile);
|
|
12
12
|
devkit_1.logger.info(`PACKAGE.JSON SHOULD HAVE A SCRIPT NAMED "typeorm" IN ORDER TO USE THIS EXECUTOR`);
|
|
13
|
-
(0, child_process_1.execSync)(`${(0, pm_function_1.pm)(context).
|
|
13
|
+
(0, child_process_1.execSync)(`${(0, pm_function_1.pm)(context).run} run typeorm -- -d ${ormConfigPath} migration:${runOrRevert} -t=false`, { stdio: 'inherit' });
|
|
14
14
|
}));
|
|
15
15
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/typeorm/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,iDAAyC;AACzC,mFAAqE;AACrE,yFAA4E;AAC5E,6DAAiD;AAEjD,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAExD,IAAA,oCAAW,EAAC,OAAO,CAAC,CAAC;IAErB,eAAM,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAA;IAE9F,IAAA,wBAAQ,EAAC,GAAG,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/typeorm/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,iDAAyC;AACzC,mFAAqE;AACrE,yFAA4E;AAC5E,6DAAiD;AAEjD,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAExD,IAAA,oCAAW,EAAC,OAAO,CAAC,CAAC;IAErB,eAAM,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAA;IAE9F,IAAA,wBAAQ,EAAC,GAAG,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC,GAAG,sBAAsB,aAAa,cAAc,WAAW,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAC5H,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
export declare function pm(context: ExecutorContext):
|
|
2
|
+
export declare function pm(context: ExecutorContext): {
|
|
3
|
+
run: import("@nx/devkit").PackageManager;
|
|
4
|
+
preInstall?: string;
|
|
5
|
+
install: string;
|
|
6
|
+
ciInstall: string;
|
|
7
|
+
updateLockFile: string;
|
|
8
|
+
add: string;
|
|
9
|
+
addDev: string;
|
|
10
|
+
rm: string;
|
|
11
|
+
exec: string;
|
|
12
|
+
dlx: string;
|
|
13
|
+
list: string;
|
|
14
|
+
getRegistryUrl?: string;
|
|
15
|
+
};
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.pm = pm;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
function pm(context) {
|
|
6
|
-
const
|
|
7
|
-
return (0, devkit_1.getPackageManagerCommand)(
|
|
6
|
+
const run = (0, devkit_1.detectPackageManager)(context.root);
|
|
7
|
+
return Object.assign(Object.assign({}, (0, devkit_1.getPackageManagerCommand)(run)), { run });
|
|
8
8
|
}
|
|
9
9
|
// {
|
|
10
|
+
// "run": "bun | npm" // special customization here
|
|
10
11
|
// "install": "bun install",
|
|
11
12
|
// "ciInstall": "bun install --no-cache",
|
|
12
13
|
// "updateLockFile": "bun install --frozen-lockfile",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pm.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/pm.function.ts"],"names":[],"mappings":";;AAMA,gBAGC;AATD,uCAIoB;AAEpB,SAAgB,EAAE,CAAC,OAAwB;IACvC,MAAM,
|
|
1
|
+
{"version":3,"file":"pm.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/pm.function.ts"],"names":[],"mappings":";;AAMA,gBAGC;AATD,uCAIoB;AAEpB,SAAgB,EAAE,CAAC,OAAwB;IACvC,MAAM,GAAG,GAAG,IAAA,6BAAoB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,uCAAW,IAAA,iCAAwB,EAAC,GAAG,CAAC,KAAE,GAAG,IAAG;AACpD,CAAC;AAED,IAAI;AACJ,qDAAqD;AACrD,8BAA8B;AAC9B,2CAA2C;AAC3C,uDAAuD;AACvD,0BAA0B;AAC1B,gCAAgC;AAChC,oBAAoB;AACpB,mBAAmB;AACnB,mBAAmB;AACnB,wBAAwB;AACxB,KAAK"}
|