Skip to content

Commit

Permalink
feat: prepare iconize for api
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Dec 29, 2023
1 parent 06f44d4 commit 0e9b391
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"name": "obsidian-iconize",
"name": "@florianwoelki/obsidian-iconize",
"version": "2.8.1",
"description": "Add icons to anything you desire in Obsidian, including files, folders, and text.",
"main": "main.js",
"description": "API for adding icons to obsidian.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"prepare": "husky install",
"dev": "rollup --config rollup.config.js -w",
"docs:dev": "vitepress dev docs --port 3000",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"build": "rollup --config rollup.config.js --environment BUILD:production",
"build:lib": "tsc --project tsconfig.lib.json",
"release": "mkdir -p dist && mv main.js dist/ && cp src/styles.css dist/ && cp manifest.json dist/",
"test": "vitest",
"test:coverage": "vitest run --coverage",
Expand All @@ -21,7 +23,7 @@
"type": "git",
"url": "git+https://github.com/FlorianWoelki/obsidian-iconize.git"
},
"author": "Florian Woelki",
"author": "FlorianWoelki",
"license": "MIT",
"lint-staged": {
"*.{json,js,ts,jsx,tsx,html}": [
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"outDir": "dist/lib",
"declaration": true,
"inlineSourceMap": true
},
"include": ["src"],
"exclude": ["**/*.test.ts"]
}

0 comments on commit 0e9b391

Please sign in to comment.