esbuild-plugin-scriptable
Advanced tools
Comparing version 0.5.5 to 0.5.6
{ | ||
"name": "esbuild-plugin-scriptable", | ||
"description": "An ESBuild plugin for developing Scriptable iOS app scripts with TypeScript, manifest support and auto-deployment", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"keywords": [ | ||
@@ -17,5 +17,5 @@ "scriptable", | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/esm/index.d.ts", | ||
"engines": { | ||
@@ -32,3 +32,3 @@ "node": ">=14" | ||
"micromatch": "^4.0.8", | ||
"@scriptables/manifest": "0.7.4" | ||
"@scriptables/manifest": "0.7.5" | ||
}, | ||
@@ -55,8 +55,8 @@ "devDependencies": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.js" | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/esm/index.js" | ||
}, | ||
"./*": { | ||
"require": "./dist/*.cjs", | ||
"import": "./dist/*.js" | ||
"require": "./dist/cjs/*.js", | ||
"import": "./dist/esm/*.js" | ||
} | ||
@@ -63,0 +63,0 @@ }, |
@@ -141,3 +141,8 @@ import type {ScriptableManifest} from '@scriptables/manifest'; | ||
const output = result.metafile.outputs[file]; | ||
const sourceFile = output.entryPoint; | ||
if (!sourceFile) { | ||
throw new Error(`No entry point found for ${file}`); | ||
} | ||
// Get file content | ||
@@ -156,3 +161,3 @@ let content: string; | ||
// Try to read the manifest | ||
// Try to read the manifest using entryPoint | ||
let targetFileName = basename(file); | ||
@@ -162,11 +167,2 @@ let manifest: ScriptableManifest | null = null; | ||
try { | ||
const inputs = Object.entries(output.inputs); | ||
if (!inputs.length) { | ||
throw new Error(`No input files found for ${file}`); | ||
} | ||
const sourceFile = inputs[0][0]; | ||
if (!sourceFile) { | ||
throw new Error(`Invalid source file for ${file}`); | ||
} | ||
manifest = await tryReadManifest(sourceFile, manifestExtensions); | ||
@@ -173,0 +169,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
116207
1263
1
+ Added@scriptables/manifest@0.7.5(transitive)
- Removed@scriptables/manifest@0.7.4(transitive)
Updated@scriptables/manifest@0.7.5