Skip to content

Commit

Permalink
fix: set "module" to "Node16" (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb committed Aug 30, 2023
1 parent 1c8b918 commit 4e124e2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 25 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "fast and efficient type-safe SDK",
"repository": "github:alchemauss/mauss",
"author": "Ignatius Bagus",
"license": "MIT",
"type": "module",
"scripts": {
"clean": "git add * && git clean -dfx -e node_modules",
Expand All @@ -14,7 +15,7 @@
"check:style": "prettier -c . --plugin=prettier-plugin-sort-package-json",
"test": "pnpm test:unit",
"test:unit": "uvu -r tsm src \"(spec\\.ts)\"",
"pub:build": "tsc --project src",
"pub:build": "tsc --project src --declaration",
"pub:format": "prettier -wu **/*.{d.ts,js}",
"prepublishOnly": "pnpm pub:build && pnpm pub:format"
},
Expand All @@ -32,7 +33,7 @@
"./prettier.json": "./prettier.json",
"./tsconfig.json": "./tsconfig.json"
},
"packageManager": "pnpm@8.6.11",
"packageManager": "pnpm@8.7.0",
"prettier": "./prettier.json",
"keywords": [
"zero-dependency",
Expand All @@ -50,11 +51,11 @@
"settings"
],
"devDependencies": {
"@types/node": "^20.4.4",
"prettier": "^3.0.0",
"prettier-plugin-sort-package-json": "^0.1.0",
"@types/node": "^20.5.7",
"prettier": "^3.0.2",
"prettier-plugin-sort-package-json": "^0.2.0",
"tsm": "^2.3.0",
"typescript": "^5.1.6",
"typescript": "^5.2.2",
"uvu": "^0.5.6"
}
}
38 changes: 21 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.json",
"compilerOptions": { "outDir": "..", "declaration": true },
"compilerOptions": { "outDir": ".." },
"exclude": ["node_modules", "**/*.spec.ts", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
// Project Options
"target": "ES2017",
"module": "ES2020",
"module": "Node16",
"checkJs": true,
"isolatedModules": true,

Expand Down

0 comments on commit 4e124e2

Please sign in to comment.