@shipstatic/types 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -398,6 +398,7 @@ export declare const UNBUILT_PROJECT_MARKERS: ReadonlySet<string>;
398
398
  *
399
399
  * @example
400
400
  * hasUnbuiltMarker('node_modules/react/index.js') // true
401
+ * hasUnbuiltMarker('package.json') // true
401
402
  * hasUnbuiltMarker('dist/index.html') // false
402
403
  */
403
404
  export declare function hasUnbuiltMarker(filePath: string): boolean;
package/dist/index.js CHANGED
@@ -258,12 +258,14 @@ export function isBlockedExtension(filename) {
258
258
  */
259
259
  export const UNBUILT_PROJECT_MARKERS = new Set([
260
260
  'node_modules',
261
+ 'package.json',
261
262
  ]);
262
263
  /**
263
264
  * Check if a file path contains an unbuilt project marker directory.
264
265
  *
265
266
  * @example
266
267
  * hasUnbuiltMarker('node_modules/react/index.js') // true
268
+ * hasUnbuiltMarker('package.json') // true
267
269
  * hasUnbuiltMarker('dist/index.html') // false
268
270
  */
269
271
  export function hasUnbuiltMarker(filePath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,6 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^24.10.9",
37
+ "husky": "^9.1.7",
37
38
  "typescript": "^5.9.3",
38
39
  "vitest": "^2.1.8"
39
40
  },
package/src/index.ts CHANGED
@@ -581,6 +581,7 @@ export function isBlockedExtension(filename: string): boolean {
581
581
  */
582
582
  export const UNBUILT_PROJECT_MARKERS: ReadonlySet<string> = new Set([
583
583
  'node_modules',
584
+ 'package.json',
584
585
  ]);
585
586
 
586
587
  /**
@@ -588,6 +589,7 @@ export const UNBUILT_PROJECT_MARKERS: ReadonlySet<string> = new Set([
588
589
  *
589
590
  * @example
590
591
  * hasUnbuiltMarker('node_modules/react/index.js') // true
592
+ * hasUnbuiltMarker('package.json') // true
591
593
  * hasUnbuiltMarker('dist/index.html') // false
592
594
  */
593
595
  export function hasUnbuiltMarker(filePath: string): boolean {