Skip to content

Commit

Permalink
rename tsconfig files, and update output dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
aruniverse committed Sep 30, 2020
1 parent b4f76be commit 21a9549
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tsconfig.json → cjs.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"outDir": "./lib",
"outDir": "./cjs",
"downlevelIteration": true,
"allowJs": true
},
"include": ["./src/**/*.ts*"],
"exclude": ["lib", "build", "node_modules"]
"exclude": ["cjs", "esm", "node_modules"]
}
4 changes: 2 additions & 2 deletions dev.tsconfig.json → esm.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"outDir": "./build",
"outDir": "./esm",
"downlevelIteration": true,
"allowJs": true
},
"include": ["./src/**/*.ts*"],
"exclude": ["lib", "build", "node_modules"]
"exclude": ["cjs", "esm", "node_modules"]
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "adblock-detect-react",
"version": "1.0.0",
"version": "1.0.1",
"description": "Provides utilities to check if ad block is enabled on a page via both a React hook and a wrapper component.",
"main": "lib/index.js",
"module": "build/index.js",
"types": "lib/index.d.ts",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "cjs/index.d.ts",
"author": "https://github.com/aruniverse",
"license": "MIT",
"repository": {
"url": "https://github.com/aruniverse/adblock-detect-react",
"type": "git"
},
"files": [
"lib/**/*",
"build/**/*"
"cjs/**/*",
"esm/**/*"
],
"keywords": [
"react",
Expand All @@ -24,10 +24,10 @@
"detect"
],
"scripts": {
"build": "concurrently yarn:build:prod yarn:build:dev",
"build:prod": "tsc -b",
"build:dev": "tsc -p dev.tsconfig.json",
"clean": "rimraf lib build",
"build": "concurrently yarn:build:cjs yarn:build:esm",
"build:cjs": "tsc -p cjs.tsconfig.json",
"build:esm": "tsc -p esm.tsconfig.json",
"clean": "rimraf cjs esm",
"rebuild": "yarn clean && yarn build",
"publish:local": "yarn rebuild && yarn pack"
},
Expand Down

0 comments on commit 21a9549

Please sign in to comment.