Releases: Amphiluke/less-compile-roots
Releases · Amphiluke/less-compile-roots
Update dependencies
Make a dual CommonJS/ES module package
The package is turned into a dual CommonJS/ES module. Now it can be imported either as a pure ES module (e.g. import {compileRoots} from "less-compile-roots"
) or as a CommonJS module (e.g. let {compileRoots} = require("less-compile-roots")
).
Breaking changes
- The minimum supported version of the Node.js engine is now 10.0.0.
- If you’re referring to the main package file directly rather than using a bare specifier, note that the file extension has changed to
.cjs
.
Improving & marking as stable
- Use Node’s native API for promisifying.
- Update dependencies.
- Minor package optimisation.
Refactoring
Revise async function usage.
Internals & API improvements
- Corrected the regex to address the case with Less variables named like
@importWhatever
. - The list of compiled entries now resolves the promise the
compileRoots()
method returns. - Added shortened forms of the
--help
and--version
command line parameters (-h
and-v
respectively).
Update .npmignore
Add output of npm pack
to .npmignore
Remove paths override
Remove unnecessary override of the Less paths
option.
CLI
Basic API for programmatic usage
Implement module’s basic API for programmatic usage