Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps, update lint #9

Merged
merged 1 commit into from
Aug 8, 2024
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
38 changes: 0 additions & 38 deletions .eslintrc.cjs

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
- run: npm run build
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage/
test/
.github/
.ncurc
eslint.config.js
1 change: 0 additions & 1 deletion bin/linewrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
/* eslint-disable no-console */

import {inspect, promisify} from 'util';
import {LineWrap} from '@cto.af/linewrap';
Expand Down
17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import cjs from "@cto.af/eslint-config/cjs.js";
import mocha from "@cto.af/eslint-config/mocha.js"
import mod from "@cto.af/eslint-config/module.js";

export default [
{
ignores: [
"coverage/**",
"docs/**",
"node_modules/**",
"**/*.d.ts",
],
},
...mod,
...cjs,
...mocha,
];
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"test": "c8 mocha",
"lint": "eslint . --ext js,cjs",
"lint": "eslint .",
"build": "npm run lint && npm run test && npm pack --dry-run"
},
"keywords": [
Expand All @@ -26,17 +26,18 @@
"license": "MIT",
"repository": "cto-af/linewrap-cli",
"dependencies": {
"@cto.af/linewrap": "2.0.0",
"minus-h": "1.2.1"
"@cto.af/linewrap": "2.1.0",
"minus-h": "2.1.0"
},
"devDependencies": {
"@cto.af/eslint-config": "3.1.0",
"@types/node": "20.11.25",
"c8": "9.1.0",
"eslint": "8.57.0",
"mocha": "10.3.0"
"@cto.af/eslint-config": "4.1.5",
"@types/node": "22.1.0",
"c8": "10.1.2",
"eslint": "9.8.0",
"eslint-plugin-mocha": "10.5.0",
"mocha": "10.7.0"
},
"packageManager": "pnpm@8.15.4",
"packageManager": "pnpm@9.7.0",
"engines": {
"node": ">= 18"
}
Expand Down
Loading
Loading