@stylable/node
Advanced tools
Comparing version 5.8.0 to 5.9.0
@@ -10,5 +10,5 @@ "use strict"; | ||
const fs_1 = __importDefault(require("fs")); | ||
const common_1 = require("./common"); | ||
const resolve_namespace_1 = require("./resolve-namespace"); | ||
const HOOK_EXTENSION = '.css'; | ||
const defaultStylableMatcher = (filename) => !!filename.match(/\.st\.css$/); | ||
function attachHook({ matcher, afterCompile, stylableConfig, runtimePath, ignoreJSModules, configPath, } = {}) { | ||
@@ -38,3 +38,3 @@ let options = { | ||
if (!matcher) { | ||
matcher = defaultStylableMatcher; | ||
matcher = common_1.defaultStylableMatcher; | ||
} | ||
@@ -41,0 +41,0 @@ const prevHook = require.extensions[HOOK_EXTENSION]; |
{ | ||
"name": "@stylable/node", | ||
"version": "5.8.0", | ||
"version": "5.9.0", | ||
"description": "Integrate Stylable into your node application", | ||
@@ -10,4 +10,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^5.8.0", | ||
"@stylable/module-utils": "^5.8.0", | ||
"@stylable/build-tools": "^5.9.0", | ||
"@stylable/core": "^5.9.0", | ||
"@stylable/module-utils": "^5.9.0", | ||
"find-config": "^1.0.0" | ||
@@ -20,2 +21,3 @@ }, | ||
"register.js", | ||
"loader.js", | ||
"!*/tsconfig.{json,tsbuildinfo}" | ||
@@ -22,0 +24,0 @@ ], |
@@ -5,2 +5,3 @@ import type { StylableConfig } from '@stylable/core'; | ||
import fs from 'fs'; | ||
import { defaultStylableMatcher } from './common'; | ||
import { resolveNamespace } from './resolve-namespace'; | ||
@@ -19,4 +20,2 @@ | ||
const defaultStylableMatcher = (filename: string) => !!filename.match(/\.st\.css$/); | ||
export function attachHook({ | ||
@@ -23,0 +22,0 @@ matcher, |
Sorry, the diff of this file is not supported yet
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
31091
34
455
4
+ Added@stylable/build-tools@^5.9.0
+ Added@stylable/build-tools@5.19.0(transitive)
Updated@stylable/core@^5.9.0