Skip to content

Commit

Permalink
fix: Updated types layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogunPanda committed Oct 12, 2022
1 parent c49cbae commit 88a14bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
],
"type": "module",
"exports": "./dist/index.js",
"typings": "./types/index.d.ts",
"types": "./types/index.d.ts",
"types": "./dist/index.d.ts",
"scripts": {
"dev": "swc -s -w -d dist src",
"prebuild": "rm -rf dist types && npm run typecheck && npm run lint",
"build": "swc --delete-dir-on-start -d dist src",
"prebuild": "rm -rf dist && npm run lint",
"build": "swc -d dist src",
"postbuild": "tsc -p . --emitDeclarationOnly",
"format": "prettier -w src test",
"typecheck": "tsc -p . --emitDeclarationOnly",
"lint": "eslint src test",
"test": "c8 -c test/config/c8-local.json tap --rcfile=test/config/tap.yml test/*.test.ts",
"test:ci": "c8 -c test/config/c8-ci.json tap --rcfile=test/config/tap.yml --no-color test/*.test.ts",
Expand All @@ -39,25 +38,25 @@
"postpublish": "git push origin && git push origin -f --tags"
},
"dependencies": {
"acquerello": "^1.0.9",
"acquerello": "^1.0.10",
"hdr-histogram-js": "^3.0.0",
"table": "^6.8.0"
},
"devDependencies": {
"@cowtech/eslint-config": "^8.7.2",
"@cowtech/eslint-config": "^8.7.5",
"@swc/cli": "^0.1.57",
"@swc/core": "^1.2.245",
"@types/node": "^18.7.14",
"@swc/core": "^1.3.7",
"@types/node": "^18.8.4",
"@types/sinon": "^10.0.13",
"@types/tap": "^15.0.7",
"c8": "^7.12.0",
"chokidar": "^3.5.3",
"prettier": "^2.7.1",
"proxyquire": "^2.1.3",
"sinon": "^14.0.0",
"sinon": "^14.0.1",
"tap": "^16.3.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.2"
"typescript": "^4.8.4"
},
"engines": {
"node": ">=14.15.0"
Expand Down
1 change: 0 additions & 1 deletion test/fixture/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const replacements: { [key: string]: string } = { 1: 'a', 2: 'b', 3: 'c' }
const subject =
'123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123'

// eslint-disable-next-line @typescript-eslint/no-floating-promises
cronometro(
{
single() {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"jsx": "preserve",
"declaration": true,
"outDir": "dist",
"declarationDir": "types",
"allowJs": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 88a14bd

Please sign in to comment.