rollup-plugin-sass
Advanced tools
Comparing version 1.13.1 to 1.13.2
@@ -44,3 +44,3 @@ "use strict"; | ||
basedir: (0, path_1.dirname)(prevUrl), | ||
extensions: ['.scss', '.css', '.sass'], | ||
extensions: ['.scss', '.sass'], | ||
}; | ||
@@ -65,3 +65,3 @@ try { | ||
if (!inCss) | ||
return; | ||
return Promise.resolve(); | ||
const { processor } = rollupOptions; | ||
@@ -133,5 +133,7 @@ return Promise.resolve() | ||
.then(([res, codeResult]) => { | ||
res.stats.includedFiles.forEach(i => { this.addWatchFile(i); }); | ||
res.stats.includedFiles.forEach((filePath) => { | ||
this.addWatchFile(filePath); | ||
}); | ||
return { | ||
code: codeResult, | ||
code: codeResult || '', | ||
map: { mappings: res.map ? res.map.toString() : '' } | ||
@@ -138,0 +140,0 @@ }; |
{ | ||
"name": "rollup-plugin-sass", | ||
"version": "1.13.1", | ||
"version": "1.13.2", | ||
"description": "Rollup Sass files.", | ||
@@ -15,3 +15,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"prepare": "npm run build && npm test", | ||
"prepare": "npm run build && npm test && husky", | ||
"build": "npm run build-downlevel-dts && tsc --project tsconfig.build.plugin.json && tsc --project tsconfig.build.insertStyle.json", | ||
@@ -23,3 +23,4 @@ "build-downlevel-dts": "node scripts/clean-and-run-downlevel-dts.js", | ||
"output-coverage-lcov": "nyc report --reporter=text-lcov > coverage/tests.lcov", | ||
"test:rollup.config.spec.ts": "tsc --project tsconfig.spec.json --noEmit" | ||
"test:rollup.config.spec.ts": "tsc --project tsconfig.spec.json --noEmit", | ||
"commitlint": "commitlint --edit" | ||
}, | ||
@@ -69,2 +70,4 @@ "standard": { | ||
"@ava/typescript": "^3.0.1", | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/config-conventional": "^19.2.2", | ||
"@types/node": "^18.14.6", | ||
@@ -76,2 +79,3 @@ "@types/resolve": "^0.0.8", | ||
"eslint": "^7.32.0", | ||
"husky": "^9.0.11", | ||
"icss-utils": "^5.1.0", | ||
@@ -78,0 +82,0 @@ "jsdom": "^17.0.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26009
252
18