Skip to content

Commit

Permalink
Merge pull request #183 from technote-space/release/next-v0.3.1
Browse files Browse the repository at this point in the history
release: v0.3.2
  • Loading branch information
technote-space authored Nov 30, 2022
2 parents 03aaf67 + 40add14 commit 144234c
Show file tree
Hide file tree
Showing 6 changed files with 703 additions and 594 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/ts-package-template",
"version": "0.3.1",
"version": "0.3.2",
"description": "Template for npm package.",
"keywords": [
"template"
Expand Down Expand Up @@ -30,7 +30,7 @@
"dist"
],
"scripts": {
"build": "tsc && rm -f dist/*.js && rollup -c",
"build": "tsc --emitDeclarationOnly && rollup -c",
"cover": "vitest run --coverage",
"postinstall": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/husky ] || husky install",
"lint": "eslint 'src/**/*.ts' --cache",
Expand All @@ -44,22 +44,22 @@
},
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@rollup/plugin-typescript": "^8.3.3",
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@rollup/plugin-typescript": "^10.0.1",
"@sindresorhus/tsconfig": "^3.0.1",
"@types/node": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"c8": "^7.11.3",
"eslint": "^8.19.0",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vitest/coverage-c8": "^0.25.3",
"eslint": "^8.28.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"husky": "^8.0.2",
"lint-staged": "^13.0.4",
"pinst": "^3.0.0",
"rollup": "^2.75.7",
"typescript": "^4.7.4",
"vitest": "^0.17.0"
"rollup": "^3.5.0",
"typescript": "^4.9.3",
"vitest": "^0.25.3"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import pluginTypescript from '@rollup/plugin-typescript';

const common = {
input: 'src/index.ts',
external: ['vitest'],
plugins: [
pluginTypescript(),
],
Expand Down
2 changes: 1 addition & 1 deletion src/constant.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { WAIT_MS, INTERVAL_MS } from './constant';
import { WAIT_MS, INTERVAL_MS } from './constant.js';

describe('INTERVAL_MS', () => {
it('should return actual value', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-magic-numbers */
import { describe, expect, it, vi } from 'vitest';
import { add, repeat } from '../src';
import { add, repeat } from './index.js';

describe('add', () => {
it('should add number', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WAIT_MS } from './constant';
import { WAIT_MS } from './constant.js';

export const add = (num1: number, num2: number): number => num1 + num2;

Expand Down
Loading

0 comments on commit 144234c

Please sign in to comment.