Gathering detailed insights and metrics for @diahkomalasarinpm/ducimus-placeat-alias
Gathering detailed insights and metrics for @diahkomalasarinpm/ducimus-placeat-alias
Gathering detailed insights and metrics for @diahkomalasarinpm/ducimus-placeat-alias
Gathering detailed insights and metrics for @diahkomalasarinpm/ducimus-placeat-alias
npm install @diahkomalasarinpm/ducimus-placeat-alias
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
33
Simple utilities for modern npm packages.
1npm install @diahkomalasarinpm/ducimus-placeat-alias -D
1# Initialize a new package 2pnpx @diahkomalasarinpm/ducimus-placeat-alias@latest init my-package 3 4# In a Node.js package directory with `package.json` present 5 6# Check the package 7pkg-utils check 8 9# Build the package 10pkg-utils build 11 12# Watch the package 13pkg-utils watch
Run pkg-utils -h
for more information on CLI usage.
@diahkomalasarinpm/ducimus-placeat-alias
reads most of its configuration from package.json
. But sometimes you need more
control. You may then add a configuration file named package.config.ts
(or .js
, .cjs
, or
.mjs
).
1// package.config.ts
2
3import {defineConfig} from '@diahkomalasarinpm/ducimus-placeat-alias'
4
5export default defineConfig({
6 extract: {
7 rules: {
8 // do not require internal members to be prefixed with `_`
9 'ae-internal-missing-underscore': 'off',
10 },
11 },
12
13 // the path to the tsconfig file for distributed builds
14 tsconfig: 'tsconfig.dist.json',
15})
bundles
PkgBundle[]
undefined
An array of entry points to bundle. This is useful if you want to bundle something that should not be exported by the package, e.g. CLI scripts or Node.js workers.
define
Record<string, string | number | boolean | null | undefined>
{}
An object defining globals within the package.
dist
string
'./dist'
The path to the directory to which bundle and chunk files should be written.
exports
PkgConfigProperty<PkgExports>
"exports"
in package.json
Override or modify the value of the exports
before it’s parsed internally.
extract
1{ 2 rules?: { 3 'ae-forgotten-export'?: PkgRuleLevel 4 'ae-incompatible-release-tags'?: PkgRuleLevel 5 'ae-internal-missing-underscore'?: PkgRuleLevel 6 'ae-missing-release-tag'?: PkgRuleLevel 7 } 8}
undefined
Configure the level of reporting of API Extractor (which is used to bundle the type definitions, as well as lint the TSDoc of the package).
external
string[]
[]
Packages to exclude from bundles.
jsx
'transform' | 'preserve' | 'automatic'
'automatic'
Strategy for bundling JSX.
jsxFactory
string
'createElement'
The name of the function that creates JSX elements.
jsxFragment
string
'Fragment'
The name of JSX fragment elements.
jsxImportSource
string
'react'
The name of the library from which to import JSX factory and fragment names.
legacyExports
boolean
false
Build package with support for legacy exports (writes root <export>.js
files). Use this if you
need to support older bundlers.
minify
boolean
false
Whether to minify the bundled JavaScript.
rollup.plugins
PkgConfigProperty<RollupPlugin[]>
[]
Rollup plugins to load when bundling.
runtime
'*' | 'browser' | 'node'
'*'
Default runtime of package exports
sourcemap
boolean
true
Whether to include source map files.
src
string
'./src'
The path to the directory in which source code is located.
tsconfig
string
'tsconfig.json'
The path to the TypeScript configuration file.
MIT
No vulnerabilities found.
No security vulnerabilities found.