obsidian-typings 4.18.0 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.18.0",
3
+ "version": "4.19.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",
@@ -119,5 +119,15 @@
119
119
  "release": "git show origin/main:workflow-scripts/release.ts | bun -",
120
120
  "release:beta": "git show origin/main:workflow-scripts/release-beta.ts | bun -",
121
121
  "spellcheck": "cspell . --no-progress"
122
- }
122
+ },
123
+ "files": [
124
+ "dist/",
125
+ "implementations/",
126
+ "patches/",
127
+ "scripts/postinstall.ts",
128
+ "CHANGELOG.md",
129
+ "LICENSE",
130
+ "README.md",
131
+ "package.json"
132
+ ]
123
133
  }
@@ -0,0 +1,19 @@
1
+ import { spawnSync } from 'node:child_process';
2
+ import {
3
+ join,
4
+ relative
5
+ } from 'node:path/posix';
6
+ import { cwd } from 'node:process';
7
+
8
+ let pkgDir = cwd().replace(/\\/g, '/');
9
+ const patchDir = join(pkgDir, 'patches');
10
+ const relativePath = '/node_modules/obsidian-typings';
11
+ if (pkgDir.endsWith(relativePath)) {
12
+ pkgDir = pkgDir.slice(0, -relativePath.length);
13
+ }
14
+
15
+ spawnSync('npx', ['patch-package', '--patch-dir', relative(pkgDir, patchDir)], {
16
+ shell: true,
17
+ stdio: 'inherit',
18
+ cwd: pkgDir
19
+ });
package/.gitattributes DELETED
@@ -1 +0,0 @@
1
- * text=auto eol=lf
@@ -1,40 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "mainEntryPointFilePath": "src/index.d.ts",
4
- "bundledPackages": [],
5
- "compiler": {
6
- },
7
- "apiReport": {
8
- "enabled": false
9
- },
10
- "docModel": {
11
- "enabled": true,
12
- "apiJsonFilePath": "dist/obsidian-typings.api.json"
13
- },
14
- "dtsRollup": {
15
- "enabled": false
16
- },
17
- "tsdocMetadata": {
18
- "enabled": false
19
- },
20
- "messages": {
21
- "compilerMessageReporting": {
22
- "default": {
23
- "logLevel": "warning"
24
- },
25
- "TS2411": {
26
- "logLevel": "none"
27
- }
28
- },
29
- "extractorMessageReporting": {
30
- "default": {
31
- "logLevel": "warning"
32
- }
33
- },
34
- "tsdocMessageReporting": {
35
- "default": {
36
- "logLevel": "warning"
37
- }
38
- }
39
- }
40
- }