Skip to content

Commit

Permalink
Release v0.3.0 (#3)
Browse files Browse the repository at this point in the history
- fix: publish action should use npm, not yarn
- feat: add method getKeys()
- fix: update yarn.lock
  • Loading branch information
maxswjeon authored Apr 15, 2023
2 parents 9aab1ff + 2869059 commit e48a29c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
- name: Build package
run: yarn build
- name: Publish package
run: yarn publish --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"name": "flattype",
"version": "0.1.0",
"version": "0.3.0",
"description": "A simple library for creating flat types",
"main": "dist/index.js",
"main": "dist/Flat.js",
"module": "dist/Flat.js",
"types": "dist/Flat.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/maxswjeon/flattype.git"
Expand Down
4 changes: 4 additions & 0 deletions src/Flat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,8 @@ export default class Flat {

return this;
}

getKeys() {
return Object.keys(this.flat);
}
}

0 comments on commit e48a29c

Please sign in to comment.