v2.2.5
What's Changed
All imports should now work nominally 🎉
- use
from 'inkjs'
orrequire('inkjs')
to import only Story and Inklist (pure-player) - use
from 'inkjs/full'
orrequire('inkjs/full')
: same as above + Compiler and associated utils in javascript - use
from 'inkjs/types'
in typescript to have everything correctly typed - if you need a specific class, you can
import {Thing} from 'inkjs/compiler/Deeply/Nested/Thing'
Also :
- Updated documentation
inkjs-compiler
is now declared as a bin script allowingnpx inkjs
to work- New templates for typescript project and updated ink.js file in browser templates
- Fixed arguments error reporting by @floriancargoet in #1066
- Update README.md with imports by @smwhr in #1071
- Upgrade TypeScript to v5 by @maetl in #1053
Full Changelog: v2.2.4...v2.2.5