mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
d8ceff5fac
* Implements templates from external repos * Adds a changeset
13 lines
No EOL
491 B
JavaScript
13 lines
No EOL
491 B
JavaScript
import execa from 'execa';
|
|
import path from 'path';
|
|
import { fileURLToPath, pathToFileURL } from 'url';
|
|
|
|
const GITHUB_SHA = process.env.GITHUB_SHA || execa.sync('git', ['rev-parse', 'HEAD']).stdout; // process.env.GITHUB_SHA will be set in CI; if testing locally execa() will gather this
|
|
const FIXTURES_DIR = path.join(fileURLToPath(path.dirname(import.meta.url)), 'fixtures');
|
|
const FIXTURES_URL = pathToFileURL(FIXTURES_DIR + '/');
|
|
|
|
export {
|
|
GITHUB_SHA,
|
|
FIXTURES_DIR,
|
|
FIXTURES_URL
|
|
}; |