create-pdf-smith 0.1.0 → 0.2.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": "create-pdf-smith",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Scaffold a new pdf-smith project",
5
5
  "author": "Kareem Elbahrawy",
6
6
  "license": "MIT",
@@ -4,4 +4,6 @@ const result = await exportPDF({
4
4
  root: import.meta.dirname,
5
5
  });
6
6
 
7
- console.log(`PDF exported to: ${result.outputPath}`);
7
+ for (const output of result.outputs) {
8
+ console.log(`${output.document} → ${output.outputPath}`);
9
+ }
@@ -5,10 +5,11 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "preview": "tsx preview.ts",
8
- "export": "tsx export.ts"
8
+ "export": "tsx export.ts",
9
+ "add": "pdf-smith add"
9
10
  },
10
11
  "dependencies": {
11
- "pdf-smith": "^0.1.0",
12
+ "pdf-smith": "^0.2.0",
12
13
  "react": "^19.0.0",
13
14
  "react-dom": "^19.0.0"
14
15
  },
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from 'pdf-smith';
2
+
3
+ export default defineConfig({
4
+ pageNumbers: { enabled: true },
5
+ });
@@ -1,4 +1,4 @@
1
- import '../styles.css';
1
+ import '../../../styles.css';
2
2
 
3
3
  export default function Welcome() {
4
4
  return (
@@ -12,8 +12,10 @@ export default function Welcome() {
12
12
  <p className="text-2xl font-semibold text-gray-800">Your project is ready</p>
13
13
  <p className="mt-2 text-gray-500">
14
14
  Edit{' '}
15
- <code className="rounded bg-gray-100 px-1.5 py-0.5 text-sm">pages/welcome.tsx</code> to
16
- get started.
15
+ <code className="rounded bg-gray-100 px-1.5 py-0.5 text-sm">
16
+ pdfs/welcome/pages/welcome.tsx
17
+ </code>{' '}
18
+ to get started.
17
19
  </p>
18
20
  </div>
19
21
  </main>