Skip to content

Commit

Permalink
[packages/cli][s]:use datopian/flowershow-template
Browse files Browse the repository at this point in the history
- we've migerated the template to a separate repository so that it can
be used by our flowershow obsidian plugin, i.e. cloned to their gh repos
without cloning the whole monorepo
  • Loading branch information
olayway committed May 12, 2023
1 parent 79c1e1b commit 9c903e3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/cli/src/lib/Installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { FLOWERSHOW_FOLDER_NAME } from "./const.js";

export default class Installer {
templateRepo = "https://github.com/datopian/flowershow-template";
context: any;
targetDir: string;

Expand All @@ -30,16 +31,6 @@ export default class Installer {
this.targetDir = targetDir;
}

get templateRepo() {
// simplify importing data from package.json with this line after we no longer want to support node 16
// import packageJson from "#package.json" assert { type: "json" };
const flowershowRepo = require("../../package.json").repository.url.replace(
"git+",
""
);
return `${flowershowRepo}/packages/template`;
}

async install() {
const { context, targetDir, templateRepo } = this;
const flowershowDir = path.resolve(targetDir, FLOWERSHOW_FOLDER_NAME);
Expand Down

0 comments on commit 9c903e3

Please sign in to comment.