last step of #src -> @/ (#57664)
This commit is contained in:
@@ -2,7 +2,7 @@ import fs from 'fs'
|
||||
import path from 'path'
|
||||
|
||||
import frontmatter from '@gr2m/gray-matter'
|
||||
import { getLogLevelNumber } from '#src/observability/logger/lib/log-levels.js'
|
||||
import { getLogLevelNumber } from './src/observability/logger/lib/log-levels.js'
|
||||
|
||||
// Replace imports with hardcoded values
|
||||
const ROOT = process.env.ROOT || '.'
|
||||
|
||||
@@ -9,11 +9,6 @@
|
||||
"url": "https://github.com/github/docs"
|
||||
},
|
||||
"type": "module",
|
||||
"imports": {
|
||||
"#src/*": {
|
||||
"default": "./src/*"
|
||||
}
|
||||
},
|
||||
"exports": "./src/frame/server.ts",
|
||||
"scripts": {
|
||||
"add-content-type": "tsx src/content-render/scripts/add-content-type.ts",
|
||||
|
||||
@@ -8,7 +8,7 @@ import path from 'path'
|
||||
import { program } from 'commander'
|
||||
import frontmatter from '@/frame/lib/read-frontmatter'
|
||||
import walkFiles from '@/workflows/walk-files'
|
||||
import { contentTypesEnum } from '#src/frame/lib/frontmatter.js'
|
||||
import { contentTypesEnum } from '@/frame/lib/frontmatter'
|
||||
import type { MarkdownFrontmatter } from '@/types'
|
||||
|
||||
const RESPONSIBLE_USE_STRING = 'responsible-use'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import cheerio from 'cheerio'
|
||||
import { describe, expect, test } from 'vitest'
|
||||
|
||||
import { renderContent } from '#src/content-render/index'
|
||||
import { renderContent } from '@/content-render/index'
|
||||
import { EOL } from 'os'
|
||||
|
||||
// Use platform-specific line endings for realistic tests when templates have
|
||||
|
||||
Reference in New Issue
Block a user