chore: commit dist/ and remove prepare script

Pre-built output is now committed to the repository so that
Quartz can skip the build step during plugin installation.
The prepare script is removed to prevent redundant builds
when installing from npm/git.
This commit is contained in:
saberzero1 2026-03-14 22:01:30 +01:00
parent 2cd3e24603
commit 8c6751bff4
No known key found for this signature in database
12 changed files with 53 additions and 6 deletions

1
.gitignore vendored
View file

@ -4,7 +4,6 @@ node_modules/
.pnp.js
# Build output
dist/
build/
*.tsbuildinfo

2
dist/components/index.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
export { Spacer } from '../index.js';
import '@quartz-community/types';

18
dist/components/index.js vendored Normal file
View file

@ -0,0 +1,18 @@
import { jsx } from 'preact/jsx-runtime';
// src/components/Spacer.tsx
var spacerCss = `.spacer {
flex: 2 1 auto;
}`;
var Spacer = () => {
const Component = (_props) => {
return /* @__PURE__ */ jsx("div", { class: "spacer" });
};
Component.css = spacerCss;
return Component;
};
var Spacer_default = Spacer;
export { Spacer_default as Spacer };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map

1
dist/components/index.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"sources":["../../src/components/Spacer.tsx"],"names":[],"mappings":";;;AAMA,IAAM,SAAA,GAAY,CAAA;AAAA;AAAA,CAAA,CAAA;AAIlB,IAAM,SAAqC,MAAM;AAC/C,EAAA,MAAM,SAAA,GAA6B,CAAC,MAAA,KAAiC;AACnE,IAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAM,QAAA,EAAS,CAAA;AAAA,EAC7B,CAAA;AAEA,EAAA,SAAA,CAAU,GAAA,GAAM,SAAA;AAEhB,EAAA,OAAO,SAAA;AACT,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"index.js","sourcesContent":["import type {\n QuartzComponent,\n QuartzComponentProps,\n QuartzComponentConstructor,\n} from \"@quartz-community/types\";\n\nconst spacerCss = `.spacer {\n flex: 2 1 auto;\n}`;\n\nconst Spacer: QuartzComponentConstructor = () => {\n const Component: QuartzComponent = (_props: QuartzComponentProps) => {\n return <div class=\"spacer\"></div>;\n };\n\n Component.css = spacerCss;\n\n return Component;\n};\n\nexport default Spacer;\n"]}

5
dist/index.d.ts vendored Normal file
View file

@ -0,0 +1,5 @@
import { QuartzComponentConstructor } from '@quartz-community/types';
declare const Spacer: QuartzComponentConstructor;
export { Spacer };

18
dist/index.js vendored Normal file
View file

@ -0,0 +1,18 @@
import { jsx } from 'preact/jsx-runtime';
// src/components/Spacer.tsx
var spacerCss = `.spacer {
flex: 2 1 auto;
}`;
var Spacer = () => {
const Component = (_props) => {
return /* @__PURE__ */ jsx("div", { class: "spacer" });
};
Component.css = spacerCss;
return Component;
};
var Spacer_default = Spacer;
export { Spacer_default as Spacer };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map

1
dist/index.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"sources":["../src/components/Spacer.tsx"],"names":[],"mappings":";;;AAMA,IAAM,SAAA,GAAY,CAAA;AAAA;AAAA,CAAA,CAAA;AAIlB,IAAM,SAAqC,MAAM;AAC/C,EAAA,MAAM,SAAA,GAA6B,CAAC,MAAA,KAAiC;AACnE,IAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAM,QAAA,EAAS,CAAA;AAAA,EAC7B,CAAA;AAEA,EAAA,SAAA,CAAU,GAAA,GAAM,SAAA;AAEhB,EAAA,OAAO,SAAA;AACT,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"index.js","sourcesContent":["import type {\n QuartzComponent,\n QuartzComponentProps,\n QuartzComponentConstructor,\n} from \"@quartz-community/types\";\n\nconst spacerCss = `.spacer {\n flex: 2 1 auto;\n}`;\n\nconst Spacer: QuartzComponentConstructor = () => {\n const Component: QuartzComponent = (_props: QuartzComponentProps) => {\n return <div class=\"spacer\"></div>;\n };\n\n Component.css = spacerCss;\n\n return Component;\n};\n\nexport default Spacer;\n"]}

1
dist/types.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from '@quartz-community/types';

3
dist/types.js vendored Normal file
View file

@ -0,0 +1,3 @@
//# sourceMappingURL=types.js.map
//# sourceMappingURL=types.js.map

1
dist/types.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}

7
package-lock.json generated
View file

@ -9,9 +9,7 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"@quartz-community/types": "github:quartz-community/types",
"tsup": "^8.5.0",
"typescript": "^5.9.3"
"@quartz-community/types": "github:quartz-community/types"
},
"devDependencies": {
"@types/node": "^24.10.0",
@ -22,6 +20,8 @@
"preact": "^10.28.2",
"prettier": "^3.6.2",
"sass": "^1.97.3",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
"vitest": "^2.1.9"
},
"engines": {
@ -3211,7 +3211,6 @@
}
],
"license": "MIT",
"peer": true,
"dependencies": {
"nanoid": "^3.3.11",
"picocolors": "^1.1.1",

View file

@ -43,7 +43,6 @@
"sideEffects": false,
"scripts": {
"build": "tsup",
"prepare": "npm run build",
"dev": "tsup --watch",
"lint": "eslint . --max-warnings=0",
"format": "prettier . --check",