mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
fix: import moment from Obsidian
This commit is contained in:
parent
4ea052dbcc
commit
ae15efa6f3
4 changed files with 33 additions and 35 deletions
64
package.json
64
package.json
|
|
@ -1,34 +1,34 @@
|
|||
{
|
||||
"name": "obsidian-vault-explorer",
|
||||
"version": "0.5.4",
|
||||
"description": "Explore your vault in visual format",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"dev": "node esbuild.config.mjs",
|
||||
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Trey Wallis",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@tsconfig/svelte": "^5.0.4",
|
||||
"@types/bun": "latest",
|
||||
"@types/lodash": "^4.17.0",
|
||||
"@types/node": "^16.11.6",
|
||||
"@typescript-eslint/eslint-plugin": "5.29.0",
|
||||
"@typescript-eslint/parser": "5.29.0",
|
||||
"builtin-modules": "3.3.0",
|
||||
"esbuild": "0.17.3",
|
||||
"esbuild-svelte": "^0.8.0",
|
||||
"obsidian": "latest",
|
||||
"svelte-preprocess": "^5.1.4",
|
||||
"tslib": "2.4.0",
|
||||
"typescript": "4.7.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "^4.17.21",
|
||||
"nanoid": "^5.0.7",
|
||||
"svelte": "^4.2.15"
|
||||
}
|
||||
"name": "obsidian-vault-explorer",
|
||||
"version": "0.5.4",
|
||||
"description": "Explore your vault in visual format",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"dev": "node esbuild.config.mjs",
|
||||
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Trey Wallis",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@tsconfig/svelte": "^5.0.4",
|
||||
"@types/bun": "latest",
|
||||
"@types/lodash": "^4.17.0",
|
||||
"@types/node": "^16.11.6",
|
||||
"@typescript-eslint/eslint-plugin": "5.29.0",
|
||||
"@typescript-eslint/parser": "5.29.0",
|
||||
"builtin-modules": "3.3.0",
|
||||
"esbuild": "0.17.3",
|
||||
"esbuild-svelte": "^0.8.0",
|
||||
"obsidian": "latest",
|
||||
"svelte-preprocess": "^5.1.4",
|
||||
"tslib": "2.4.0",
|
||||
"typescript": "4.7.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "^4.17.21",
|
||||
"nanoid": "^5.0.7",
|
||||
"svelte": "^4.2.15"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import moment from "moment";
|
||||
import { moment } from "obsidian";
|
||||
|
||||
export const getMidnightToday = () => {
|
||||
const midnightToday = moment().startOf("day").valueOf();
|
||||
|
|
|
|||
|
|
@ -3,12 +3,10 @@
|
|||
"compilerOptions": {
|
||||
"types": ["svelte", "node"],
|
||||
"baseUrl": ".",
|
||||
"inlineSourceMap": false,
|
||||
"inlineSources": false,
|
||||
"module": "ESNext",
|
||||
"target": "ES6",
|
||||
"allowJs": true,
|
||||
"jsx": "react-jsx",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"noImplicitAny": true,
|
||||
"moduleResolution": "node",
|
||||
|
|
|
|||
Loading…
Reference in a new issue