diff --git a/dist/lib/docs/pull.js b/dist/lib/docs/pull.js index 158fa20..d5860dc 100644 --- a/dist/lib/docs/pull.js +++ b/dist/lib/docs/pull.js @@ -33,7 +33,7 @@ const version_sort_1 = __importDefault(require("version-sort")); const logger = __importStar(require("../utils/logger")); const tmpRepoDir = path_1.default.join(os_1.default.tmpdir(), 'jsreport', 'temp', 'docsRepo'); async function pull(docsPath = 'views/learn/docs') { - return ['latest', '2.11.0']; + // return ['latest', '2.11.0'] fs_1.default.rmdirSync(tmpRepoDir, { recursive: true }); fs_1.default.mkdirSync(tmpRepoDir, { recursive: true }); const fullDocsPath = path_1.default.isAbsolute(docsPath) ? docsPath : path_1.default.join(process_1.default.cwd(), docsPath); diff --git a/dist/lib/docs/pull.js.map b/dist/lib/docs/pull.js.map index df535ac..b4b9bac 100644 --- a/dist/lib/docs/pull.js.map +++ b/dist/lib/docs/pull.js.map @@ -1 +1 @@ -{"version":3,"file":"pull.js","sourceRoot":"","sources":["../../../src/lib/docs/pull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAuB;AACvB,sDAA6B;AAC7B,oEAAgC;AAChC,oEAA2C;AAC3C,4CAAmB;AACnB,4CAAmB;AACnB,wDAA8B;AAC9B,gEAAsC;AACtC,wDAAyC;AAEzC,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,YAAE,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,CAAA;AAE1D,KAAK,UAAU,IAAI,CAAC,QAAQ,GAAG,kBAAkB;IAC5D,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC3B,YAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC7C,YAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAE7C,MAAM,YAAY,GAAG,cAAI,CAAC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,EAAE,UAAU,EAAE,GAAG,EAAE,kCAAkC,EAAE,CAAC,CAAA;IACvF,MAAM,kBAAO,CAAC,IAAI,CAAC,UAAU,EAAE,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAA;IACjE,MAAM,QAAQ,GAAG,CAAC,MAAM,wBAAG,CAAC,YAAY,CAAC,EAAE,EAAE,EAAF,YAAE,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,MAAM,CAAC,CAAA;IAChI,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IAChC,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE;QAC3B,MAAM,wBAAG,CAAC,QAAQ,CAAC;YACf,EAAE,EAAF,YAAE;YACF,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,MAAM;SACd,CAAC,CAAA;QACF,MAAM,kBAAO,CAAC,IAAI,CAAC,UAAU,EAAE,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAA;KAClE;IAED,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,sBAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AAC9D,CAAC;AAxBD,uBAwBC"} \ No newline at end of file diff --git a/src/lib/docs/pull.ts b/src/lib/docs/pull.ts index 0f55137..cdb5e17 100644 --- a/src/lib/docs/pull.ts +++ b/src/lib/docs/pull.ts @@ -11,7 +11,7 @@ import * as logger from '../utils/logger' const tmpRepoDir = path.join(os.tmpdir(), 'jsreport', 'temp', 'docsRepo') export default async function pull(docsPath = 'views/learn/docs') { - return ['latest', '2.11.0'] + // return ['latest', '2.11.0'] fs.rmdirSync(tmpRepoDir, { recursive: true }) fs.mkdirSync(tmpRepoDir, { recursive: true })