fix: add precommit step for .well-known
This commit is contained in:
@@ -8,4 +8,5 @@ const pdfjsDistPath = path.dirname(require.resolve('pdfjs-dist/package.json'));
|
||||
|
||||
const pdfWorkerPath = path.join(pdfjsDistPath, 'build', 'pdf.worker.min.js');
|
||||
|
||||
console.log(`Copying pdf.js to: ${path.resolve('./public/pdf.worker.min.js')}`);
|
||||
fs.copyFileSync(pdfWorkerPath, './public/pdf.worker.min.js');
|
||||
|
||||
16
scripts/copy-wellknown.cjs
Normal file
16
scripts/copy-wellknown.cjs
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const wellKnownPath = path.join(__dirname, '../.well-known');
|
||||
|
||||
console.log('Copying .well-known/ contents to apps');
|
||||
fs.cpSync(wellKnownPath, path.join(__dirname, '../apps/web/public/.well-known'), {
|
||||
recursive: true,
|
||||
});
|
||||
|
||||
fs.cpSync(wellKnownPath, path.join(__dirname, '../apps/marketing/public/.well-known'), {
|
||||
recursive: true,
|
||||
});
|
||||
Reference in New Issue
Block a user