From 8c47e7587298b860c940b98571b6cf4702650af6 Mon Sep 17 00:00:00 2001 From: Nico Jansen Date: Tue, 9 Jul 2019 07:28:52 +0200 Subject: [PATCH] build(ts): update to latest ts release Issue https://github.com/microsoft/TypeScript/issues/31676 got fixed and released in ts 3.5.3. --- package.json | 2 +- packages/api/package.json | 82 ++++++------- packages/api/src/plugin/Plugins.ts | 10 +- packages/core/package.json | 2 +- packages/core/src/Stryker.ts | 6 +- packages/core/src/di/PluginCreator.ts | 4 +- packages/core/src/di/PluginLoader.ts | 6 +- packages/core/src/di/factoryMethods.ts | 2 +- .../core/src/initializer/StrykerInquirer.ts | 6 +- .../src/initializer/presets/ReactPreset.ts | 2 +- .../src/initializer/presets/VueJsPreset.ts | 4 +- .../transpiler/MutantTranspileScheduler.ts | 2 +- .../initializer/StrykerInitializer.spec.ts | 6 +- packages/javascript-mutator/package.json | 101 ++++++++-------- packages/mocha-runner/package.json | 90 +++++++-------- .../vue-mutator/src/helpers/MutatorHelpers.ts | 4 +- packages/webpack-transpiler/package.json | 109 ++++++++---------- workspace.code-workspace | 2 +- 18 files changed, 210 insertions(+), 230 deletions(-) diff --git a/package.json b/package.json index 21c8a3a868..5f71aba9e0 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "sinon-chai": "^3.2.0", "source-map-support": "^0.5.6", "tslint": "~5.17.0", - "typescript": "~3.5.2" + "typescript": "~3.5.3" }, "prettier": { "singleQuote": true diff --git a/packages/api/package.json b/packages/api/package.json index f2a5af1051..7120d6afa7 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,43 +1,43 @@ { - "name": "@stryker-mutator/api", - "version": "2.0.0", - "description": "The api for the extendable JavaScript mutation testing framework Stryker", - "repository": { - "type": "git", - "url": "https://github.com/stryker-mutator/stryker" - }, - "keywords": [ - "mutation testing", - "mutation", - "testing", - "test", - "js", - "stryker" - ], - "publishConfig": { - "access": "public" - }, - "contributors": [ - "nicojs ", - "Alex van Assem ", - "Jeremy Nagel ", - "Philipp Weissenbacher ", - "Simon de Lang " - ], - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/stryker-mutator/stryker/issues" - }, - "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/api#readme", - "engines": { - "node": ">=8" - }, - "dependencies": { - "mutation-testing-report-schema": "^1.0.0", - "tslib": "~1.10.0" - }, - "devDependencies": { - "surrial": "~1.0.0", - "typed-inject": "~2.0.0" - } + "name": "@stryker-mutator/api", + "version": "2.0.0", + "description": "The api for the extendable JavaScript mutation testing framework Stryker", + "repository": { + "type": "git", + "url": "https://github.com/stryker-mutator/stryker" + }, + "keywords": [ + "mutation testing", + "mutation", + "testing", + "test", + "js", + "stryker" + ], + "publishConfig": { + "access": "public" + }, + "contributors": [ + "nicojs ", + "Alex van Assem ", + "Jeremy Nagel ", + "Philipp Weissenbacher ", + "Simon de Lang " + ], + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/stryker-mutator/stryker/issues" + }, + "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/api#readme", + "engines": { + "node": ">=8" + }, + "dependencies": { + "mutation-testing-report-schema": "^1.0.0", + "tslib": "~1.10.0" + }, + "devDependencies": { + "surrial": "~1.0.0", + "typed-inject": "~2.0.0" + } } diff --git a/packages/api/src/plugin/Plugins.ts b/packages/api/src/plugin/Plugins.ts index 16bcf641ea..521b5ec8f8 100644 --- a/packages/api/src/plugin/Plugins.ts +++ b/packages/api/src/plugin/Plugins.ts @@ -11,8 +11,8 @@ import { PluginKind } from './PluginKind'; /** * Represents a StrykerPlugin */ -export type Plugin[]> = - FactoryPlugin | ClassPlugin; +export type Plugin = + FactoryPlugin[]> | ClassPlugin[]>; /** * Represents a plugin that is created with a factory method @@ -32,6 +32,10 @@ export interface FactoryPlugin[]> { readonly kind: TPluginKind; readonly name: string; + /** + * The prototype function (class) used to create the plugin. + * Not called `class` here, because that is a keyword + */ readonly injectableClass: InjectableClass; } @@ -81,7 +85,7 @@ export interface PluginInterfaces { * Lookup type for plugins by kind. */ export type Plugins = { - [TPluginKind in keyof PluginInterfaces]: Plugin[]>; + [TPluginKind in keyof PluginInterfaces]: Plugin; }; /** diff --git a/packages/core/package.json b/packages/core/package.json index 1c2f330613..2953d6bd29 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -79,7 +79,7 @@ "devDependencies": { "@stryker-mutator/api": "^0.24.1", "@stryker-mutator/test-helpers": "^2.0.0", - "@types/inquirer": "~6.0.0", + "@types/inquirer": "~6.0.2", "@types/istanbul-lib-instrument": "~1.7.0", "@types/node": "~10.11.4", "@types/progress": "~2.0.1", diff --git a/packages/core/src/Stryker.ts b/packages/core/src/Stryker.ts index 8776729f9f..af83d09d52 100644 --- a/packages/core/src/Stryker.ts +++ b/packages/core/src/Stryker.ts @@ -88,11 +88,11 @@ export default class Stryker { await this.logDone(); return mutantResults; } else { - this.logRemark(); + this.logTraceLogLevelHint(); } } finally { // `injector.dispose` calls `dispose` on all created instances - // Namely the `SandboxPool` and the `ChildProcessProxy` instances + // Namely the `SandboxPool`, `MutantTranspileScheduler` and `ChildProcessProxy` instances await mutationTestProcessInjector.dispose(); await LogConfigurator.shutdown(); } @@ -104,7 +104,7 @@ export default class Stryker { this.log.info('Done in %s.', this.timer.humanReadableElapsed()); } - private logRemark() { + private logTraceLogLevelHint() { if (!this.log.isTraceEnabled()) { this.log.info('Trouble figuring out what went wrong? Try `npx stryker run --fileLogLevel trace --logLevel debug` to get some more info.'); } diff --git a/packages/core/src/di/PluginCreator.ts b/packages/core/src/di/PluginCreator.ts index 725bd26dd7..1db5ac98aa 100644 --- a/packages/core/src/di/PluginCreator.ts +++ b/packages/core/src/di/PluginCreator.ts @@ -20,11 +20,11 @@ export class PluginCreator { } } - private isFactoryPlugin(plugin: Plugin[]>): + private isFactoryPlugin(plugin: Plugin): plugin is FactoryPlugin[]> { return !!(plugin as FactoryPlugin[]>).factory; } - private isClassPlugin(plugin: Plugin[]>): + private isClassPlugin(plugin: Plugin): plugin is ClassPlugin[]> { return !!(plugin as ClassPlugin[]>).injectableClass; } diff --git a/packages/core/src/di/PluginLoader.ts b/packages/core/src/di/PluginLoader.ts index 13573911bc..fd4f9c1964 100644 --- a/packages/core/src/di/PluginLoader.ts +++ b/packages/core/src/di/PluginLoader.ts @@ -10,11 +10,11 @@ import * as coreTokens from './coreTokens'; const IGNORED_PACKAGES = ['core', 'api', 'util']; interface PluginModule { - strykerPlugins: Plugin[]; + strykerPlugins: Plugin[]; } export class PluginLoader implements PluginResolver { - private readonly pluginsByKind: Map[]> = new Map(); + private readonly pluginsByKind: Map[]> = new Map(); public static inject = tokens(commonTokens.logger, coreTokens.pluginDescriptors); constructor(private readonly log: Logger, private readonly pluginDescriptors: ReadonlyArray) { } @@ -97,7 +97,7 @@ export class PluginLoader implements PluginResolver { } } - private loadPlugin(plugin: Plugin) { + private loadPlugin(plugin: Plugin) { let plugins = this.pluginsByKind.get(plugin.kind); if (!plugins) { plugins = []; diff --git a/packages/core/src/di/factoryMethods.ts b/packages/core/src/di/factoryMethods.ts index b219b80232..17e36e0834 100644 --- a/packages/core/src/di/factoryMethods.ts +++ b/packages/core/src/di/factoryMethods.ts @@ -28,4 +28,4 @@ export function optionsFactory(config: Config, configEditorApplier: ConfigEditor configEditorApplier.edit(config); return freezeRecursively(config); } -optionsFactory.inject = tokens(coreTokens.configReadFromConfigFile, coreTokens.configEditorApplier); +optionsFactory.inject = tokens<[typeof coreTokens.configReadFromConfigFile, typeof coreTokens.configEditorApplier]>(coreTokens.configReadFromConfigFile, coreTokens.configEditorApplier); diff --git a/packages/core/src/initializer/StrykerInquirer.ts b/packages/core/src/initializer/StrykerInquirer.ts index 12648ff230..1f0a5c1bd6 100644 --- a/packages/core/src/initializer/StrykerInquirer.ts +++ b/packages/core/src/initializer/StrykerInquirer.ts @@ -11,7 +11,7 @@ export interface PromptResult { export class StrykerInquirer { public async promptPresets(options: Preset[]): Promise { - const choices: inquirer.ChoiceType[] = options.map(_ => _.name); + const choices: inquirer.ChoiceType[] = options.map(_ => _.name); choices.push(new inquirer.Separator()); choices.push('None/other'); const answers = await inquirer.prompt<{ preset: string }>({ @@ -24,7 +24,7 @@ export class StrykerInquirer { } public async promptTestRunners(options: PromptOption[]): Promise { - const choices: inquirer.ChoiceType[] = options.map(_ => _.name); + const choices: inquirer.ChoiceType[] = options.map(_ => _.name); choices.push(new inquirer.Separator()); choices.push(CommandTestRunner.runnerName); const answers = await inquirer.prompt<{ testRunner: string }>({ @@ -34,7 +34,7 @@ export class StrykerInquirer { name: 'testRunner', type: 'list' }); - return options.filter(_ => _.name === answers.testRunner)[0] || { name: CommandTestRunner.runnerName }; + return options.filter(_ => _.name === answers.testRunner)[0] || { name: CommandTestRunner.runnerName, pkg: null }; } public async promptTestFrameworks(options: PromptOption[]): Promise { diff --git a/packages/core/src/initializer/presets/ReactPreset.ts b/packages/core/src/initializer/presets/ReactPreset.ts index 2601b2d027..00e73d9361 100644 --- a/packages/core/src/initializer/presets/ReactPreset.ts +++ b/packages/core/src/initializer/presets/ReactPreset.ts @@ -39,7 +39,7 @@ export class ReactPreset implements Preset { }`; public async createConfig(): Promise { - const choices: inquirer.ChoiceType[] = ['JSX', 'TSX']; + const choices: inquirer.ChoiceType[] = ['JSX', 'TSX']; const answers = await inquirer.prompt<{ choice: string }>({ choices, message: 'Is your project a JSX project or a TSX project?', diff --git a/packages/core/src/initializer/presets/VueJsPreset.ts b/packages/core/src/initializer/presets/VueJsPreset.ts index 26d1030d70..9cfcca4b02 100644 --- a/packages/core/src/initializer/presets/VueJsPreset.ts +++ b/packages/core/src/initializer/presets/VueJsPreset.ts @@ -44,14 +44,14 @@ export class VueJsPreset implements Preset { }`; public async createConfig(): Promise { - const testRunnerChoices: inquirer.ChoiceType[] = ['karma', 'jest']; + const testRunnerChoices: inquirer.ChoiceType[] = ['karma', 'jest']; const testRunnerAnswers = await inquirer.prompt<{ testRunner: string }>({ choices: testRunnerChoices, message: 'Which test runner do you want to use?', name: 'testRunner', type: 'list' }); - const scriptChoices: inquirer.ChoiceType[] = ['typescript', 'javascript']; + const scriptChoices: inquirer.ChoiceType[] = ['typescript', 'javascript']; const scriptAnswers = await inquirer.prompt<{ script: string }>({ choices: scriptChoices, message: 'Which language does your project use?', diff --git a/packages/core/src/transpiler/MutantTranspileScheduler.ts b/packages/core/src/transpiler/MutantTranspileScheduler.ts index 3d286b0c08..cfad24539d 100644 --- a/packages/core/src/transpiler/MutantTranspileScheduler.ts +++ b/packages/core/src/transpiler/MutantTranspileScheduler.ts @@ -25,7 +25,7 @@ export class MutantTranspileScheduler implements Disposable { /** * Creates a mutant transpiler */ - constructor(private readonly transpiler: Transpiler & Disposable, private readonly unMutatedFiles: ReadonlyArray) { } + constructor(private readonly transpiler: Transpiler, private readonly unMutatedFiles: ReadonlyArray) { } public scheduleTranspileMutants(allMutants: ReadonlyArray): Observable { return from(allMutants).pipe( diff --git a/packages/core/test/unit/initializer/StrykerInitializer.spec.ts b/packages/core/test/unit/initializer/StrykerInitializer.spec.ts index 1e3b41f7b4..6a5f3e90d9 100644 --- a/packages/core/test/unit/initializer/StrykerInitializer.spec.ts +++ b/packages/core/test/unit/initializer/StrykerInitializer.spec.ts @@ -93,14 +93,14 @@ describe(StrykerInitializer.name, () => { }); await sut.initialize(); expect(inquirerPrompt).callCount(7); - const [promptPreset, promptTestRunner, promptTestFramework, promptMutator, promptPackageManagers]: inquirer.ListQuestion[] = [ + const [promptPreset, promptTestRunner, promptTestFramework, promptMutator, promptPackageManagers]: inquirer.Question[] = [ inquirerPrompt.getCall(0).args[0], inquirerPrompt.getCall(1).args[0], inquirerPrompt.getCall(2).args[0], inquirerPrompt.getCall(3).args[0], inquirerPrompt.getCall(6).args[0], ]; - const [promptTranspilers, promptReporters]: inquirer.CheckboxQuestion[] = [ + const [promptTranspilers, promptReporters]: inquirer.Question[] = [ inquirerPrompt.getCall(4).args[0], inquirerPrompt.getCall(5).args[0], ]; @@ -198,7 +198,7 @@ describe(StrykerInitializer.name, () => { }); await sut.initialize(); expect(inquirerPrompt).callCount(2); - const [promptPreset, promptPackageManager]: inquirer.ListQuestion[] = [ + const [promptPreset, promptPackageManager]: inquirer.Question[] = [ inquirerPrompt.getCall(0).args[0], inquirerPrompt.getCall(1).args[0] ]; diff --git a/packages/javascript-mutator/package.json b/packages/javascript-mutator/package.json index 6ffc0cf958..52b78001ad 100644 --- a/packages/javascript-mutator/package.json +++ b/packages/javascript-mutator/package.json @@ -1,57 +1,48 @@ { - "name": "@stryker-mutator/javascript-mutator", - "version": "2.0.0", - "description": "A plugin for javascript projects using Stryker", - "main": "src/index.js", - "scripts": { - "start": "tsc -w", - "clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" reports", - "test": "nyc --exclude-after-remap=false --check-coverage --reporter=html --report-dir=reports/coverage --lines 85 --functions 90 --branches 60 npm run mocha", - "mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" \"test/integration/**/*.js\"" - }, - "repository": { - "type": "git", - "url": "https://github.com/stryker-mutator/stryker" - }, - "engines": { - "node": ">=8" - }, - "keywords": [ - "stryker", - "javascript", - "@stryker-mutator/mutator-plugin" - ], - "publishConfig": { - "access": "public" - }, - "bugs": { - "url": "https://github.com/stryker-mutator/stryker/issues" - }, - "author": "Simon de Lang ", - "contributors": [ - "Nico Jansen ", - "Niek te Grootenhuis ", - "Thomas Peters ", - "Sander Koenders " - ], - "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/javascript-mutator#readme", - "license": "Apache-2.0", - "dependencies": { - "@babel/generator": "~7.4.0", - "@babel/parser": "~7.4.0", - "@babel/traverse": "~7.4.0", - "@stryker-mutator/api": "^2.0.0", - "lodash": "~4.17.4", - "tslib": "~1.10.0" - }, - "peerDependencies": { - "@stryker-mutator/core": "^2.0.0" - }, - "devDependencies": { - "@babel/types": "~7.4.0", - "@stryker-mutator/mutator-specification": "^2.0.0", - "@stryker-mutator/test-helpers": "^2.0.0", - "@types/babel__generator": "^7.0.0", - "@types/babel__traverse": "^7.0.0" - } + "name": "@stryker-mutator/javascript-mutator", + "version": "2.0.0", + "description": "A plugin for javascript projects using Stryker", + "main": "src/index.js", + "repository": { + "type": "git", + "url": "https://github.com/stryker-mutator/stryker" + }, + "engines": { + "node": ">=8" + }, + "keywords": [ + "stryker", + "javascript", + "@stryker-mutator/mutator-plugin" + ], + "publishConfig": { + "access": "public" + }, + "bugs": { + "url": "https://github.com/stryker-mutator/stryker/issues" + }, + "author": "Simon de Lang ", + "contributors": [ + "Nico Jansen ", + "Niek te Grootenhuis ", + "Thomas Peters ", + "Sander Koenders " + ], + "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/javascript-mutator#readme", + "license": "Apache-2.0", + "dependencies": { + "@babel/generator": "~7.4.0", + "@babel/parser": "~7.4.0", + "@babel/traverse": "~7.4.0", + "lodash": "~4.17.4", + "tslib": "~1.10.0" + }, + "peerDependencies": { + "@stryker-mutator/core": "^2.0.0" + }, + "devDependencies": { + "@babel/types": "~7.4.0", + "@types/babel__generator": "^7.0.0", + "@types/babel__traverse": "^7.0.0" + } } diff --git a/packages/mocha-runner/package.json b/packages/mocha-runner/package.json index 4e90746c84..042590ccb4 100644 --- a/packages/mocha-runner/package.json +++ b/packages/mocha-runner/package.json @@ -1,51 +1,43 @@ { - "name": "@stryker-mutator/mocha-runner", - "version": "2.0.0", - "description": "A plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework", - "main": "src/index.js", - "scripts": { - "start": "tsc -w", - "clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" .nyc_output reports coverage", - "test": "nyc --exclude-after-remap=false --check-coverage --reporter=html --report-dir=reports/coverage --lines 80 --functions 80 --branches 75 npm run mocha", - "mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 10000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\"" - }, - "repository": { - "type": "git", - "url": "https://github.com/stryker-mutator/stryker" - }, - "engines": { - "node": ">=8" - }, - "keywords": [ - "stryker", - "mocha", - "@stryker-mutator/test-runner-plugin" - ], - "publishConfig": { - "access": "public" - }, - "author": "Simon de Lang ", - "contributors": [ - "Nico Jansen ", - "Simon de Lang " - ], - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/stryker-mutator/stryker/issues" - }, - "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/mocha-runner#readme", - "dependencies": { - "@stryker-mutator/api": "^2.0.0", - "multimatch": "~4.0.0", - "tslib": "~1.10.0" - }, - "devDependencies": { - "@stryker-mutator/test-helpers": "^2.0.0", - "@types/multimatch": "~2.1.2", - "stryker-mocha-framework": "^0.15.1" - }, - "peerDependencies": { - "@stryker-mutator/core": "^2.0.0", - "mocha": ">= 2.3.3 < 7" - } + "name": "@stryker-mutator/mocha-runner", + "version": "2.0.0", + "description": "A plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework", + "main": "src/index.js", + "repository": { + "type": "git", + "url": "https://github.com/stryker-mutator/stryker" + }, + "engines": { + "node": ">=8" + }, + "keywords": [ + "stryker", + "mocha", + "@stryker-mutator/test-runner-plugin" + ], + "publishConfig": { + "access": "public" + }, + "author": "Simon de Lang ", + "contributors": [ + "Nico Jansen ", + "Simon de Lang " + ], + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/stryker-mutator/stryker/issues" + }, + "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/mocha-runner#readme", + "dependencies": { + "multimatch": "~4.0.0", + "tslib": "~1.10.0" + }, + "devDependencies": { + "@types/multimatch": "~2.1.2", + "stryker-mocha-framework": "^0.15.1" + }, + "peerDependencies": { + "@stryker-mutator/core": "^2.0.0", + "mocha": ">= 2.3.3 < 7" + } } diff --git a/packages/vue-mutator/src/helpers/MutatorHelpers.ts b/packages/vue-mutator/src/helpers/MutatorHelpers.ts index 03c9a7e4bd..ce2c5f7261 100644 --- a/packages/vue-mutator/src/helpers/MutatorHelpers.ts +++ b/packages/vue-mutator/src/helpers/MutatorHelpers.ts @@ -15,7 +15,7 @@ export function mutatorsFactory(pluginResolver: PluginResolver, injector: Inject return mutators; } -function createPlugin(injector: Injector, plugin: Plugin[]>): Mutator { +function createPlugin(injector: Injector, plugin: Plugin): Mutator { if (isFactoryPlugin(plugin)) { return injector.injectFunction(plugin.factory); } else { @@ -23,7 +23,7 @@ function createPlugin(injector: Injector, plugin: Plugin[]>): +function isFactoryPlugin(plugin: Plugin): plugin is FactoryPlugin[]> { return !!(plugin as FactoryPlugin[]>).factory; } diff --git a/packages/webpack-transpiler/package.json b/packages/webpack-transpiler/package.json index 09b0d2f768..1e7d19bf23 100644 --- a/packages/webpack-transpiler/package.json +++ b/packages/webpack-transpiler/package.json @@ -1,60 +1,53 @@ { - "name": "@stryker-mutator/webpack-transpiler", - "version": "2.0.0", - "description": "A plugin for Webpack-based projects using Stryker", - "main": "src/index.js", - "scripts": { - "test": "nyc --exclude-after-remap=false --check-coverage --reporter=html --report-dir=reports/coverage --lines 85 --functions 84 --branches 65 npm run mocha", - "mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 20000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\"", - "@stryker-mutator/core": "node ../stryker/bin/stryker run" - }, - "repository": { - "type": "git", - "url": "https://github.com/stryker-mutator/stryker" - }, - "engines": { - "node": ">=8" - }, - "keywords": [ - "stryker", - "typescript", - "webpack", - "@stryker-mutator/transpiler-plugin" - ], - "publishConfig": { - "access": "public" - }, - "author": "Sander koenders ", - "contributors": [ - "Simon de Lang ", - "Nico Jansen " - ], - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/stryker-mutator/stryker/issues" - }, - "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/webpack-transpiler#readme", - "devDependencies": { - "@stryker-mutator/test-helpers": "^2.0.0", - "@types/memory-fs": "~0.3.0", - "@types/webpack": "~4.4.12", - "raw-loader": "~3.0.0", - "webpack": "~4.34.0" - }, - "peerDependencies": { - "@stryker-mutator/core": "^2.0.0", - "webpack": ">=2.0.0" - }, - "dependencies": { - "@stryker-mutator/api": "^2.0.0", - "enhanced-resolve": "~4.1.0", - "lodash": "~4.17.4", - "memory-fs": "~0.4.1" - }, - "initStrykerConfig": { - "webpack": { - "configFile": "webpack.config.js" - }, - "coverageAnalysis": "off" - } + "name": "@stryker-mutator/webpack-transpiler", + "version": "2.0.0", + "description": "A plugin for Webpack-based projects using Stryker", + "main": "src/index.js", + "repository": { + "type": "git", + "url": "https://github.com/stryker-mutator/stryker" + }, + "engines": { + "node": ">=8" + }, + "keywords": [ + "stryker", + "typescript", + "webpack", + "@stryker-mutator/transpiler-plugin" + ], + "publishConfig": { + "access": "public" + }, + "author": "Sander koenders ", + "contributors": [ + "Simon de Lang ", + "Nico Jansen " + ], + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/stryker-mutator/stryker/issues" + }, + "homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/webpack-transpiler#readme", + "devDependencies": { + "@types/memory-fs": "~0.3.0", + "@types/webpack": "~4.4.12", + "raw-loader": "~3.0.0", + "webpack": "~4.34.0" + }, + "peerDependencies": { + "@stryker-mutator/core": "^2.0.0", + "webpack": ">=2.0.0" + }, + "dependencies": { + "enhanced-resolve": "~4.1.0", + "lodash": "~4.17.4", + "memory-fs": "~0.4.1" + }, + "initStrykerConfig": { + "webpack": { + "configFile": "webpack.config.js" + }, + "coverageAnalysis": "off" + } } diff --git a/workspace.code-workspace b/workspace.code-workspace index 08604680f9..a3df5b9a5a 100644 --- a/workspace.code-workspace +++ b/workspace.code-workspace @@ -69,7 +69,7 @@ } ], "settings": { - "typescript.tsdk": "..\\..\\node_modules\\typescript\\lib", + "typescript.tsdk": "node_modules\\typescript\\lib", "files.exclude": { ".git": true, ".tscache": true,