-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add postinstall script to output how to use it
`eleventy-sass` uses an experimental feature of Node.js 22 and users must add `--experimental-require-module` option to their Node commands. That is a breaking change and users must be notified of it.
- Loading branch information
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const { yellow, green } = require("kleur"); | ||
|
||
console.log(yellow("`eleventy-sass` uses an experimental feature of Node 22 to load Eleventy 3 internal modules. You should add \"--experimental-require-module\" option to your Node commands. Therefore, instead of running `npx @11ty/eleventy`, use the following command:")); | ||
console.log(green("npx --node-options=\"--experimental-require-module\" @11ty/eleventy")); | ||
console.log("HOGE"); | ||
console.debug("FOO"); |