generate-package-json-webpack-plugin
generate-package-json-webpack-plugin copied to clipboard
ts-node is included in package.json
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'
}