Skip to content

Commit

Permalink
Updated tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
maddsua committed Dec 28, 2023
1 parent 305519e commit 34dca82
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
"name": "@maddsua/jsxml",
"version": "3.1.0",
"type": "module",
"dependencies": {
"esbuild": "^0.19.10",
"typescript": "^5.3.3"
"main": "./dist/index.npm.js",
"types": "./dist/index.npm.d.ts",
"exports": {
".": {
"default": "./dist/index.npm.js",
"types": "./dist/index.npm.d.ts"
}
},
"scripts": {
"test": "node test/.temp/test.node.js",
"build_test": "esbuild test/test.node.ts --platform=node --format=esm --bundle --loader:.js=text --loader:.css=text --outfile=test/.temp/test.node.js",
"build": "tsc"
},
"dependencies": {
"esbuild": "^0.19.10",
"typescript": "^5.3.3"
},
"devDependencies": {
"@types/node": "^20.10.5"
},
"engines" : {
"node" : ">=16.0.0"
},
"main": "./dist/index.npm.js",
"types": "./dist/index.npm.d.ts",
"exports": {
".": {
"default": "./dist/index.npm.js",
"types": "./dist/index.npm.d.ts"
}
},
"files": [
"dist"
]
],
"engines" : {
"node" : ">=16.0.0"
}
}
2 changes: 1 addition & 1 deletion test/test.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ try {
}

} catch (error) {
console.error(error.message);
console.error((error as Error).message);
process.exit(1);
}
10 changes: 10 additions & 0 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"lib": ["DOM", "ES2015", "ESNext"],
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true,
"noEmit": true,
"strict": true,
"jsx": "preserve",
},
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"compilerOptions": {
"lib": ["DOM", "ES2015", "ESNext"],
"target": "ESNext",
"allowImportingTsExtensions": true,
"moduleResolution": "Bundler",
"outDir": "dist",
"declaration": true,
"sourceMap": false,
"strict": true,
"jsx": "preserve"
}
},
"include": ["lib"]
}

0 comments on commit 34dca82

Please sign in to comment.