From e1b3cdfe7667ea2c830e636c18a87403fe2a965e Mon Sep 17 00:00:00 2001 From: Nic <24358775+nicfv@users.noreply.github.com> Date: Thu, 29 Feb 2024 16:55:19 -0800 Subject: [PATCH] v0.0.3 (#10) * Try that again * Skip directories that are not an npm project * Fail if .docs exists * Add basic interpolator * Release v0.0.2 * v0.0.3 --- .github/workflows/run | 2 ++ smath/CHANGELOG.md | 6 ++++++ smath/package.json | 10 +++++----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run b/.github/workflows/run index 26dcf6ec..efdf058f 100755 --- a/.github/workflows/run +++ b/.github/workflows/run @@ -35,6 +35,8 @@ for dir in */ ; do fi # Run test script cd "${dir}" || exit 1 + echo 'Installing dependencies...' + npm i echo 'Running tests...' npm test if "${publish}" ; then diff --git a/smath/CHANGELOG.md b/smath/CHANGELOG.md index 05441ca5..139e9bb9 100644 --- a/smath/CHANGELOG.md +++ b/smath/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.0.3 + +- Fix bugs in scripts +- Install dependencies before publishing +- Add type declarations in `package.json` + ## 0.0.2 - Add basic interpolation functions: diff --git a/smath/package.json b/smath/package.json index 28389741..dc8320e5 100644 --- a/smath/package.json +++ b/smath/package.json @@ -1,21 +1,21 @@ { "name": "smath", - "version": "0.0.2", + "version": "0.0.3", "description": "Small math function library", - "main": "index.js", + "main": "dist/index.js", + "types": "types/index.d.ts", "files": [ "dist", "types" ], "scripts": { "dev": "rm -rf dist && tsc --watch", - "build": "rm -rf dist types && tsc --removeComments", + "build": "rm -rf dist && tsc --removeComments", "types": "rm -rf types && tsc --declaration --declarationDir types --emitDeclarationOnly", "test": "tsc --noEmit", "clean": "rm -rf node_modules package-lock.json dist types docs", "docs": "rm -rf docs && typedoc src", - "prepublishOnly": "npm run build && npm run types", - "postpublish": "npm run clean" + "prepublishOnly": "npm run build && npm run types" }, "keywords": [], "author": {