@_tc/template-core 0.0.1-bate.27 → 0.0.1-bate.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { getAppPath } from "../../packages/core/paths.js";
2
- import nunjucks.js from "nunjucks";
3
- import path.js from "path";
2
+ import nunjucks from "nunjucks.js";
3
+ import path from "path.js";
4
4
  export default (app) => {
5
5
  const viewsPath = path.join(getAppPath(app, "frame"), "./public");
6
6
  const env = nunjucks.configure(viewsPath, {
@@ -1,4 +1,4 @@
1
- import md5.js from "md5";
1
+ import md5 from "md5.js";
2
2
  const keyTimeOut = 1000 * 60 * 10;
3
3
  export default (app) => async (ctx, next) => {
4
4
  const { path, method } = ctx;
@@ -1,4 +1,4 @@
1
- import superagent.js from "superagent";
1
+ import superagent from "superagent.js";
2
2
  export default (app) => class BaseService {
3
3
  get app() {
4
4
  return app;
@@ -1,5 +1,5 @@
1
- import path.js from "path";
2
- import * as glob.js from "glob";
1
+ import path from "path.js";
2
+ import * as glob from "glob.js";
3
3
  import { build } from "vite.js";
4
4
  import { resolve } from "../packages/utils.js";
5
5
  import { copyFileSync, existsSync, readdirSync, readFileSync, rmdirSync, unlinkSync, writeFileSync, } from "fs.js";
@@ -1,5 +1,5 @@
1
1
  import { resolve } from "./path.js";
2
- import * as glob.js from "glob";
2
+ import * as glob from "glob.js";
3
3
  export const getAllFilesInFolder = (...paths) => {
4
4
  const filePath = resolve(...paths);
5
5
  const fileList = glob.sync(resolve(filePath, "**", "*.js"));
@@ -1,4 +1,4 @@
1
- import * as path.js from "path";
1
+ import * as path from "path.js";
2
2
  import { sep } from "path.js";
3
3
  /**
4
4
  * splicing('path') : /path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_tc/template-core",
3
- "version": "0.0.1-bate.27",
3
+ "version": "0.0.1-bate.28",
4
4
  "description": "A TypeScript Koa framework template - Monorepo root",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",