diff options
author | 2021-04-21 11:14:44 -0500 | |
---|---|---|
committer | 2021-04-21 11:14:44 -0500 | |
commit | 54409a0702e4fe41e44420db9c603124207ecb20 (patch) | |
tree | 2ad25e9e23887ab46edab48e832dfd3ae104f041 /src | |
parent | 76932822b8fff54e56812b7fc90450904ad276ae (diff) | |
download | astro-54409a0702e4fe41e44420db9c603124207ecb20.tar.gz astro-54409a0702e4fe41e44420db9c603124207ecb20.tar.zst astro-54409a0702e4fe41e44420db9c603124207ecb20.zip |
Prettier support for `.astro` files (#106)
* docs: fix readme
* chore: scaffold prettier plugin
* chore(prettier): switch to cjs
* test(prettier): scaffold prettier tests
* test(prettier): add simple prettier tests
* feat(prettier): first pass
* refactor: expose parser as CJS export
* test(prettier): add long expression
* refactor(prettier): use Astro parser + built-in prettier doc for prettier plugin
* chore: remove parser from git
* chore: add prettier-plugin-astro `build` to workflow
* chore: update package-lock
* chore: do not build prettier-plugin-astro
* fix: update engines
* chore: remove NPM restriction
* chore: fix workflow paths
* chore: update build script
* test: fix prettier expr test
* chore: fix parser build on windows
* refactor: add parser tsconfig, extending base config
* chore: relax ban-ts-comment
* chore: fix lint issue
Co-authored-by: Nate Moore <nate@skypack.dev>
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.ts b/src/runtime.ts index c66f3f114..6a4702a78 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -229,13 +229,13 @@ interface RuntimeOptions { logging: LogOptions; } -/** Create a new Snowpack instance to power Astro */ interface CreateSnowpackOptions { env: Record<string, any>; mode: RuntimeMode; resolvePackageUrl?: (pkgName: string) => Promise<string>; } +/** Create a new Snowpack instance to power Astro */ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackOptions) { const { projectRoot, astroRoot, extensions } = astroConfig; const { env, mode, resolvePackageUrl } = options; |