Skip to content

Commit 209dde6

Browse files
committedJan 11, 2023
apply publint suggestions
1 parent c87d5eb commit 209dde6

File tree

2 files changed

+286
-4
lines changed

2 files changed

+286
-4
lines changed
 

‎package-lock.json

+282-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"exports": {
2020
"./package.json": "./package.json",
2121
".": {
22+
"types": "./index.d.ts",
2223
"import": "./dist/magic-string.es.mjs",
23-
"require": "./dist/magic-string.cjs.js",
24-
"types": "./index.d.ts"
24+
"require": "./dist/magic-string.cjs.js"
2525
}
2626
},
2727
"files": [
@@ -33,7 +33,7 @@
3333
"build": "rollup -c",
3434
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
3535
"format": "prettier --single-quote --print-width 100 --use-tabs --write src/*.js src/**/*.js",
36-
"lint": "eslint src test",
36+
"lint": "eslint src test && publint",
3737
"prepare": "npm run build",
3838
"prepublishOnly": "rm -rf dist && npm test",
3939
"release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
@@ -51,6 +51,7 @@
5151
"eslint": "^8.23.1",
5252
"mocha": "^10.0.0",
5353
"prettier": "^2.7.1",
54+
"publint": "^0.1.7",
5455
"rollup": "^2.79.1",
5556
"source-map-js": "^1.0.2",
5657
"source-map-support": "^0.5.21"

0 commit comments

Comments
 (0)
Please sign in to comment.