@akinon/projectzero 1.24.0 → 1.24.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.24.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 95510c7: ZERO-2508: Enable rc branch pipeline and add check-publish-version step
8
+
3
9
  ## 1.24.0
4
10
 
5
11
  ## 1.23.0
@@ -40,12 +40,28 @@ const path_1 = __importDefault(require("path"));
40
40
  const child_process_1 = require("child_process");
41
41
  const Prompt = require('prompt-checkbox');
42
42
  const rootDir = path_1.default.resolve(process.cwd());
43
- const pluginsFilePath = path_1.default.resolve(rootDir, './packages/akinon-next/plugins.js');
43
+ function findPluginsFilePath() {
44
+ const option1 = path_1.default.resolve(rootDir, './src/plugins.js');
45
+ const option2 = path_1.default.resolve(rootDir, './packages/akinon-next/plugins.js');
46
+ if (fs.existsSync(option1)) {
47
+ return option1;
48
+ }
49
+ else if (fs.existsSync(option2)) {
50
+ return option2;
51
+ }
52
+ else {
53
+ throw new Error('plugins.js was not found in either of the expected locations.');
54
+ }
55
+ }
56
+ const pluginsFilePath = findPluginsFilePath();
44
57
  let installedPlugins = [];
45
58
  try {
46
- installedPlugins = require(path_1.default.resolve(rootDir, './packages/akinon-next/plugins.js'));
59
+ installedPlugins = require(pluginsFilePath);
60
+ }
61
+ catch (error) {
62
+ console.error('Error loading installed plugins:', error);
63
+ process.exit(1);
47
64
  }
48
- catch (error) { }
49
65
  const definedPlugins = [
50
66
  {
51
67
  name: 'Basket Gift Pack',
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {