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
|
||||
steps:
|
||||
- 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:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm i -g pnpm @antfu/ni
|
||||
- run: nci
|
||||
- run: nr test --if-present
|
||||
node-version: ${{ matrix.node_version }}
|
||||
cache: "pnpm"
|
||||
|
||||
# - run: pnpm i -g @antfu/ni
|
||||
# - run: nci
|
||||
# - run: nr test --if-present
|
||||
# - run: npm publish --access public
|
||||
# env:
|
||||
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
- run: npx conventional-github-releaser -p angular
|
||||
env:
|
||||
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
@@ -4,12 +4,10 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -24,19 +22,25 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2.0.1
|
||||
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
|
||||
run: npm i -g pnpm @antfu/ni
|
||||
run: pnpm i -g @antfu/ni
|
||||
|
||||
- name: Install
|
||||
run: nci
|
||||
|
||||
# - name: Lint
|
||||
# run: nr lint --if-present
|
||||
- name: Lint
|
||||
run: nr lint --if-present
|
||||
|
||||
- name: Test
|
||||
run: nr test --if-present
|
||||
+32
-34
@@ -2,54 +2,52 @@
|
||||
"name": "[name]",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"keywords": [],
|
||||
"homepage": "https://github.com/antfu/[name]#readme",
|
||||
"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": {
|
||||
".": {
|
||||
"require": "./dist/index.js",
|
||||
"import": "./dist/index.mjs"
|
||||
}
|
||||
},
|
||||
"funding": "https://github.com/sponsors/antfu",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||
"license": "MIT",
|
||||
"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": [],
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"prepublishOnly": "nr build",
|
||||
"dev": "nr build --watch",
|
||||
"start": "esno src/index.ts",
|
||||
"build": "tsup src/index.ts --format cjs,esm --dts --no-splitting",
|
||||
"release": "bumpp --commit --push --tag && pnpm publish",
|
||||
"build": "tsup",
|
||||
"dev": "tsup --watch src",
|
||||
"lint": "eslint \"{src,test}/**/*.ts\"",
|
||||
"lint:fix": "nr lint -- --fix",
|
||||
"test": "jest",
|
||||
"test:update": "jest -u"
|
||||
"prepublishOnly": "nr build",
|
||||
"release": "bumpp --commit --push --tag && pnpm publish",
|
||||
"start": "esno src/index.ts",
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.7.0",
|
||||
"@antfu/ni": "^0.7.0",
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/node": "^16.7.1",
|
||||
"bumpp": "^6.0.6",
|
||||
"@antfu/eslint-config": "^0.9.0",
|
||||
"@antfu/ni": "^0.9.3",
|
||||
"@types/jest": "^27.0.2",
|
||||
"@types/node": "^16.10.3",
|
||||
"bumpp": "^7.1.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-jest": "^24.4.0",
|
||||
"esno": "^0.9.1",
|
||||
"jest": "^27.0.6",
|
||||
"eslint-plugin-jest": "^24.5.2",
|
||||
"esno": "^0.10.1",
|
||||
"jest": "^27.2.5",
|
||||
"ts-jest": "^27.0.5",
|
||||
"tsup": "^4.14.0",
|
||||
"typescript": "^4.3.5"
|
||||
"tsup": "^5.4.0",
|
||||
"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