create-deck-plugin 1.12.3 → 1.14.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/index.mjs +1 -1
- package/package.json +1 -1
- package/template/CHANGELOG.md +5 -0
- package/template/plugin.json +1 -1
- package/template/src/assets.d.ts +2 -0
package/index.mjs
CHANGED
|
@@ -102,7 +102,7 @@ const npm = "npm";
|
|
|
102
102
|
// Run from the repo, the SDK beside it: the template is the repo's, and the published SDK may not
|
|
103
103
|
// have caught up with it yet.
|
|
104
104
|
const installed = run(npm, ["install", "--save-dev", inRepo ? repoSdk : "deck-plugin-sdk",
|
|
105
|
-
"react", "lucide-react", "@types/react"]);
|
|
105
|
+
"react", "lucide-react", "@types/react", "typescript"]);
|
|
106
106
|
|
|
107
107
|
// A git repository from the start, because a plugin's home is its own repository — that is how
|
|
108
108
|
// it gets published, and how it gets listed in the registry.
|
package/package.json
CHANGED
package/template/plugin.json
CHANGED
package/template/src/assets.d.ts
CHANGED
|
@@ -14,3 +14,5 @@ declare module "*.wasm" { const bytes: Uint8Array; export default bytes; }
|
|
|
14
14
|
declare module "*?raw" { const text: string; export default text; }
|
|
15
15
|
// `import data from "some/file?base64"`: any file's bytes, as a base64 string.
|
|
16
16
|
declare module "*?base64" { const base64: string; export default base64; }
|
|
17
|
+
// `import code from "./job.worker.ts?worker"`: that worker, bundled, as the text of a script.
|
|
18
|
+
declare module "*?worker" { const code: string; export default code; }
|