Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prepublish and postpublish scripts to ensure proper deploy #18

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

saitouena
Copy link
Contributor

@saitouena saitouena commented Sep 25, 2020

I published some old files that remained in dist/ on my PC by accident.
I guess that's why the latest kintone-query-builder-js prints "@parseValue" to the window console.

This PR ensures the clean build before npm publish.

I also added npm logout at postpublish to avoid an accident.
https://qiita.com/sadnessOjisan/items/3069e79038c961458ba2

@@ -11,7 +11,9 @@
"test": "jest",
"testWithCoverage": "jest --coverage",
"lint": "eslint src tests --ext .ts",
"lint:fix": "eslint src tests --ext .ts --fix"
"lint:fix": "eslint src tests --ext .ts --fix",
"prepublish": "rm -rf dist/ && npm run-script build",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: rm -rf is not available on windows.
rimraf or something is cross-platform rm command.

@saitouena saitouena merged commit 6a7c26d into master Nov 4, 2020
@saitouena saitouena deleted the add-clean-deploy branch November 4, 2020 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants