Skip to content

Commit

Permalink
more path updates
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Apr 2, 2024
1 parent e27c3b9 commit 451f2f1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/build/run_action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {spawnStream} from './spawn_stream.mjs';
const resolveActionPath = async actionPath => {
if (!actionPath) return '';

if (actionPath in JSON.parse(await readFile(path.resolve(getRootDir(), '../package.json'))).scripts) {
if (actionPath in JSON.parse(await readFile(path.resolve(getRootDir(), 'package.json'))).scripts) {
return actionPath;
}

Expand Down
4 changes: 2 additions & 2 deletions src/electron/connectivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

import * as dns from 'dns';

import {timeoutPromise} from '../infrastructure/timeout_promise';
import * as errors from '../www/model/errors';
import {timeoutPromise} from '../../client/src/infrastructure/timeout_promise';
import * as errors from '../../client/src/www/model/errors';

const DNS_LOOKUP_TIMEOUT_MS = 10000;

Expand Down
6 changes: 3 additions & 3 deletions src/electron/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import * as process from 'process';
import * as url from 'url';
import autoLaunch = require('auto-launch'); // tslint:disable-line

import * as errors from '../www/model/errors';
import * as errors from '../../client/src/www/model/errors';

import {ShadowsocksSessionConfig} from '../www/app/tunnel';
import {TunnelStatus} from '../www/app/tunnel';
import {ShadowsocksSessionConfig} from '../../client/src/www/app/tunnel';
import {TunnelStatus} from '../../client/src/www/app/tunnel';
import {GoVpnTunnel} from './go_vpn_tunnel';
import {installRoutingServices, RoutingDaemon} from './routing_service';
import {TunnelStore, SerializableTunnel} from './tunnel_store';
Expand Down
6 changes: 3 additions & 3 deletions src/electron/routing_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import {platform, userInfo} from 'os';
import * as path from 'path';
import * as sudo from 'sudo-prompt';

import {getAppPath} from '../infrastructure/electron/app_paths';
import {TunnelStatus} from '../www/app/tunnel';
import {ErrorCode, SystemConfigurationException} from '../www/model/errors';
import {getAppPath} from '../../client/src/infrastructure/electron/app_paths';
import {TunnelStatus} from '../../client/src/www/app/tunnel';
import {ErrorCode, SystemConfigurationException} from '../../client/src/www/model/errors';

const isLinux = platform() === 'linux';
const isWindows = platform() === 'win32';
Expand Down
2 changes: 1 addition & 1 deletion src/electron/tunnel_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as fs from 'fs';
import * as path from 'path';

import {ShadowsocksSessionConfig} from '../www/app/tunnel';
import {ShadowsocksSessionConfig} from '../../client/src/www/app/tunnel';

// Format to store a tunnel configuration.
export interface SerializableTunnel {
Expand Down
2 changes: 1 addition & 1 deletion src/electron/vpn_tunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import {TunnelStatus} from '../www/app/tunnel';
import {TunnelStatus} from '../../client/src/www/app/tunnel';

// Represents a VPN tunnel to a proxy server.
export interface VpnTunnel {
Expand Down

0 comments on commit 451f2f1

Please sign in to comment.