Skip to content

Commit 9a61a36

Browse files
authored
Merge branch 'main' into 752-pnpm-fails-to-build
2 parents 83cfb46 + 4fb4d4d commit 9a61a36

File tree

91 files changed

+33739
-8826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+33739
-8826
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ jobs:
6363

6464
- run: npm ci
6565

66-
- run: npm publish --provenance --access public
66+
- name: Determine npm tag
67+
id: npm-tag
68+
run: |
69+
VERSION=$(node -p "require('./package.json').version")
70+
if [[ "$VERSION" == *"-beta"* ]]; then
71+
echo "tag=--tag beta" >> $GITHUB_OUTPUT
72+
else
73+
echo "tag=" >> $GITHUB_OUTPUT
74+
fi
75+
76+
- run: npm publish --provenance --access public ${{ steps.npm-tag.outputs.tag }}
6777
env:
6878
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,6 @@ out
130130

131131
.DS_Store
132132
dist/
133+
134+
# IDE
135+
.idea/

README.md

Lines changed: 385 additions & 16 deletions
Large diffs are not rendered by default.

eslint.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import eslint from '@eslint/js';
44
import tseslint from 'typescript-eslint';
55
import eslintConfigPrettier from 'eslint-config-prettier/flat';
6+
import nodePlugin from 'eslint-plugin-n';
67

78
export default tseslint.config(
89
eslint.configs.recommended,
@@ -11,8 +12,12 @@ export default tseslint.config(
1112
linterOptions: {
1213
reportUnusedDisableDirectives: false
1314
},
15+
plugins: {
16+
n: nodePlugin
17+
},
1418
rules: {
15-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }]
19+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
20+
'n/prefer-node-protocol': 'error'
1621
}
1722
},
1823
{

0 commit comments

Comments
 (0)