Skip to content

Commit

Permalink
feat: produce esm build
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbllmnn committed Jun 17, 2024
1 parent a0b5002 commit 3b71147
Show file tree
Hide file tree
Showing 6 changed files with 1,124 additions and 244 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions babel.config.js → babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
'presets': [
presets: [
'@babel/env',
'@babel/preset-typescript'
],
'plugins': [
plugins: [
'@babel/proposal-object-rest-spread'
]
};
File renamed without changes.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"files": [
"dist/*",
"examples/**",
"schema.json",
"README.md"
],
"scripts": {
"lint": "eslint -c .eslintrc.js --ext .ts . && tsc --noEmit",
"lint": "eslint -c .eslintrc.cjs --ext .ts . && tsc --noEmit",
"build": "tsc",
"test": "jest",
"generate-schema": "typescript-json-schema tsconfig.json Style --id http://geostyler/geostyler-style.json > schema.json",
Expand Down
Loading

0 comments on commit 3b71147

Please sign in to comment.