Enable pnpm
using Node.js's corepack
:
corepack enable
corepack prepare pnpm@latest --activate
pnpm install --no-frozen-lockfile
You need to first build the lib.
pnpm run build
pnpm run start
pnpm exec nx migrate nx@latest
To update the version and generate the associated changelog, use the following command:
pnpm exec changelogen --release --no-tag -r x.x.x
<type>(<scope>): <short summary>
│ │ │
│ │ └─⫸ Summary in present tense. Not capitalized. No period at the end.
│ │
│ └─⫸ Commit Scope: any
│
│
│
│
│
└─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|release|revert|test
The <type>
and <summary>
fields are mandatory, the (<scope>)
field is optional.
Must be one of the following:
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- ci: Changes to our CI configuration files and scripts (examples: CircleCi, SauceLabs)
- docs: Documentation only changes
- feat: A new feature
- fix: A bug fix
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- release: A release point in the repository
- revert: Reverting a change
- test: Adding missing tests or correcting existing tests
- Build for
esm
&cjs
@nx/esbuild:esbuild
- Does not support type declaration generation yet
- Sort of WIP: nrwl/nx#18213
- Does not support type declaration generation yet
@nx/dependency-checks
- There are some packages that we want to ignore because they are used internally or are necessary for compilation
- https://dev.to/this-is-learning/manage-nx-library-dependencies-with-the-nxdependency-checks-eslint-rule-2lem
@typescript-eslint/*
6
- Not yet supported on
nx
- Not yet supported on
eslint-plugin-unused-imports
^3.0.0
- Only compatible with
@typescript-eslint/*
^6.0.0
- Only compatible with
- There's a problem with
"type": "module"
, we need to set the extension as.cts
- Version
^3.0.0
is not yet supported onnx