From dc4592497d5342a9b02d836d664b2ef134fce890 Mon Sep 17 00:00:00 2001 From: Dmitry Steblyuk Date: Sun, 5 Sep 2021 11:57:25 +0200 Subject: [PATCH] fix: fix types export, readme, change postinstall to prepare --- README.md | 3 +++ package.json | 11 +++++++---- src/index.ts | 2 +- src/{types.d.ts => types.ts} | 0 4 files changed, 11 insertions(+), 5 deletions(-) rename src/{types.d.ts => types.ts} (100%) diff --git a/README.md b/README.md index e85125c..7a8800b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index a0b40c0..09ee769 100644 --- a/package.json +++ b/package.json @@ -2,19 +2,22 @@ "name": "custom-types-serializer", "packageManager": "yarn@3.0.2", "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", diff --git a/src/index.ts b/src/index.ts index dc6a533..774c10f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'; diff --git a/src/types.d.ts b/src/types.ts similarity index 100% rename from src/types.d.ts rename to src/types.ts