UNPKG

react-readonly-guard

Version:

Protect critical files by marking them @readonly. Prevent commits unless files are unlocked with @unlock.

8 lines (7 loc) 323 B
// helper to ensure lib is present before publishing; noop for consumers const fs = require('fs'); const path = require('path'); const lib = path.join(__dirname, '..', 'lib', 'check-readonly.cjs'); if (!fs.existsSync(lib)) { console.warn('lib/check-readonly.cjs missing. Build your package before publishing.'); }