Socket
Book a DemoInstallSign in
Socket

@sitchco/project-scanner

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitchco/project-scanner - npm Package Compare versions

Comparing version

to
1.0.3

6

CHANGELOG.md
# @sitchco/project-scanner
## 1.0.3
### Patch Changes
- Support JSX file handling across tools and configurations
## 1.0.2

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@sitchco/project-scanner",
"version": "1.0.2",
"version": "1.0.3",
"description": "Scans project structure for Sitchco modules and assets",

@@ -5,0 +5,0 @@ "type": "module",

@@ -16,3 +16,3 @@ # @sitchco/project-scanner

* **Module Directory:** Any direct subdirectory located inside the top-level `modules/` folder is considered a module.
* **Asset Entry Points:** Within each module, the scanner looks for buildable assets (`.js`, `.mjs`, `.scss`, `.css`) in these specific locations:
* **Asset Entry Points:** Within each module, the scanner looks for buildable assets (`.js`, `.mjs`, `.jsx`, `.scss`, `.css`) in these specific locations:
* The module's root

@@ -19,0 +19,0 @@ * `assets/scripts/`

@@ -18,3 +18,3 @@ import { glob } from 'glob';

export const ENTRY_FILE_PATTERN = '*.{js,mjs,scss,css}';
export const ENTRY_FILE_PATTERN = '*.{js,mjs,jsx,scss,css}';

@@ -97,3 +97,3 @@ /**

/**
* Scans module directories for entry points (JS/MJS/SCSS files).
* Scans module directories for entry points (JS/MJS/JSX/SCSS files).
* It looks in the module root, module assets/scripts|styles folders,

@@ -131,3 +131,3 @@ * block roots (within the blocks folder), and block assets/scripts|styles folders.

/**
* Gets the list of all entry point files (JS/MJS/SCSS) found in standard locations
* Gets the list of all entry point files (JS/MJS/JSX/SCSS) found in standard locations
* across all module directories, using cache if available.

@@ -134,0 +134,0 @@ * (Locations include module root, module assets, block roots, block assets).