Skip to content

Commit

Permalink
fix #1284: switch to vscode-nsfw
Browse files Browse the repository at this point in the history
Signed-off-by: akosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Jun 28, 2018
1 parent 6eb9f73 commit b56b7ac
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dev-packages/application-manager/src/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import cp = require('child_process');
export function rebuild(target: 'electron' | 'browser', modules: string[]) {
const nodeModulesPath = path.join(process.cwd(), 'node_modules');
const browserModulesPath = path.join(process.cwd(), '.browser_modules');
const modulesToProcess = modules || ['node-pty', 'nsfw', 'find-git-repositories'];
const modulesToProcess = modules || ['node-pty', 'vscode-nsfw', 'find-git-repositories'];

if (target === 'electron' && !fs.existsSync(browserModulesPath)) {
const dependencies: {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"inversify": "^4.2.0",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"nsfw": "^1.0.16",
"vscode-nsfw": "^1.0.17",
"perfect-scrollbar": "^1.3.0",
"reconnecting-websocket": "^3.0.7",
"reflect-metadata": "^0.1.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/node/logger-cli-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { injectable } from 'inversify';
import { LogLevel } from '../common/logger';
import { CliContribution } from './cli';
import * as fs from 'fs-extra';
import * as nsfw from 'nsfw';
import * as nsfw from 'vscode-nsfw';
import { Event, Emitter } from '../common/event';
import * as path from 'path';

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/typings/nsfw/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

declare module 'nsfw' {
declare module 'vscode-nsfw' {
function nsfw(dir: string, eventHandler: (events: nsfw.ChangeEvent[]) => void, options?: nsfw.Options): Promise<nsfw.NSFW>;

namespace nsfw {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
********************************************************************************/

import * as fs from "fs";
import * as nsfw from "nsfw";
import * as nsfw from "vscode-nsfw";
import * as paths from "path";
import { IMinimatch, Minimatch } from "minimatch";
import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6651,16 +6651,6 @@ npm-run-path@^2.0.0:
gauge "~2.7.3"
set-blocking "~2.0.0"

nsfw@^1.0.16:
version "1.0.16"
resolved "https://registry.yarnpkg.com/nsfw/-/nsfw-1.0.16.tgz#78ba3e7f513b53d160c221b9018e0baf108614cc"
dependencies:
fs-extra "^0.26.5"
lodash.isinteger "^4.0.4"
lodash.isundefined "^3.0.1"
nan "^2.0.0"
promisify-node "^0.3.0"

nugget@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/nugget/-/nugget-2.0.1.tgz#201095a487e1ad36081b3432fa3cada4f8d071b0"
Expand Down Expand Up @@ -9855,6 +9845,16 @@ vscode-languageserver@^3.4.3:
vscode-languageserver-protocol "3.5.1"
vscode-uri "^1.0.1"

vscode-nsfw@^1.0.17:
version "1.0.17"
resolved "https://registry.yarnpkg.com/vscode-nsfw/-/vscode-nsfw-1.0.17.tgz#da3820f26aea3a7e95cadc54bd9e5dae3d47e474"
dependencies:
fs-extra "^0.26.5"
lodash.isinteger "^4.0.4"
lodash.isundefined "^3.0.1"
nan "^2.0.0"
promisify-node "^0.3.0"

vscode-ripgrep@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/vscode-ripgrep/-/vscode-ripgrep-1.0.1.tgz#eff2f2b2a49921ac0acd3ff8dfecaaeebf0184cf"
Expand Down

0 comments on commit b56b7ac

Please sign in to comment.