@raycast/api 1.69.3 → 1.70.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/bin/ray +8 -2
- package/package.json +1 -1
- package/types/index.d.ts +4 -0
package/bin/ray
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
+
# Test chnages in the script:
|
|
4
|
+
# - with `npm install` using a local directory reference
|
|
5
|
+
# - with `npx @raycast/api@latest build` by modifying the one downloaded by `npx`` to the `~/.npm/_npx/xxx/node_modules/bin` folder
|
|
6
|
+
|
|
3
7
|
# Determine the path for dist folder
|
|
4
8
|
# Using 'readlink -f' is not an option as '-f' it's not available on older macOS versions
|
|
5
9
|
source=${BASH_SOURCE:-$0}
|
|
6
10
|
# resolve $source until the file is no longer a symlink
|
|
7
11
|
while [ -L "$source" ]; do
|
|
8
|
-
|
|
12
|
+
# Unsetting CDPATH is necessary to act on the current directory and avoid problems when the 'bin' directory exists in CDPATH
|
|
13
|
+
dir=$( unset CDPATH && cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
|
|
9
14
|
source=$(readlink "$source")
|
|
10
15
|
# if $source was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
|
11
16
|
[[ $source != /* ]] && source=$dir/$source
|
|
12
17
|
done
|
|
13
|
-
|
|
18
|
+
# Unsetting CDPATH is necessary to act on the current directory and avoid problems when the 'bin' directory exists in CDPATH
|
|
19
|
+
bin_dir=$( unset CDPATH && cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
|
|
14
20
|
dist_dir=$(dirname "$bin_dir")
|
|
15
21
|
|
|
16
22
|
if [ -z "$bin_dir" ]; then
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -612,6 +612,10 @@ export declare interface Application {
|
|
|
612
612
|
* The display name of the application.
|
|
613
613
|
*/
|
|
614
614
|
name: string;
|
|
615
|
+
/**
|
|
616
|
+
* The localized name of the application.
|
|
617
|
+
*/
|
|
618
|
+
localizedName?: string;
|
|
615
619
|
/**
|
|
616
620
|
* The absolute path to the application bundle, e.g. `/Applications/Raycast.app`,
|
|
617
621
|
*/
|