diff --git a/.gitignore b/.gitignore index f4f6b35..46aad91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*remeda*.tgz node_modules coverage pnpm-lock.yaml diff --git a/Taskfile.yaml b/Taskfile.yaml index bfab44b..baf4dee 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -12,11 +12,25 @@ tasks: cmds: - changelord print > CHANGELOG.md test: vitest run + build: + sources: ["src/**"] + generates: ["esm/**"] deps: [test] cmds: - rm -fr esm/ - tsc -p tsconfig.json + + prepRelease: + deps: [changelog, build] + preconditions: + - sh: git branch | grep '* main' + msg: not on main + - sh: git is-clean + msg: stuff not commited + cmds: + - npm pack + default: cmds: - echo "{{.GREETING}}" diff --git a/package.json b/package.json index 45ad589..15ee601 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "type": "module", - "name": "updeep-remeda", + "name": "@yanick/updeep-remeda", "version": "2.0.0", "description": "Easily update nested frozen objects and arrays in a declarative and immutable manner.", "homepage": "https://git.babyl.ca/yanick/updeep-remeda",