Node.js module for authenticating with the Steam auth server. Allows for generating refresh tokens and web auth cookies for use with steam-user and other packages.
When building a TypeScript project with steam-session as a dependency, the TypeScript compiler fails to find various type files referred to from steam-session/dist/protobuf-generated/types.d.ts. It seems like this could be fixed by changing the generated type files to refer to ../../dist/enums-steam/{whatever} instead of ../../src/enums-steam/{whatever}.
Versions
Version 16.20.0 of node, 1.2.1 of steam-session, 5.0.4 of typescript.
Screenshots and Error Logs
If applicable, add screenshots and error logs to help explain your problem.
node_modules/steam-session/dist/protobuf-generated/types.d.ts:2:35 - error TS2307: Cannot find module '../../src/enums-steam/EAuthSessionGuardType' or its corresponding type declarations.
2 import EAuthSessionGuardType from '../../src/enums-steam/EAuthSessionGuardType';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:3:41 - error TS2307: Cannot find module '../../src/enums-steam/EAuthSessionSecurityHistory' or its corresponding type declarations.
3 import EAuthSessionSecurityHistory from '../../src/enums-steam/EAuthSessionSecurityHistory';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:4:36 - error TS2307: Cannot find module '../../src/enums-steam/EAuthTokenPlatformType' or its corresponding type declarations.
4 import EAuthTokenPlatformType from '../../src/enums-steam/EAuthTokenPlatformType';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:5:36 - error TS2307: Cannot find module '../../src/enums-steam/EAuthTokenRevokeAction' or its corresponding type declarations.
5 import EAuthTokenRevokeAction from '../../src/enums-steam/EAuthTokenRevokeAction';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:6:29 - error TS2307: Cannot find module '../../src/enums-steam/EAuthTokenState' or its corresponding type declarations.
6 import EAuthTokenState from '../../src/enums-steam/EAuthTokenState';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:7:36 - error TS2307: Cannot find module '../../src/enums-steam/EBanContentCheckResult' or its corresponding type declarations.
7 import EBanContentCheckResult from '../../src/enums-steam/EBanContentCheckResult';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:8:33 - error TS2307: Cannot find module '../../src/enums-steam/EProtoClanEventType' or its corresponding type declarations.
8 import EProtoClanEventType from '../../src/enums-steam/EProtoClanEventType';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:9:21 - error TS2307: Cannot find module '../../src/enums-steam/EResult' or its corresponding type declarations.
9 import EResult from '../../src/enums-steam/EResult';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/steam-session/dist/protobuf-generated/types.d.ts:10:33 - error TS2307: Cannot find module '../../src/enums-steam/ESessionPersistence' or its corresponding type declarations.
10 import ESessionPersistence from '../../src/enums-steam/ESessionPersistence';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 9 errors in the same file, starting at: node_modules/steam-session/dist/protobuf-generated/types.d.ts:2
Describe the bug
When building a TypeScript project with
steam-session
as a dependency, the TypeScript compiler fails to find various type files referred to fromsteam-session/dist/protobuf-generated/types.d.ts
. It seems like this could be fixed by changing the generated type files to refer to../../dist/enums-steam/{whatever}
instead of../../src/enums-steam/{whatever}
.Versions
Version 16.20.0 of
node
, 1.2.1 ofsteam-session
, 5.0.4 oftypescript
.Screenshots and Error Logs
If applicable, add screenshots and error logs to help explain your problem.