first commit
This commit is contained in:
15
node_modules/stylelint/lib/utils/isPathNotFoundError.cjs
generated
vendored
Normal file
15
node_modules/stylelint/lib/utils/isPathNotFoundError.cjs
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
const node_util = require('node:util');
|
||||
|
||||
/**
|
||||
* @param {unknown} error
|
||||
* @returns {error is NodeJS.ErrnoException}
|
||||
*/
|
||||
function isPathNotFoundError(error) {
|
||||
return node_util.types.isNativeError(error) && 'code' in error && error.code === 'ENOENT';
|
||||
}
|
||||
|
||||
module.exports = isPathNotFoundError;
|
||||
Reference in New Issue
Block a user