fix: add precommit step for .well-known

This commit is contained in:
Lucas Smith
2024-02-02 04:00:28 +00:00
parent 1f142e334a
commit 9c4ec34a3c
7 changed files with 45 additions and 56593 deletions
+16
View 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,
});