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
31 changes: 9 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,21 @@ jobs:
build-check:
name: Build Check
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
deno-version: v2.5.4

- name: Install dependencies
run: npm ci
- name: Format check
run: deno fmt --check src/

- name: Run linting
run: npm run lint
- name: Lint
run: deno lint src/

- name: Run type checking
run: npm run type-check

- name: Build project
run: npm run build

- name: Verify build artifacts
run: |
ls -la dist/
node -e "console.log('✅ CommonJS:', require('./dist/index.cjs').name || 'Jsonary')"
node --input-type=module -e "import Jsonary from './dist/index.mjs'; console.log('✅ ESM:', Jsonary.name || 'Jsonary')"
- name: Type check
run: deno check src/index.ts
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ on:
- main

jobs:
publish:
deno-publish:
name: Deno (JSR)
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: denoland/setup-deno@v2
with:
deno-version: v2.5.4

- name: Check package
run: deno check src/index.ts

- name: Publish package
- name: Publish to JSR
run: deno publish --allow-dirty
132 changes: 11 additions & 121 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,130 +1,20 @@
# Dependencies
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock

# Build outputs
dist/
build/
*.tsbuildinfo

# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Logs
logs/
*.log

# Runtime data
pids/
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
# Deno
.deno/
coverage/
*.lcov

# nyc test coverage
.nyc_output/
deno.lock

# Dependency directories
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# IDE files
# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS generated files
# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Temporary files
tmp/
temp/

# TypeScript
*.d.ts.map

# ESLint cache

# Prettier cache
.prettiercache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# parcel-bundler cache
.cache
.parcel-cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Local development
.env.development
.env.test
.env.production

# Database
*.sqlite
*.sqlite3
*.db
# Node
dist/
node_modules/
package-lock.json

# Backup files
*.backup
*.bak
*.orig
# Local data files
data.json
117 changes: 0 additions & 117 deletions .prettierignore

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierrc

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 NeaByteLab
Copyright (c) 2026 NeaByteLab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading
Loading