Skip to content

Commit fcd2e40

Browse files
committed
feat: Upgrade dependencies
1 parent 631e272 commit fcd2e40

11 files changed

Lines changed: 1588 additions & 2926 deletions

File tree

.denolint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
1-
name: Test or Release
1+
name: Test and Release
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
tags-ignore:
8+
- '**'
9+
paths-ignore:
10+
- '**/*.md'
11+
- LICENSE
12+
pull_request:
13+
14+
permissions:
15+
id-token: write
16+
contents: write
617

718
jobs:
8-
test-or-release:
19+
test-and-release:
920
runs-on: ubuntu-latest
1021
steps:
11-
- name: Checkout Sources
12-
uses: actions/checkout@v3
13-
- name: Install Node
14-
uses: actions/setup-node@v3
22+
- uses: actions/checkout@v6
23+
- uses: pnpm/action-setup@v5
24+
with:
25+
version: latest
26+
- uses: actions/setup-node@v6
1527
with:
1628
node-version: 'lts/*'
1729
registry-url: 'https://registry.npmjs.org'
18-
- name: Install PNPM
19-
uses: pnpm/action-setup@v2
20-
with:
21-
version: latest
22-
run_install: |
23-
- args: [--frozen-lockfile, --no-verify-store-integrity]
24-
- name: Test
25-
run: npm test
26-
- name: Coverage
27-
uses: codecov/codecov-action@v3
28-
- name: Publish
29-
uses: cycjimmy/semantic-release-action@v3
30+
cache: 'pnpm'
31+
- run: pnpm i --frozen-lockfile --no-verify-store-integrity
32+
- run: npm test
33+
- uses: prantlf/publish-release-action@v1
3034
with:
31-
branches: master
35+
no-npm-auth: true
36+
no-archives: true
3237
env:
3338
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## [1.0.1](https://github.com/prantlf/karma-sourcemap-loader/compare/v1.0.0...v1.0.1) (2023-05-05)
1+
# Changes
22

3+
## [1.0.1](https://github.com/prantlf/karma-sourcemap-loader/compare/v1.0.0...v1.0.1) (2023-05-05)
34

45
### Bug Fixes
56

biome.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
3+
"linter": {
4+
"enabled": true,
5+
"rules": {
6+
"recommended": true,
7+
"style": {
8+
"noParameterAssign": "off"
9+
},
10+
"complexity": {
11+
"useArrowFunction": "off"
12+
}
13+
}
14+
},
15+
"formatter": {
16+
"enabled": true,
17+
"formatWithErrors": false,
18+
"indentStyle": "space",
19+
"indentWidth": 2,
20+
"lineEnding": "lf",
21+
"lineWidth": 90
22+
},
23+
"javascript": {
24+
"formatter": {
25+
"arrowParentheses": "asNeeded",
26+
"bracketSpacing": true,
27+
"quoteProperties": "asNeeded",
28+
"quoteStyle": "single",
29+
"semicolons": "asNeeded",
30+
"trailingCommas": "none"
31+
}
32+
},
33+
"json": {
34+
"parser": {
35+
"allowComments": false,
36+
"allowTrailingCommas": false
37+
},
38+
"formatter": {
39+
"enabled": true,
40+
"trailingCommas": "none"
41+
}
42+
}
43+
}

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
const { access, readFile } = require('fs')
2-
const { dirname, resolve } = require('path')
1+
const { access, readFile } = require('node:fs')
2+
const { dirname, resolve } = require('node:path')
33

44
const sourcemapUrlRegeExp = /^\/\/#\s*sourceMappingURL=/
55
const charsetRegex = /^;charset=([^;]+);/
66

77
const createSourceMapPreprocessor = (_args, logger, config) => {
88
/* c8 ignore next */
9-
const options = config && config.sourceMapLoader || {}
9+
const options = config?.sourceMapLoader || {}
1010
const { remapPrefixes, remapSource, useSourceRoot, onlyWithURL, strict } = options
1111
const needsUpdate = remapPrefixes || remapSource || useSourceRoot
1212

package.json

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,42 +36,26 @@
3636
"debug:handler": "karma start test/karma.handler.js --reporters=progress --single-run=false --auto-watch",
3737
"debug:source-root": "karma start test/karma.source-root.js --reporters=progress --single-run=false --auto-watch",
3838
"pretest": "cd test && rollup -c",
39+
"lint": "biome lint *.js test",
3940
"test": "c8 karma start test/karma.prefixes.js && c8 --no-clean karma start test/karma.handler.js && c8 --no-clean karma start test/karma.source-root-value.js && c8 --no-clean karma start test/karma.source-root-function.js && c8 report -r text -r lcov && c8 check-coverage --100"
4041
},
4142
"c8": {
4243
"reporter": []
4344
},
44-
"release": {
45-
"plugins": [
46-
"@semantic-release/commit-analyzer",
47-
"@semantic-release/release-notes-generator",
48-
"@semantic-release/changelog",
49-
"@semantic-release/npm",
50-
[
51-
"@semantic-release/github",
52-
{
53-
"failComment": false
54-
}
55-
],
56-
"@semantic-release/git"
57-
]
58-
},
5945
"dependencies": {
6046
"graceful-fs": "4.2.11"
6147
},
6248
"devDependencies": {
49+
"@biomejs/biome": "^2.4.14",
6350
"@prantlf/karma-sourcemap-loader": "link:",
64-
"@semantic-release/changelog": "6.0.3",
65-
"@semantic-release/git": "10.0.1",
66-
"c8": "7.13.0",
67-
"denolint": "2.0.9",
68-
"jasmine-core": "4.6.0",
69-
"karma": "6.4.2",
70-
"karma-brief-reporter": "0.2.2",
51+
"c8": "11.0.0",
52+
"jasmine-core": "6.2.0",
53+
"karma": "6.4.4",
54+
"karma-brief-reporter": "0.3.0",
7155
"karma-chrome-launcher": "3.2.0",
7256
"karma-jasmine": "5.1.0",
73-
"rollup": "3.21.5",
74-
"rollup-sourcemap-path-transform": "1.0.3"
57+
"rollup": "4.60.2",
58+
"rollup-sourcemap-path-transform": "1.2.0"
7559
},
7660
"keywords": [
7761
"karma-plugin",

0 commit comments

Comments
 (0)