Description: This sets the types root to dist/index.d.ts. Previously, the types root pointed to dist/app.d.ts, which prevented GoFSH from being imported property in other applications.
Testing Instructions:
Repro the problem:
Download the attached simple TS project that imports GoFSH: ts-project.zip
Unzip it and run npm install
Run npm run build and observe compile errors
Test the solution:
Check out the branch from this PR
Run npm pack to create the module file gofsh-2.3.1.tgz
Copy gofsh-2.3.1.tgz to the simple TS project you downloaded
In that simple TS project, run npm install --save file:gofsh-2.3.1.tgz
Run npm run build and observe that it builds cleanly
Description: This sets the types root to
dist/index.d.ts
. Previously, the types root pointed todist/app.d.ts
, which prevented GoFSH from being imported property in other applications.Testing Instructions: Repro the problem:
npm install
npm run build
and observe compile errorsTest the solution:
npm pack
to create the module filegofsh-2.3.1.tgz
gofsh-2.3.1.tgz
to the simple TS project you downloadednpm install --save file:gofsh-2.3.1.tgz
npm run build
and observe that it builds cleanlyRelated Issue: Discovered and discussed in FSH VS Code PR #97