generate-package-json-webpack-plugin icon indicating copy to clipboard operation
generate-package-json-webpack-plugin copied to clipboard

ts-node is included in package.json

Open Rush opened this issue 2 years ago • 0 comments

ts-node is used to build the code but not in runtime and yet this plugin finds it as a dependency.

GPJWP: Found external module: external commonjs "ts-node"

I added a console.log and this is what it says.

Module <ref *1> ExternalModule {
  dependencies: [
    StaticExportsDependency {
      _parentModule: [Circular *1],
      _parentDependenciesBlock: [Circular *1],
      _parentDependenciesBlockIndex: 0,
      weak: false,
      optional: false,
      _locSL: 0,
      _locSC: 0,
      _locEL: 0,
      _locEC: 0,
      _locI: undefined,
      _locN: undefined,
      _loc: undefined,
      exports: true,
      canMangle: false
    }
  ],
  blocks: [],
  parent: undefined,
  type: 'javascript/dynamic',
  context: null,
  layer: null,
  needId: true,
  debugId: 2336,
  resolveOptions: {},
  factoryMeta: undefined,
  useSourceMap: true,
  useSimpleSourceMap: false,
  _warnings: undefined,
  _errors: undefined,
  buildMeta: { async: false, exportsType: 'dynamic' },
  buildInfo: { strict: true, topLevelDeclarations: Set(0) {}, module: false },
  presentationalDependencies: undefined,
  codeGenerationDependencies: undefined,
  request: 'ts-node',
  externalType: 'commonjs',
  userRequest: 'ts-node'
}

Rush avatar Jul 15 '22 20:07 Rush