Skip to content

Commit

Permalink
Merge pull request #26 from zigomir/updates
Browse files Browse the repository at this point in the history
Improve score on skypack.dev
  • Loading branch information
zigomir authored Oct 24, 2020
2 parents 78030ea + 6a8fe60 commit 254dcb5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cntdys",
"version": "0.5.0",
"version": "0.5.1",
"description": "more calendar for less bytes",
"keywords": [
"calendar"
Expand All @@ -12,19 +12,24 @@
"homepage": "https://github.com/zigomir/cntdys",
"author": "Ziga Vidic <[email protected]> (https://ziga.dev/)",
"license": "MIT",
"main": "dist/main.commonjs.js",
"module": "dist/main.js",
"unpkg": "dist/main.js",
"main": "./dist/main.commonjs.js",
"module": "./dist/main.js",
"unpkg": "./dist/main.js",
"type": "module",
"types": "dist/types/src/main.d.ts",
"types": "./dist/src/types.d.ts",
"files": [
"dist/"
],
"exports": {
"import": "./dist/main.js",
"require": "./dist/main.commonjs.js"
},
"scripts": {
"test": "yarn test:coverage && yarn test:bundlesize",
"test:dev": "uvu -r ts-node/register test",
"test:bundlesize": "bundlesize",
"test:coverage": "c8 --include=src yarn test:dev",
"test:coverage": "c8 --check-coverage --lines 100 --functions 100 --branches 100 --include=src/main.ts yarn test:dev",
"test:coverage:debug": "c8 --include=src/main.ts --reporter=html yarn test:dev",
"dev": "tsc --watch",
"clean": "rm -rf build/* && rm -rf dist/*",
"build:commonjs": "tsc --module CommonJS && cp build/src/main.js dist/main.commonjs.js",
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DayEnum, IDay, IMonth, MonthEnum, MonthNumber, Year } from './types'
export { DayEnum, IDay, IMonth, MonthEnum, MonthNumber, Year }

const isLeap = (year: Year) => year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0)

Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { calendarMonth, getDaysInMonth, getNextDay, getPreviousDay, getNextMonth, getPreviousMonth } from './main'
export type Year = number
export type MonthNumber = MonthEnum

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"noImplicitThis": true,
"noFallthroughCasesInSwitch": true,
"declaration": true,
"declarationDir": "dist/types"
"declarationDir": "dist"
},
"ts-node": {
"transpileOnly": true,
Expand Down

0 comments on commit 254dcb5

Please sign in to comment.