Skip to content

Commit

Permalink
refactor deno.json and build_npm.ts for improved linting and compiler…
Browse files Browse the repository at this point in the history
… options
  • Loading branch information
myty committed Nov 5, 2024
1 parent 8b59685 commit 9a3548e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
16 changes: 9 additions & 7 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
"name": "@myty/immutable-record",
"description": "The sole purpose of this immutable record is to simply act as a class factory for immutable types. For this particular implementation, it piggybacks off of immer and adds a with method to the record class.",
"exports": "./mod.ts",
"compilerOptions": {
"allowJs": false,
"strict": true
},
"lint": {
"rules": {
"tags": ["recommended"],
"include": ["ban-untagged-todo"],
"exclude": ["no-unused-vars"]
"tags": [
"recommended"
],
"include": [
"ban-untagged-todo"
],
"exclude": [
"no-unused-vars"
]
}
},
"fmt": {
Expand Down
8 changes: 2 additions & 6 deletions scripts/build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ async function start() {
deno: true,
timers: true,
},
importMap: "deno.json",
test: true,
compilerOptions: {
lib: ["ESNext"],
importHelpers: true,
target: "ES2021",
},
Expand All @@ -43,12 +45,6 @@ async function start() {
url: "https://github.com/myty/immutable-record/issues",
},
homepage: "https://github.com/myty/immutable-record#readme",
dependencies: {
"tslib": "~2.3.1",
},
devDependencies: {
"@types/node": "^20",
},
},
});

Expand Down

0 comments on commit 9a3548e

Please sign in to comment.