Skip to content

Commit

Permalink
Updated options required for pure ESM packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MWhite-22 committed Jun 27, 2022
1 parent 08d9a6a commit 36f5381
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "Create web application with the t3 stack",
"author": "Shoubhit Dash <[email protected]>",
"license": "MIT",
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/nexxeln/create-t3-app.git"
Expand All @@ -18,9 +17,14 @@
"tRPC",
"typescript"
],
"type": "module",
"exports": "./dist/index.js",
"bin": {
"create-t3-app": "./dist/index.js"
},
"engines": {
"node": ">=14.16"
},
"scripts": {
"build": "tsup src/index.ts --clean --sourcemap --minify --metafile",
"dev": "tsup src/index.ts --watch --clean --onSuccess \"node dist/index.js\"",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
/* LANGUAGE COMPILATION OPTIONS */
"target": "ES6",
"lib": ["DOM", "ES6", "ESNext"],
"module": "commonjs",
"moduleResolution": "Node",
"module": "Node16",
"moduleResolution": "Node16",
"resolveJsonModule": true,

/* EMIT RULES */
Expand Down

0 comments on commit 36f5381

Please sign in to comment.