Skip to content

Commit

Permalink
Use parcel targets in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Dec 20, 2023
1 parent 107a176 commit 467040e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@
"access": "public"
},
"type": "module",
"source": "src/ol-maplibre-layer.ts",
"main": "dist/ol-maplibre-layer.js",
"types": "dist/ol-maplibre-layer.d.ts",
"files": [
"/src",
"/dist"
],
"targets": {
"main": {
"source": "src/ol-maplibre-layer.ts"
},
"demo": {
"context": "browser",
"source": "examples/demo.html",
"distDir": "build",
"publicUrl": "./"
}
},
"scripts": {
"prepack": "npm run build",
"build": "parcel build",
"build-demo": "parcel build --target demo examples/*.html",
"lint": "eslint src/* examples/*.js",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write .",
"start": "parcel serve examples/*.html",
"start": "parcel serve --target demo",
"typecheck": "tsc",
"gh-pages": "rm -rf build && npm run build-demo && gh-pages -d build"
"gh-pages": "rm -rf build && npm run build && gh-pages -d build"
},
"peerDependencies": {
"maplibre-gl": ">=2.0.4",
Expand Down

0 comments on commit 467040e

Please sign in to comment.