Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
618 B
Text
23 lines
618 B
Text
import { register } from 'module'
|
|
import { Hook, createAddHookMessageChannel } from '../../index.js'
|
|
// We've imported path here to ensure that the hook is still applied later even
|
|
// if the library is used here.
|
|
import * as path from 'path'
|
|
|
|
const { registerOptions, waitForAllMessagesAcknowledged } = createAddHookMessageChannel()
|
|
|
|
register('../../hook.mjs', import.meta.url, registerOptions)
|
|
|
|
Hook(['path'], (exports) => {
|
|
exports.sep = '@'
|
|
})
|
|
|
|
Hook(['os'], (exports) => {
|
|
exports.arch = function () {
|
|
return 'new_crazy_arch'
|
|
}
|
|
})
|
|
|
|
console.assert(path.sep !== '@')
|
|
|
|
await waitForAllMessagesAcknowledged()
|