mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
feat(plugin-api): publish TypeScript definitions package to npm
- Published @super-productivity/plugin-api v1.0.1 to npm - Configure package as types-only (no JavaScript output) - Add emitDeclarationOnly to tsconfig.json - Update package.json to only include .d.ts files - Add plugin development link to README contributing section - Package now provides complete TypeScript definitions for plugin developers
This commit is contained in:
parent
4ec68410f5
commit
cc98d63c4e
5 changed files with 17 additions and 11 deletions
4
packages/plugin-api/package-lock.json
generated
4
packages/plugin-api/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@super-productivity/plugin-api",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@super-productivity/plugin-api",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
{
|
||||
"name": "@super-productivity/plugin-api",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "TypeScript definitions for Super Productivity plugin development",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"build:watch": "tsc --emitDeclarationOnly --watch",
|
||||
"clean": "rm -rf dist",
|
||||
"typecheck": "tsc --noEmit"
|
||||
"typecheck": "tsc --noEmit",
|
||||
"prepublishOnly": "npm run clean && npm run build",
|
||||
"version": "npm run build"
|
||||
},
|
||||
"keywords": [
|
||||
"super-productivity",
|
||||
|
|
@ -22,7 +23,7 @@
|
|||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/johannesjo/super-productivity.git",
|
||||
"url": "git+https://github.com/johannesjo/super-productivity.git",
|
||||
"directory": "packages/plugin-api"
|
||||
},
|
||||
"bugs": {
|
||||
|
|
@ -30,10 +31,12 @@
|
|||
},
|
||||
"homepage": "https://github.com/johannesjo/super-productivity#readme",
|
||||
"files": [
|
||||
"src/**/*.ts",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
"dist/**/*.d.ts",
|
||||
"README.md"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
"module": "commonjs",
|
||||
"lib": ["ES2020", "DOM"],
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"strict": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue