-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Node and dependent packages to the latest version #198
Conversation
A bumped Marp Core v1.0.0 seems not to work.
Same issue has reported to marp-team/marp-react#19 by user. |
@@ -4,8 +4,12 @@ import resolve from '../src/engine' | |||
describe('Engine', () => { | |||
describe('.resolve', () => { | |||
it('returns ResolvedEngine class with resolved class', async () => { | |||
expect((await resolve(Marp)).klass).toBe(Marp) | |||
expect((await resolve('@marp-team/marp-core')).klass.name).toBe('Marp') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of Marp
class provided by Marp Core v1.0.1 has applied minification by bumped terser.
Marp CLI will use name defined in package.json
but won't use engine name. We updated test case, to confirm matching a resolved class with imported Marp Core.
@@ -125,7 +125,8 @@ export class ThemeSet { | |||
const fnForWatch: Set<string> = new Set(found.map(f => path.resolve(f))) | |||
|
|||
for (const f of fn) { | |||
if (!hasMagic(f)) { | |||
// globby's hasMagic (backed by fast-glob) always recognizes "\\" (Windows path separator) as the escape character. | |||
if (!hasMagic(f.split(path.sep).join('/'))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
globby v11 provides hasMagic()
backed by fast-glob
instead of node-glob
. fast-glob
will recognize \
(Windows path separator) as a magic character for escape, so we have to normalize it for watching theme directory correctly.
This PR will upgrade Node LTS and dependent packages to the latest version via
yarn upgrade --latest
.Notable changes
Node
Dependent packages
rollup-plugin-commonjs
=>@rollup/plugin-commonjs
rollup-plugin-typescript
=>@rollup/plugin-typescript