Skip to content

Commit

Permalink
fix: Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Aug 6, 2024
1 parent cd17471 commit ab0a1a0
Show file tree
Hide file tree
Showing 39 changed files with 832 additions and 2,263 deletions.
11 changes: 0 additions & 11 deletions .denolint.json

This file was deleted.

44 changes: 24 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
name: Test or Release

on:
- push
- pull_request
push:
branches:
- master
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- LICENSE
pull_request:

jobs:
test-or-release:
runs-on: ubuntu-latest
runs-on: macos-13
steps:
- name: Checkout Sources
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
- name: Install PNPM
uses: pnpm/action-setup@v2
cache: 'pnpm'
- run: pnpm i --frozen-lockfile --no-verify-store-integrity
- run: npm test
- uses: codecov/codecov-action@v4
if: ${{ github.ref_name == 'master' }}
with:
version: '>=6'
run_install: |
- args: [--frozen-lockfile, --no-verify-store-integrity]
- name: Test
run: npm test
- name: Coverage
uses: codecov/codecov-action@v2
- name: Publish
uses: cycjimmy/semantic-release-action@v2
token: ${{ secrets.CODECOV_TOKEN }}
- uses: prantlf/publish-release-action@v1
if: ${{ github.ref_name == 'master' }}
with:
semantic_version: 18
branches: master
no-archives: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 3 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
## [0.0.6](https://github.com/prantlf/rollup-plugin-shebang-bin/compare/v0.0.5...v0.0.6) (2023-10-08)
# Changes

## [0.0.6](https://github.com/prantlf/rollup-plugin-shebang-bin/compare/v0.0.5...v0.0.6) (2023-10-08)

### Bug Fixes

* Upgrade dependencies, support Rollup 4 ([738f4cb](https://github.com/prantlf/rollup-plugin-shebang-bin/commit/738f4cbf936e20ca116d355a73ddf6c2ca5f2fc0))

## [0.0.5](https://github.com/prantlf/rollup-plugin-shebang-bin/compare/v0.0.4...v0.0.5) (2022-10-30)


### Bug Fixes

* Upgrade dependencies, support Rollup 3, CJS and TypeScript ([bfb8dbb](https://github.com/prantlf/rollup-plugin-shebang-bin/commit/bfb8dbb71b9bbb1146e50f5e980666fe936f7551))

## [0.0.4](https://github.com/prantlf/rollup-plugin-shebang-bin/compare/v0.0.3...v0.0.4) (2022-06-03)


### Bug Fixes

* Fix homepage URL ([f50c7a0](https://github.com/prantlf/rollup-plugin-shebang-bin/commit/f50c7a083dbe7e6348861a7f0f430e64778d9d3f))

## [0.0.3](https://github.com/prantlf/rollup-plugin-shebang-bin/compare/v0.0.2...v0.0.3) (2022-05-23)


### Bug Fixes

* Do not install unnecessary dependencies ([877fff8](https://github.com/prantlf/rollup-plugin-shebang-bin/commit/877fff869bbe3d622bad4df300eb69b1798c67e9))

## [0.0.2](https://github.com/prantlf/rollup-plugin-shebang-bin/compare/v0.0.1...v0.0.2) (2022-05-10)


### Bug Fixes

* Upgrade dependencies ([9594349](https://github.com/prantlf/rollup-plugin-shebang-bin/commit/95943495c07dab2972897f4f86e168071c950525))

# 0.0.1 (2022-01-22)
## 0.0.1 (2022-01-22)

Initial rerlease
51 changes: 51 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignore": [
"lib/*.cjs"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noParameterAssign": "off"
},
"complexity": {
"useArrowFunction": "off"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 90
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"bracketSpacing": true,
"quoteProperties": "asNeeded",
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingComma": "none"
}
},
"json": {
"parser": {
"allowComments": false,
"allowTrailingCommas": false
},
"formatter": {
"enabled": true,
"trailingCommas": "none"
}
}
}
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plugin } from 'rollup'
import type { Plugin } from 'rollup'

interface ShebangOptions {
/**
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createFilter } from '@rollup/pluginutils'
import { chmod } from 'fs/promises'
import { join } from 'path'
import { chmod } from 'node:fs/promises'
import { join } from 'node:path'
import MagicString from 'magic-string'

export default function shebang({
Expand Down
42 changes: 11 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,13 @@
},
"scripts": {
"prepare": "rollup -c",
"lint": "denolint && tsc --noEmit test/types.ts",
"lint": "biome lint *.js lib test/*.js && tsc --noEmit test/types.ts",
"check": "teru test/index.cjs && teru-esm test/*.js",
"cover": "c8 teru-esm test/*.js",
"test": "denolint && tsc --noEmit test/types.ts && teru test/index.cjs && c8 teru-esm test/*.js"
"test": "biome lint *.js lib test/*.js && tsc --noEmit test/types.ts && teru test/index.cjs && c8 teru-esm test/*.js"
},
"c8": {
"check-coverage": true,
"include": [
"index.js"
],
"reporter": [
"text",
"lcov"
Expand All @@ -53,37 +50,20 @@
"functions": 100,
"statements": 100
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/github",
{
"failComment": false
}
],
"@semantic-release/git"
]
},
"dependencies": {
"@rollup/pluginutils": "^5.0.5",
"magic-string": "^0.30.4"
"@rollup/pluginutils": "^5.1.0",
"magic-string": "^0.30.11"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^20.8.3",
"c8": "^8.0.1",
"denolint": "^2.0.12",
"rollup": "^4.0.2",
"@biomejs/biome": "^1.8.3",
"@types/node": "^22.1.0",
"c8": "^10.1.2",
"rollup": "^4.20.0",
"rollup-plugin-shebang-bin": "link:",
"tehanu": "^1.0.1",
"tehanu-repo-coco": "^1.0.0",
"tehanu-teru": "^1.0.0",
"typescript": "^5.2.2"
"tehanu-repo-coco": "^1.0.1",
"tehanu-teru": "^1.0.1",
"typescript": "^5.5.4"
},
"peerDependencies": {
"rollup": "^2 || ^3 || ^4"
Expand Down
Loading

0 comments on commit ab0a1a0

Please sign in to comment.