v0.37.0
TypeScript Utilities as a npm dual package by Deno.
Attributes
Includes Deno configuration
Repository
Current version released
a week ago
Usage
$ npm i @yano3nora/ts-utilsimport { objectByKeys } from '@yano3nora/ts-utils'
objectByKeys([1, 2, 3], (key) => Number(key) * 10)
// => { '1': 10, '2': 20, '3': 30 }Development
$ code libs/new-function.ts # add function
$ code libs/new-function.test.ts # add test
$ code main.ts # add export
$ deno task devbuild & test
# build
$ deno task build
# link on local
$ deno task link
$ cd ../another-project
$ npm link package-namePublish
$ git add .
$ git commit -m 'update'
# npm のログインセッションを使って publish する
$ npm login
$ export NPM_VERSION_SUB_COMMAND=minor # major | minor | patch
# dry run
$ deno task publish:dry ${NPM_VERSION_SUB_COMMAND}
# run
$ deno task publish:run ${NPM_VERSION_SUB_COMMAND}
$ git push --tags && git push