chore: ts script (#44761)

* chore: ts script

* chore: fix lint
This commit is contained in:
MadCcc 2023-09-11 16:10:25 +08:00 committed by GitHub
parent 092c79a6f3
commit 3596c8811e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@
"lint:md": "remark . -f -q",
"lint:style": "tsx scripts/check-cssinjs.ts",
"lint:script": "npm run component-changelog && eslint . --ext .js,.jsx,.ts,.tsx --cache",
"pre-publish": "npm run test-all -- --skip-build && node ./scripts/pre-publish-notice.js",
"pre-publish": "npm run test-all -- --skip-build && tsx ./scripts/pre-publish-notice.ts",
"prettier": "prettier -c --write **/* --cache",
"pub": "npm run version && npm run collect-token-statistic && npm run token-meta && antd-tools run pub",
"biome:format": "biome format --write .",

View File

@ -1,6 +1,6 @@
const { Notification } = require('node-notifier');
const { Notification: Notifier } = require('node-notifier');
new Notification().notify({
new Notifier().notify({
title: '✅ 准备发布到 npm',
message: '测试用例执行完毕,快回来输入 npm 校验码了!',
sound: 'Crystal',