From 945f1390cc899653ffa8b62bbc37faa0b479e4eb Mon Sep 17 00:00:00 2001 From: Matthew Downs Date: Fri, 9 Apr 2021 12:01:53 -0500 Subject: [PATCH] Update --- package.json | 2 +- scripts/postbuild.js | 13 ++++++++----- src/types/CryptoCurrencies.ts | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6f22109..e52c582 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wardenfinance/currency", - "version": "1.0.0", + "version": "0.0.0", "private": true, "description": "JavaScript library for dealing with different currencies.", "main": "dist/index.js", diff --git a/scripts/postbuild.js b/scripts/postbuild.js index 46a6272..8a25f27 100644 --- a/scripts/postbuild.js +++ b/scripts/postbuild.js @@ -5,10 +5,6 @@ const pkg = require('../package.json'); const basePath = resolve(__dirname, '../'); const distPath = resolve(__dirname, '../dist'); -if (existsSync(join(basePath, '.npmrc'))) { - copyFileSync(join(basePath, '.npmrc'), join(distPath, '.npmrc')); -} - writeFileSync(join(distPath, 'package.json'), JSON.stringify({ name: pkg.name, version: pkg.version, @@ -19,4 +15,11 @@ writeFileSync(join(distPath, 'package.json'), JSON.stringify({ license: pkg.license, bugs: pkg.bugs, homepage: pkg.homepage -}, null, 4)); \ No newline at end of file +}, null, 4)); + +copyFileSync(join(basePath, 'README.md'), join(distPath, 'README.md')); +copyFileSync(join(basePath, 'LICENSE'), join(distPath, 'LICENSE')); + +if (existsSync(join(basePath, '.npmrc'))) { + copyFileSync(join(basePath, '.npmrc'), join(distPath, '.npmrc')); +} diff --git a/src/types/CryptoCurrencies.ts b/src/types/CryptoCurrencies.ts index 6dbd92d..4175b53 100644 --- a/src/types/CryptoCurrencies.ts +++ b/src/types/CryptoCurrencies.ts @@ -1,4 +1,4 @@ -enum Cryptocurrencies { +enum CryptoCurrencies { ADA, ALGO, ATOM, @@ -19,4 +19,4 @@ enum Cryptocurrencies { XRP } -export default Cryptocurrencies; +export default CryptoCurrencies;