From b8c6819403a047d5e53ea2b846b7c0839f066e12 Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 10 Jan 2020 14:17:39 +0800 Subject: [PATCH] chore: remove prepublish --- package.json | 3 +-- publish.bat | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 publish.bat diff --git a/package.json b/package.json index 0f031e7eb..748ab1ec2 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,7 @@ "fake": "grunt fake-build", "test": "karma start", "analyze": "grunt analyze", - "dev": "npm-run-all --parallel grunt webpack:dev", - "prepublish": "node ./lib/prepublish/prepublish.js" + "dev": "npm-run-all --parallel grunt webpack:dev" }, "repository": { "type": "git", diff --git a/publish.bat b/publish.bat new file mode 100644 index 000000000..795f39aed --- /dev/null +++ b/publish.bat @@ -0,0 +1,5 @@ +For /f "delims=." %%A in ( + 'wmic os get LocalDateTime^|findstr ^^20' +) Do Set DT=%%A +Set "TIMESTAMP=%DT:~0,4%/%DT:~4,2%/%DT:~6,2%/%DT:~8,2%/%DT:~10,2%/%DT:~12,2%" +npm publish --tag=%TIMESTAMP% \ No newline at end of file