0
0
Fork 0

versionが渡っていなかったバグを修正

This commit is contained in:
Xeltica 2021-10-18 01:32:33 +09:00
parent b9642cc092
commit dea300ffa9
2 changed files with 14 additions and 12 deletions

View file

@ -1,5 +1,7 @@
import views from 'koa-views'; import views from 'koa-views';
import { version } from '../../package.json';
export const render = views(__dirname + '/views', { export const render = views(__dirname + '/views', {
extension: 'pug', extension: 'pug',
options: { version },
}); });

View file

@ -1,20 +1,20 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ "target": "es5",
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ "module": "commonjs",
"outDir": "./built/", /* Redirect output structure to the directory. */ "outDir": "./built/",
"rootDir": "./src/", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ "strict": true,
"strict": true, /* Enable all strict type-checking options. */ "strictPropertyInitialization": false,
"strictPropertyInitialization": false, /* Enable strict checking of property initialization in classes. */
"typeRoots": [ "typeRoots": [
"node_modules/@types", "node_modules/@types",
"src/@types" "src/@types"
], /* List of folders to include type definitions from. */ ],
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ "esModuleInterop": true,
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ "experimentalDecorators": true,
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ "emitDecoratorMetadata": true,
"skipLibCheck": true, /* Skip type checking of declaration files. */ "skipLibCheck": true,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ "forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
}, },
"exclude": [ "exclude": [
"./migration", "./migration",