Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Stage publish

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6.0.3
- uses: actions/setup-node@v6.4.0
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false
- run: npm ci
- run: npm run test
- run: npm run build
- run: npm stage publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests

on:
workflow_dispatch:
push:
paths:
- '**.ts'
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [24.x, 26.x]

steps:
- uses: actions/checkout@v6.0.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6.4.0
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
27 changes: 0 additions & 27 deletions .github/workflows/testing.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dist
node_modules
.idea
*.zip
*.tgz
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/
node_modules/
*.geojson
*.json
*.topojson
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 2,
"arrowParens": "always"
}
19 changes: 14 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import eslint from '@eslint/js';
import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint';
import { defineConfig } from 'eslint/config';

export default defineConfig(
eslint.configs.recommended,
tseslint.configs.recommended,
{
rules: { '@typescript-eslint/ban-ts-comment': 'off' },
extends: [],
files: ['**/*.{js,ts}'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
},
extends: [
eslint.configs.recommended,
tseslint.configs.strict,
tseslint.configs.stylistic
],
settings: {
'import/resolver': {
node: {
Expand Down
4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

Loading
Loading