Skip to content

Commit

Permalink
ascii-54: fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
gtktsc committed Sep 18, 2023
1 parent 853259b commit 07c6a49
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 55 deletions.
11 changes: 0 additions & 11 deletions fixup.sh

This file was deleted.

16 changes: 4 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{
"name": "simple-ascii-chart",
"version": "4.0.1",
"version": "4.0.2",
"description": "Simple ascii chart generator",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
"exports": {
".": {
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js"
}
},
"types": "dist/types/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "tsc-watch -p tsconfig.json --preserveWatchOutput -w --onSuccess 'node ./dist/index.js'",
"lint": "eslint . --ext .ts,.js",
"lint:fix": "eslint . --ext .ts,.js --fix",
"test": "jest --coverage",
"test:watch": "jest --watch",
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist/types",
"build": "rm -fr dist/* && tsc -p tsconfig-mjs.json && tsc -p tsconfig-cjs.json && ./fixup.sh && npm run build:types",
"build": "tsc -p tsconfig.build.json",
"prepare": "husky install",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint",
Expand Down
11 changes: 0 additions & 11 deletions tsconfig-cjs.json

This file was deleted.

10 changes: 0 additions & 10 deletions tsconfig-mjs.json

This file was deleted.

7 changes: 7 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"**/__tests__/*"
]
}
20 changes: 9 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"include": ["src"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"alwaysStrict": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"rootDir": "src",
"outDir": "dist",
"allowJs": true,
"esModuleInterop": true,
"declaration": true,
"strict": true,
"skipLibCheck": true,
"typeRoots": ["./src/types", "node_modules/@types"],
"target": "es2020",
"rootDirs": ["src"],
"downlevelIteration": true,
},
}
"include": ["./src"],
"target": "esnext",
}

0 comments on commit 07c6a49

Please sign in to comment.