Skip to content

Commit 68527c8

Browse files
committed
build: Fixed package.json
1 parent 364d605 commit 68527c8

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Build
4646
run: pnpm build
4747

48-
- uses: actions/setup-node@v2
48+
- uses: actions/setup-node@v1
4949
with:
5050
node-version: 14
5151
registry-url: https://npm.pkg.github.com
@@ -55,3 +55,7 @@ jobs:
5555
- run: npm publish
5656
env:
5757
NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_TOKEN}}
58+
with:
59+
node-version: 14
60+
registry-url: https://npm.pkg.github.com
61+
scope: '@oda2'

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 80,
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "es5"
6+
}

package.json

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
"version": "0.1.3",
2+
"version": "0.1.4",
33
"license": "MIT",
44
"name": "using-try-catch",
5+
"homepage": "https://github.com/Oda2/using-try-catch",
56
"module": "dist/esm/index.js",
6-
"main": "dist/index.js",
7+
"main": "dist/cjs/index.js",
78
"typings": "dist/index.d.ts",
89
"description": "Simplify the use of try-catch",
10+
"private": false,
911
"files": [
1012
"dist",
1113
"src",
@@ -51,27 +53,13 @@
5153
"tslib": "^2.2.0",
5254
"typescript": "^4.2.4"
5355
},
54-
"husky": {
55-
"hooks": {
56-
"pre-commit": "tsdx lint"
57-
}
58-
},
59-
"prettier": {
60-
"printWidth": 80,
61-
"semi": true,
62-
"singleQuote": true,
63-
"trailingComma": "es5"
64-
},
65-
"size-limit": [
66-
{
67-
"path": "dist/using-try-catch.cjs.production.min.js",
68-
"limit": "10 KB"
69-
},
70-
{
71-
"path": "dist/using-try-catch.esm.js",
72-
"limit": "10 KB"
73-
}
56+
"keywords": [
57+
"try-catch",
58+
"typescript"
7459
],
60+
"publishConfig": {
61+
"access": "public"
62+
},
7563
"engines": {
7664
"node": ">=10"
7765
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { default } from './using-try-catch';
2+
export { default as usingTryCatch } from './using-try-catch';

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"exclude": ["node_modules", "**/*.test.ts"],
44
"compilerOptions": {
55
"module": "commonjs",
6-
"target": "es5",
6+
"target": "ES3",
77
"lib": ["dom", "esnext"],
88
"importHelpers": false,
99
"declaration": false,

0 commit comments

Comments
 (0)