@capawesome/cli 2.1.3-dev.faa7c38.1756672353 → 2.1.3-dev.faa7c38.1756672647

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.
@@ -1,7 +1,9 @@
1
+ import { createRequire } from 'module';
1
2
  import { defineCommand } from '@robingenz/zli';
2
3
  import consola from 'consola';
3
4
  import systeminformation from 'systeminformation';
4
- import pkg from '../../package.json' with { type: 'json' };
5
+ const require = createRequire(import.meta.url);
6
+ const pkg = require('../../package.json');
5
7
  export default defineCommand({
6
8
  description: 'Prints out neccessary information for debugging',
7
9
  action: async (options, args) => {
@@ -1,6 +1,8 @@
1
+ import { createRequire } from 'module';
1
2
  import { defineConfig, processConfig } from '@robingenz/zli';
2
3
  import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
3
- import pkg from '../package.json' with { type: 'json' };
4
+ const require = createRequire(import.meta.url);
5
+ const pkg = require('../package.json');
4
6
  const config = defineConfig({
5
7
  meta: {
6
8
  name: pkg.name,
@@ -1,6 +1,8 @@
1
+ import { createRequire } from 'module';
1
2
  import consola from 'consola';
2
3
  import * as semver from 'semver';
3
- import pkg from '../../package.json' with { type: 'json' };
4
+ const require = createRequire(import.meta.url);
5
+ const pkg = require('../../package.json');
4
6
  import httpClient from '../utils/http-client.js';
5
7
  class UpdateServiceImpl {
6
8
  httpClient;
@@ -1,7 +1,9 @@
1
+ import { createRequire } from 'module';
1
2
  import configService from '../services/config.js';
2
3
  import axios from 'axios';
3
4
  import axiosRetry from 'axios-retry';
4
- import pkg from '../../package.json' with { type: 'json' };
5
+ const require = createRequire(import.meta.url);
6
+ const pkg = require('../../package.json');
5
7
  // Register middleware to retry failed requests
6
8
  axiosRetry(axios, {
7
9
  retries: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/cli",
3
- "version": "2.1.3-dev.faa7c38.1756672353",
3
+ "version": "2.1.3-dev.faa7c38.1756672647",
4
4
  "description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
5
5
  "type": "module",
6
6
  "scripts": {