diff --git a/packages/import-utils/src/create-sandbox/templates.ts b/packages/import-utils/src/create-sandbox/templates.ts index 582cc8d2..44b7c5a2 100644 --- a/packages/import-utils/src/create-sandbox/templates.ts +++ b/packages/import-utils/src/create-sandbox/templates.ts @@ -30,6 +30,7 @@ export function getMainFile(template: ITemplate) { case "reason": case "sapper": case "nest": + case "unibit": case "vuepress": case "styleguidist": return "package.json"; @@ -102,6 +103,10 @@ export function getTemplate( return "gridsome"; } + if (totalDependencies.indexOf("@stackbit/unibit") > -1) { + return "unibit"; + } + if (totalDependencies.indexOf("vuepress") > -1) { return "vuepress"; } diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index f51b652c..cb7c0425 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -51,6 +51,7 @@ export type ITemplate = | "vuepress" | "mdx-deck" | "quasar" + | "unibit" | "node"; export interface ISandbox { diff --git a/yarn.lock b/yarn.lock index 3462a0ff..306cab88 100644 --- a/yarn.lock +++ b/yarn.lock @@ -335,10 +335,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-8.9.2.tgz#94bb08914ea1aebbb18ecff4c27dc0930e512934" integrity sha512-+IIOUfGkGIUu310djXpOZNR1jHftzr/W7DwoUPiRfzhZWFLXdRt80ePYUjSEYVEs4hJUK4ikXWWo7eHd10RQlA== -"@types/opn@^3.0.28": - version "3.0.28" - resolved "https://registry.yarnpkg.com/@types/opn/-/opn-3.0.28.tgz#097d0d1c9b5749573a5d96df132387bb6d02118a" - integrity sha1-CX0NHJtXSVc6XZbfEyOHu20CEYo= +"@types/open@^6.1.0": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@types/open/-/open-6.1.0.tgz#3cdf3db197a6a5d823babe6effeed243fad5d28a" + integrity sha512-sdB0OltczakZfdn5DYg3ZbHoQeYtU8Vbo4dys0U98gikn++M4gGDI02dzEWXPMP5uXGSjGx9GnK/yLlJMfGjlg== dependencies: "@types/node" "*" @@ -6633,10 +6633,10 @@ only@0.0.2: resolved "https://registry.yarnpkg.com/only/-/only-0.0.2.tgz#2afde84d03e50b9a8edc444e30610a70295edfb4" integrity sha1-Kv3oTQPlC5qO3EROMGEKcCle37Q= -opn@^5.1.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/opn/-/opn-5.2.0.tgz#71fdf934d6827d676cecbea1531f95d354641225" - integrity sha512-Jd/GpzPyHF4P2/aNOVmS3lfMSWV9J7cOhCG1s08XCEAsPkB7lp6ddiU0J7XzyQRDUh8BqJ7PchfINjR8jyofRQ== +open@^6.3.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/open/-/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9" + integrity sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg== dependencies: is-wsl "^1.1.0"