-
Notifications
You must be signed in to change notification settings - Fork 0
Create separate jekyll ts #11
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export {}; | ||
| //# sourceMappingURL=article.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,18 @@ | ||||||
| { | ||||||
| "name": "ts", | ||||||
| "version": "1.0.0", | ||||||
| "description": "", | ||||||
| "main": "index.js", | ||||||
| "scripts": { | ||||||
| "test": "echo \"Error: no test specified\" && exit 1" | ||||||
| }, | ||||||
| "keywords": [], | ||||||
| "author": "", | ||||||
| "license": "ISC", | ||||||
| "type": "commonjs", | ||||||
|
||||||
| "type": "commonjs", | |
| "type": "module", |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,44 @@ | ||||||
| { | ||||||
| // Visit https://aka.ms/tsconfig to read more about this file | ||||||
| "compilerOptions": { | ||||||
| // File Layout | ||||||
| // "rootDir": "./src", | ||||||
| "outDir": "../js", | ||||||
|
|
||||||
| // Environment Settings | ||||||
| // See also https://aka.ms/tsconfig/module | ||||||
| "module": "esnext", | ||||||
|
||||||
| "module": "esnext", | |
| "module": "ESNext", |
Copilot
AI
Dec 14, 2025
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.
Using "target": "esnext" is not recommended for production code as it's a moving target that changes with each TypeScript version. Consider using a specific version like "ES2022" (as used in the main ts/tsconfig.json) for consistency and predictability.
| "target": "esnext", | |
| "target": "ES2022", |
Copilot
AI
Dec 14, 2025
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 types array is set to empty ([]), but the code uses DOM APIs like document and window. Without specifying DOM types, TypeScript should throw errors unless lib includes DOM types. Consider adding "lib": ["ESNext", "DOM"] to ensure proper type checking for browser APIs.
| // "lib": ["esnext"], | |
| "lib": ["ESNext", "DOM"], |
Copilot
AI
Dec 14, 2025
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 jsx compiler option is set to "react-jsx", but there are no React dependencies in package.json and the code doesn't use JSX. This option should be removed unless React is intended to be added.
| "jsx": "react-jsx", |
Copilot
AI
Dec 14, 2025
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.
Trailing comma after the last property in compilerOptions will cause a JSON parsing error. Remove the comma after "skipLibCheck": true.
| "skipLibCheck": true, | |
| "skipLibCheck": true |
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 package.json is missing a build script to compile TypeScript to JavaScript. Add a "build" script like "tsc" or "tsc --watch" to the scripts section so developers know how to compile the TypeScript code.