Skip to content

Commit 5f092e1

Browse files
committed
Remove requirement to have absolute version of dependency before fetching types
1 parent c435a7b commit 5f092e1

File tree

1 file changed

+1
-3
lines changed
  • packages/app/src/app/overmind/effects/vscode/SandboxFsSync

1 file changed

+1
-3
lines changed

packages/app/src/app/overmind/effects/vscode/SandboxFsSync/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
Sandbox,
1212
SandboxFs,
1313
} from '@codesandbox/common/lib/types';
14-
import { isAbsoluteVersion } from '@codesandbox/common/lib/utils/dependencies';
1514
import { getGlobal } from '@codesandbox/common/lib/utils/global';
1615
import { protocolAndHost } from '@codesandbox/common/lib/utils/url-generator';
1716
import { getSavedCode } from 'app/overmind/utils/sandbox';
@@ -364,8 +363,7 @@ class SandboxFsSync {
364363
if (
365364
autoInstallTypes &&
366365
this.typesInfo[dep.name] &&
367-
!dep.name.startsWith('@types/') &&
368-
isAbsoluteVersion(dep.version)
366+
!dep.name.startsWith('@types/')
369367
) {
370368
const name = `@types/${dep.name}`;
371369
this.fetchDependencyTypingFiles(name, this.typesInfo[dep.name].latest)

0 commit comments

Comments
 (0)