Skip to content

Commit

Permalink
fix: fix types export, readme, change postinstall to prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Steblyuk committed Sep 5, 2021
1 parent d660839 commit dc45924
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Custom Types Serializer

[![npm](https://img.shields.io/npm/v/custom-types-serializer/latest.svg)](https://www.npmjs.com/package/custom-types-serializer)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Enables you to serialize any custom javascript type or structure of any complexity.

Comes with a pre-built `jsSerializer` for most common javascript types.
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
"name": "custom-types-serializer",
"packageManager": "[email protected]",
"description": "Serialize any custom javascript type or structure of any complexity.",
"version": "0.0.0",
"version": "1.0.0",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/cjs/index.d.ts",
"author": "Dmitry Steblyuk",
"repository": "https://github.com/dmitrysteblyuk/custom-types-serializer.git",
"license": "MIT",
"keywords": [
"serialize",
"javascript"
],
"files": [
"lib",
"!lib/esm/**/*.d.ts"
"lib"
],
"scripts": {
"postinstall": "yarn add-pre-commit-hook",
"prepare": "yarn add-pre-commit-hook",
"add-pre-commit-hook": "node -e \"fs.writeFileSync('.git/hooks/pre-commit', ['#!/bin/sh', 'yarn lint-staged', ''].join('\\\\n'), {mode: fs.constants.S_IRWXU})\"",
"build": "yarn build:clean && yarn build:cjs && yarn build:esm",
"build:clean": "rimraf lib",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './core';
export * from './types.d';
export * from './types';
export {Serializer, TypedSerializerConfig} from './serializer';
export * from './serializers-impl';
export * from './js-serializer-impl';
File renamed without changes.

0 comments on commit dc45924

Please sign in to comment.