Skip to content

fix: deal with esm support due to added Angular module support #139

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

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "ng test",
"lint": "ng lint",
"e2e": "cypress open",
"build-content": "ts-node ./tools/build-checklist.ts",
"build-content": "tsx ./tools/build-checklist.ts",
"build-content:watch": "nodemon",
"ci": "npm run build-content && ng build",
"format:base": "prettier \"{src,tools,cypress}/**/*{.ts,.js,.json,.scss,.html}\"",
Expand All @@ -17,7 +17,7 @@
},
"packageManager": "yarn@1.22.19",
"engines": {
"node": "18"
"node": "18 || 20"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -104,7 +104,7 @@
"prettier": "^1.15.2",
"shorthash": "^0.0.2",
"ts-loader": "^5.3.1",
"ts-node": "~8.3.0",
"tsx": "^4.15.6",
"typescript": "~5.3.3"
}
}
2 changes: 1 addition & 1 deletion tools/markdown.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as MarkdownIt from 'markdown-it';
import MarkdownIt from 'markdown-it';
import hljs from 'highlight.js';

export const convertHeadingsPlugin = (md, options) => {
Expand Down
2 changes: 1 addition & 1 deletion tools/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { existsSync, mkdirSync, readFileSync, readdir, writeFileSync } from 'fs'
import { dirname, join, parse } from 'path';
import { convertHeadingsPlugin, markdown } from './markdown';
import { FrontMatter } from './models';
import * as matter from 'gray-matter';
import matter from 'gray-matter';
import { unique } from 'shorthash';

markdown.use(convertHeadingsPlugin);
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"es2020",
"dom"
],
"useDefineForClassFields": false
"useDefineForClassFields": false,
"allowSyntheticDefaultImports": true
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
Loading