Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akku1139 committed Dec 12, 2024
1 parent c51047a commit ae7671e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "scratch-blocks",
"version": "1.1.206",
"type": "module",
"description": "Scratch Blocks is a library for building creative computing interfaces.",
"author": "Massachusetts Institute of Technology",
"license": "Apache-2.0",
Expand Down
3 changes: 1 addition & 2 deletions src/global-patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ export const goog = {
elem.className = attrs.join(' ')
} else {
for (const key in attrs) {
// @ts-ignore
elem[key] = attrs[key]
elem.setAttribute(key, attrs[key])
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": ["ESNext", "WebWorker", "DOM"],
"rootDir": "./src",
"strict": true,
"noEmit": true,
"checkJs": true,
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
},
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compileOnSave": false
}

0 comments on commit ae7671e

Please sign in to comment.