chore: update deps
This commit is contained in:
1 parent
8550c2d748
commit
eb6526281c
5 files changed
+955
-771
No files matched your search
@@ -10,18 +10,25 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# - name: Install pnpm
|
||||||
|
# uses: pnpm/action-setup@v2.0.1
|
||||||
|
# with:
|
||||||
|
# version: 6.15.1
|
||||||
|
|
||||||
|
- name: Set node version to ${{ matrix.node_version }}
|
||||||
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
node-version: ${{ matrix.node_version }}
|
||||||
- uses: actions/setup-node@v2
|
cache: "pnpm"
|
||||||
with:
|
|
||||||
node-version: '14'
|
# - run: pnpm i -g @antfu/ni
|
||||||
registry-url: https://registry.npmjs.org/
|
# - run: nci
|
||||||
- run: npm i -g pnpm @antfu/ni
|
# - run: nr test --if-present
|
||||||
- run: nci
|
|
||||||
- run: nr test --if-present
|
|
||||||
# - run: npm publish --access public
|
# - run: npm publish --access public
|
||||||
# env:
|
# env:
|
||||||
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
|
|
||||||
- run: npx conventional-github-releaser -p angular
|
- run: npx conventional-github-releaser -p angular
|
||||||
env:
|
env:
|
||||||
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
@@ -4,12 +4,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- master
|
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -24,19 +22,25 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Install pnpm
|
||||||
uses: actions/setup-node@v1
|
uses: pnpm/action-setup@v2.0.1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
version: 6.15.1
|
||||||
|
|
||||||
|
- name: Set node version to ${{ matrix.node_version }}
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node_version }}
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: npm i -g pnpm @antfu/ni
|
run: pnpm i -g @antfu/ni
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: nci
|
run: nci
|
||||||
|
|
||||||
# - name: Lint
|
- name: Lint
|
||||||
# run: nr lint --if-present
|
run: nr lint --if-present
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: nr test --if-present
|
run: nr test --if-present
|
||||||
+32
-34
@@ -2,54 +2,52 @@
|
|||||||
"name": "[name]",
|
"name": "[name]",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"keywords": [],
|
||||||
"module": "dist/index.mjs",
|
"homepage": "https://github.com/antfu/[name]#readme",
|
||||||
"types": "dist/index.d.ts",
|
"bugs": {
|
||||||
|
"url": "https://github.com/antfu/[name]/issues"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/antfu/[name].git"
|
||||||
|
},
|
||||||
|
"funding": "https://github.com/sponsors/antfu",
|
||||||
|
"license": "MIT",
|
||||||
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||||
|
"sideEffects": false,
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"require": "./dist/index.js",
|
"require": "./dist/index.js",
|
||||||
"import": "./dist/index.mjs"
|
"import": "./dist/index.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"funding": "https://github.com/sponsors/antfu",
|
"main": "dist/index.js",
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
"module": "dist/index.mjs",
|
||||||
"license": "MIT",
|
"types": "dist/index.d.ts",
|
||||||
"sideEffects": false,
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/antfu/[name]/issues"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/antfu/[name]#readme",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/antfu/[name].git"
|
|
||||||
},
|
|
||||||
"keywords": [],
|
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "nr build",
|
"build": "tsup",
|
||||||
"dev": "nr build --watch",
|
"dev": "tsup --watch src",
|
||||||
"start": "esno src/index.ts",
|
|
||||||
"build": "tsup src/index.ts --format cjs,esm --dts --no-splitting",
|
|
||||||
"release": "bumpp --commit --push --tag && pnpm publish",
|
|
||||||
"lint": "eslint \"{src,test}/**/*.ts\"",
|
"lint": "eslint \"{src,test}/**/*.ts\"",
|
||||||
"lint:fix": "nr lint -- --fix",
|
"prepublishOnly": "nr build",
|
||||||
"test": "jest",
|
"release": "bumpp --commit --push --tag && pnpm publish",
|
||||||
"test:update": "jest -u"
|
"start": "esno src/index.ts",
|
||||||
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^0.7.0",
|
"@antfu/eslint-config": "^0.9.0",
|
||||||
"@antfu/ni": "^0.7.0",
|
"@antfu/ni": "^0.9.3",
|
||||||
"@types/jest": "^27.0.1",
|
"@types/jest": "^27.0.2",
|
||||||
"@types/node": "^16.7.1",
|
"@types/node": "^16.10.3",
|
||||||
"bumpp": "^6.0.6",
|
"bumpp": "^7.1.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-plugin-jest": "^24.4.0",
|
"eslint-plugin-jest": "^24.5.2",
|
||||||
"esno": "^0.9.1",
|
"esno": "^0.10.1",
|
||||||
"jest": "^27.0.6",
|
"jest": "^27.2.5",
|
||||||
"ts-jest": "^27.0.5",
|
"ts-jest": "^27.0.5",
|
||||||
"tsup": "^4.14.0",
|
"tsup": "^5.4.0",
|
||||||
"typescript": "^4.3.5"
|
"typescript": "^4.4.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+883
-721
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,13 @@
|
|||||||
|
import { Options } from 'tsup'
|
||||||
|
|
||||||
|
const config: Options = {
|
||||||
|
splitting: true,
|
||||||
|
format: ['esm', 'cjs'],
|
||||||
|
entryPoints: [
|
||||||
|
'src/*.ts',
|
||||||
|
],
|
||||||
|
clean: true,
|
||||||
|
dts: true,
|
||||||
|
}
|
||||||
|
|
||||||
|
export default config
|
||||||
Reference in new issue
Block a user