Skip to content

Commit

Permalink
chore: update to Yarn v2
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Sep 18, 2024
1 parent 2b781dd commit 8a221dc
Show file tree
Hide file tree
Showing 6 changed files with 1,912 additions and 707 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
node_modules
dist
docs

# Yarn v2
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"version": "0.0.0-development",
"description": "Allow visualization and interaction with all markers, even when superposed. Can display and interact with small cluster without the need to zoom or uncluster.",
"type": "module",
"files": ["dist"],
"files": [
"dist"
],
"main": "./dist/maplibre-gl-teritorio-cluster.umd.cjs",
"module": "./dist/maplibre-gl-teritorio-cluster.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/maplibre-gl-teritorio-cluster.js",
Expand All @@ -14,11 +17,11 @@
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "vite build && tsc",
"preview": "vite preview",
"preversion": "npm run build"
},
"repository": {
"repository": {
"type": "git",
"url": "git+https://github.com/teritorio/maplibre-gl-teritorio-cluster.git"
},
Expand All @@ -34,5 +37,6 @@
},
"dependencies": {
"maplibre-gl": "^4.7.0"
}
},
"packageManager": "[email protected]"
}
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"declaration": true,
"declarationMap": true,
"sourceMap": true,

/* Linting */
"strict": true,
Expand Down
8 changes: 0 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ export default defineConfig(({ command }) => {
name: 'MaplibreGlTeritorioCluster',
fileName: 'maplibre-gl-teritorio-cluster'
},
rollupOptions: {
external: ['maplibre-gl'],
output: {
globals: {
'maplibre-gl': 'maplibreGl'
}
}
}
}
}
})
Loading

0 comments on commit 8a221dc

Please sign in to comment.