update package.json
This commit is contained in:
parent
4e7ae2075d
commit
24f50220e1
3 changed files with 7 additions and 16 deletions
|
@ -4,8 +4,9 @@ A next-generation static-site generator with partial hydration. Use your favorit
|
|||
|
||||
## 🔧 Setup
|
||||
|
||||
```
|
||||
npm install astro
|
||||
```bash
|
||||
# currently hidden during private beta, please don't share :)
|
||||
npm install astro@shhhhh
|
||||
```
|
||||
|
||||
## 🧞 Development
|
||||
|
|
14
package.json
14
package.json
|
@ -1,8 +1,6 @@
|
|||
{
|
||||
"name": "astro",
|
||||
"version": "0.0.1",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
"version": "0.0.3",
|
||||
"author": "Skypack",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
@ -35,12 +33,8 @@
|
|||
"@snowpack/plugin-vue": "^2.4.0",
|
||||
"@vue/server-renderer": "^3.0.11",
|
||||
"acorn": "^7.4.0",
|
||||
"acorn-jsx": "^5.3.1",
|
||||
"astring": "^1.7.0",
|
||||
"autoprefixer": "^10.2.5",
|
||||
"css-tree": "^1.1.2",
|
||||
"deepmerge": "^4.2.2",
|
||||
"domhandler": "^4.0.0",
|
||||
"cheerio": "^1.0.0-rc.5",
|
||||
"es-module-lexer": "^0.4.1",
|
||||
"esbuild": "^0.10.1",
|
||||
"estree-walker": "^3.0.0",
|
||||
|
@ -48,7 +42,6 @@
|
|||
"find-up": "^5.0.0",
|
||||
"github-slugger": "^1.3.0",
|
||||
"gray-matter": "^4.0.2",
|
||||
"htmlparser2": "^6.0.0",
|
||||
"kleur": "^4.1.4",
|
||||
"locate-character": "^2.0.5",
|
||||
"magic-string": "^0.25.3",
|
||||
|
@ -69,7 +62,6 @@
|
|||
"sass": "^1.32.8",
|
||||
"snowpack": "^3.2.2",
|
||||
"svelte": "^3.35.0",
|
||||
"tiny-glob": "^0.2.8",
|
||||
"vue": "^3.0.11",
|
||||
"yargs-parser": "^20.2.7"
|
||||
},
|
||||
|
@ -86,12 +78,10 @@
|
|||
"@types/yargs-parser": "^20.2.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.18.0",
|
||||
"@typescript-eslint/parser": "^4.18.0",
|
||||
"cheerio": "^1.0.0-rc.5",
|
||||
"concurrently": "^6.0.0",
|
||||
"eslint": "^7.22.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-plugin-prettier": "^3.3.1",
|
||||
"nodemon": "^2.0.7",
|
||||
"prettier": "^2.2.1",
|
||||
"typescript": "^4.2.3",
|
||||
"uvu": "^0.5.1"
|
||||
|
|
|
@ -5,7 +5,7 @@ import type { JsxItem, TransformResult } from '../@types/astro';
|
|||
|
||||
import eslexer from 'es-module-lexer';
|
||||
import esbuild from 'esbuild';
|
||||
import glob from 'tiny-glob/sync.js';
|
||||
import { fdir, PathsOutput } from 'fdir';
|
||||
import path from 'path';
|
||||
import { walk } from 'estree-walker';
|
||||
import babelParser from '@babel/parser';
|
||||
|
@ -419,7 +419,7 @@ function compileModule(module: Script, state: CodegenState, compileOptions: Comp
|
|||
if (cachedLookups.get(spec)) {
|
||||
found = cachedLookups.get(spec) as string[];
|
||||
} else {
|
||||
found = glob(spec, { cwd: path.dirname(state.filename), filesOnly: true });
|
||||
found = new fdir().glob(spec).withFullPaths().crawl(path.dirname(state.filename)).sync() as PathsOutput;
|
||||
cachedLookups.set(spec, found);
|
||||
miniGlobCache.set(state.filename, cachedLookups);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue