mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 22:38:34 +09:00
Create type definition for '*/package.json' (#4014)
* Create type definition for '*/package.json' * Update tsconfig.json
This commit is contained in:
parent
8dc7f28744
commit
e909eac296
3
src/@types/package.json.d.ts
vendored
Normal file
3
src/@types/package.json.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare module '*/package.json' {
|
||||
const version: string;
|
||||
}
|
@ -7,7 +7,7 @@ import { URL } from 'url';
|
||||
import * as yaml from 'js-yaml';
|
||||
import { Source, Mixin } from './types';
|
||||
import isUrl = require('is-url');
|
||||
const pkg = require('../../package.json');
|
||||
import * as pkg from '../../package.json';
|
||||
|
||||
/**
|
||||
* Path of configuration directory
|
||||
|
@ -23,6 +23,7 @@ import notesStats from './daemons/notes-stats';
|
||||
import loadConfig from './config/load';
|
||||
import { Config } from './config/types';
|
||||
import { lessThan } from './prelude/array';
|
||||
import * as pkg from '../package.json';
|
||||
|
||||
const clusterLog = debug('misskey:cluster');
|
||||
const ev = new Xev();
|
||||
@ -31,8 +32,6 @@ if (process.env.NODE_ENV != 'production' && process.env.DEBUG == null) {
|
||||
debug.enable('misskey');
|
||||
}
|
||||
|
||||
const pkg = require('../package.json');
|
||||
|
||||
//#region Command line argument definitions
|
||||
program
|
||||
.version(pkg.version)
|
||||
|
@ -4,8 +4,8 @@ import config from '../../../config';
|
||||
import Emoji from '../../../models/emoji';
|
||||
import define from '../define';
|
||||
import fetchMeta from '../../../misc/fetch-meta';
|
||||
import * as pkg from '../../../../package.json';
|
||||
|
||||
const pkg = require('../../../../package.json');
|
||||
const client = require('../../../../built/client/meta.json');
|
||||
|
||||
export const meta = {
|
||||
|
@ -20,7 +20,7 @@ import Note, { pack as packNote } from '../../models/note';
|
||||
import getNoteSummary from '../../misc/get-note-summary';
|
||||
import fetchMeta from '../../misc/fetch-meta';
|
||||
import Emoji from '../../models/emoji';
|
||||
const pkg = require('../../../package.json');
|
||||
import * as pkg from '../../../package.json';
|
||||
|
||||
const client = `${__dirname}/../../client/`;
|
||||
|
||||
|
@ -15,7 +15,8 @@
|
||||
"noLib": false,
|
||||
"strict": true,
|
||||
"strictNullChecks": false,
|
||||
"experimentalDecorators": true
|
||||
"experimentalDecorators": true,
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"compileOnSave": false,
|
||||
"include": [
|
||||
|
Loading…
Reference in New Issue
Block a user