Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,19 @@ jobs:
- name: Compile
run: npm run compile

# The new --experimental-strip-types option conflicts with `ts-node`. Disable it if it's supported.
# See: https://github.com/TypeStrong/ts-node/issues/2152
# TODO: switch to native typescript support once node<22 are dropped
- name: Check NODE_OPTIONS
id: node-options
run: |
echo "NODE_OPTIONS=$(node --no-experimental-strip-types -e 'console.log("--no-experimental-strip-types")')" | tee -a "$GITHUB_OUTPUT"

- name: Run tests
run: npm run js-api-spec -- --sassPackage .. --sassSassRepo ../language
working-directory: sass-spec
env:
NODE_OPTIONS: ${{ steps.node-options.outputs.NODE_OPTIONS }}

deploy_npm:
name: Deploy npm
Expand Down
2 changes: 1 addition & 1 deletion lib/src/compiler-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const compilerCommand = (() => {
try {
return [
process.execPath,
p.join(p.dirname(require.resolve('sass')), 'sass.js'),
p.join(p.dirname(require.resolve('sass')), 'sass.js'), // eslint-disable-line n/no-extraneous-require
];
} catch (e) {
if (e.code !== 'MODULE_NOT_FOUND') {
Expand Down
Loading