Skip to content

Commit

Permalink
fix(package): module bundling compat with treat
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Apr 8, 2020
1 parent 0fa1f92 commit 93f9ba7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.log*
*.tsbuildinfo
.cache/
.env
.eslintcache
Expand Down
16 changes: 12 additions & 4 deletions packages/glaze/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,22 @@
},
"license": "MIT",
"author": "Kristóf Poduszló <kripod@protonmail.com>",
"sideEffects": false,
"type": "module",
"exports": {
"import": "./dist/index.js"
},
"main": "./dist/index.js",
"umd:main": "./dist/index.umd.js",
"module": "./dist/index.esm.js",
"module": "./dist/index.js",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"files": [
"dist/",
"src/"
],
"scripts": {
"build": "microbundle build --jsx React.createElement",
"watch": "microbundle watch --jsx React.createElement"
"build": "tsc",
"watch": "tsc --watch"
},
"dependencies": {
"@emotion/hash": "^0.8.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/glaze/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"composite": true,
"declaration": true,
"rootDir": "./src/",
"outDir": "./pkg/dist-src/",
"declarationDir": "./pkg/dist-types/"
"outDir": "./dist/"
}
}

0 comments on commit 93f9ba7

Please sign in to comment.