Skip to content

Commit b3b0928

Browse files
committed
Updated several path references to be relative
1 parent f8d7ea5 commit b3b0928

File tree

9 files changed

+13
-16
lines changed

9 files changed

+13
-16
lines changed

src/env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { NodeBufferProvider } from '../src/providers/node/buffer/buffer';
77
import {
88
InteractionProviderFileProperties,
99
InteractionProviderFolderProperties
10-
} from 'src/providers/ror2/system/InteractionProvider';
10+
} from './providers/ror2/system/InteractionProvider';
1111

1212
declare namespace NodeJS {
1313
interface ProcessEnv {

src/utils/UrlUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CdnDefinition } from 'src/providers/cdn/CdnHostList';
1+
import { CdnDefinition } from '../providers/cdn/CdnHostList';
22

33
/**
44
* Append given search parameters to an URL which may or may not already

test/vitest/stubs/providers/SettingsRedirectGameDirectoryResolver.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import GameDirectoryResolverProvider from 'src/providers/ror2/game/GameDirectoryResolverProvider';
2-
import R2Error from 'src/model/errors/R2Error';
3-
import Game from 'src/model/game/Game';
4-
import ManagerSettings from 'src/r2mm/manager/ManagerSettings';
5-
import GameManager from 'src/model/game/GameManager';
6-
import Profile from 'src/model/Profile';
1+
import GameDirectoryResolverProvider from '../../../../src/providers/ror2/game/GameDirectoryResolverProvider';
2+
import R2Error from '../../../../src/model/errors/R2Error';
3+
import Game from '../../../../src/model/game/Game';
74

85
export default class SettingsRedirectGameDirectoryResolver extends GameDirectoryResolverProvider {
96

test/vitest/stubs/providers/node/Node.Path.Provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {NodePathProvider} from "src/providers/node/path/path";
2-
import path from "node:path";
1+
import {NodePathProvider} from "../../../../../src/providers/node/path/path";
2+
import path from "path";
33

44
export const TestPathProvider = {
55
join: (...paths: string[]) => path.join(...paths),

test/vitest/stubs/providers/stub.FsProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import FsProvider from 'src/providers/generic/file/FsProvider';
2-
import StatInterface from 'src/providers/generic/file/StatInterface';
1+
import FsProvider from '../../../../src/providers/generic/file/FsProvider';
2+
import StatInterface from '../../../../src/providers/generic/file/StatInterface';
33

44
export default class StubFsProvider extends FsProvider {
55

test/vitest/stubs/providers/stub.InteractionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import InteractionProvider, {
22
InteractionProviderFileProperties,
33
InteractionProviderFolderProperties
4-
} from 'src/providers/ror2/system/InteractionProvider';
4+
} from '../../../../src/providers/ror2/system/InteractionProvider';
55

66
export default class StubInteractionProvider extends InteractionProvider {
77

test/vitest/stubs/providers/stub.LinkProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import LinkProvider from 'src/providers/components/LinkProvider';
1+
import LinkProvider from '../../../../src/providers/components/LinkProvider';
22

33
export default class StubLinkProvider extends LinkProvider {
44

test/vitest/stubs/providers/stub.ProfileProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ProfileProvider from 'src/providers/ror2/model_implementation/ProfileProvider';
1+
import ProfileProvider from '../../../../src/providers/ror2/model_implementation/ProfileProvider';
22

33
export default class StubProfileProvider extends ProfileProvider {
44

test/vitest/tests/unit/MelonLoader/state.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Sinon from 'sinon';
22
import TestSetup from '../../test-setup';
33
import ManifestV2 from '../../../../../src/model/ManifestV2';
44
import VersionNumber from '../../../../../src/model/VersionNumber';
5-
import Profile, { ImmutableProfile } from 'src/model/Profile';
5+
import Profile, { ImmutableProfile } from '../../../../../src/model/Profile';
66
import FsProvider from '../../../../../src/providers/generic/file/FsProvider';
77
import ProfileProvider from '../../../../../src/providers/ror2/model_implementation/ProfileProvider';
88
import yaml from 'yaml';

0 commit comments

Comments
 (0)