npm-update-package 4.0.10-alpha.0 → 4.0.10-alpha.2

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "4.0.10-alpha.0",
3
+ "version": "4.0.10-alpha.2",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import pkg from '../../package.json';
3
2
  import { logger } from '../logger/logger.js';
4
3
  import { main } from '../main.js';
5
4
  import { initOptions } from '../options/initOptions.js';
5
+ const { default: pkg } = await import('../../package.json');
6
6
  try {
7
7
  const options = initOptions();
8
8
  logger.level = options.logLevel;
@@ -1,5 +1,5 @@
1
1
  import { Octokit } from '@octokit/rest';
2
- import pkg from '../../package.json';
2
+ const { default: pkg } = await import('../../package.json');
3
3
  export const createOctokit = ({ host, token }) => {
4
4
  const userAgent = `${pkg.name}/${pkg.version}`;
5
5
  if (token === undefined) {
@@ -1,4 +1,4 @@
1
- import pkg from '../../../../package.json';
1
+ const { default: pkg } = await import('../../../../package.json');
2
2
  export const createFooter = () => {
3
3
  return `This PR has been generated by [${pkg.name}](${pkg.homepage}) v${pkg.version}`;
4
4
  };
@@ -1,4 +1,4 @@
1
- import pkg from '../../../../package.json';
1
+ const { default: pkg } = await import('../../../../package.json');
2
2
  export const createPullRequestMetadata = (outdatedPackages) => {
3
3
  return {
4
4
  version: pkg.version,
@@ -1,7 +1,7 @@
1
1
  import { program } from 'commander';
2
- import pkg from '../../package.json';
3
2
  import { isOptions } from './Options.js';
4
3
  import { toCommanderOption } from './toCommanderOption.js';
4
+ const { default: pkg } = await import('../../package.json');
5
5
  export const createOptions = (cliOptions) => {
6
6
  program.version(pkg.version);
7
7
  cliOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "4.0.10-alpha.0",
3
+ "version": "4.0.10-alpha.2",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "type": "module",
6
6
  "scripts": {