Skip to content

Commit

Permalink
Merge branch 'master' of github.com:privatenumber/pkgroll into subpat…
Browse files Browse the repository at this point in the history
…h-exports
  • Loading branch information
privatenumber committed Jul 19, 2024
2 parents cc4c29d + ef6265c commit 1c2c24c
Show file tree
Hide file tree
Showing 11 changed files with 1,287 additions and 1,407 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ Pass in a Node.js target that that doesn't support it to strip the `node:` proto
pkgroll --target=node12.19
```

### Custom `tsconfig.json` path

By default, _Pkgroll_ looks for `tsconfig.json` configuration file in the current working directory. You can pass in a custom `tsconfig.json` path with the `--tsconfig` flag:

```sh
pkgroll --tsconfig=tsconfig.build.json
```

### Export condition

Similarly to the target, the export condition specifies which fields to read from when evaluating [export](https://nodejs.org/api/packages.html#exports) and [import](https://nodejs.org/api/packages.html#imports) maps.
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,32 @@
},
"dependencies": {
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-replace": "^5.0.7",
"@rollup/pluginutils": "^5.1.0",
"esbuild": "^0.20.1",
"esbuild": "^0.23.0",
"glob": "^11.0.0",
"magic-string": "^0.30.10",
"rollup": "^4.17.2"
"rollup": "^4.18.1"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/node": "^20.14.11",
"clean-pkg-json": "^1.2.0",
"cleye": "^1.3.2",
"execa": "^9.1.0",
"execa": "^9.3.0",
"fs-fixture": "^2.4.0",
"get-node": "^15.0.1",
"get-tsconfig": "^4.7.5",
"get-tsconfig": "^4.7.6",
"kolorist": "^1.8.0",
"lintroll": "^1.5.2",
"lintroll": "^1.7.1",
"manten": "^1.3.0",
"outdent": "^0.8.0",
"rollup-plugin-dts": "6.1.1",
"tsx": "^4.10.5",
"type-fest": "^4.18.2",
"typescript": "^5.4.5"
"tsx": "^4.16.2",
"type-fest": "^4.22.1",
"typescript": "^5.5.3"
}
}
Loading

0 comments on commit 1c2c24c

Please sign in to comment.