Skip to content

Commit

Permalink
ACKAGE try fix ERR_MODULE_NOT_FOUND by outwriting .js files really
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreKelling committed Feb 14, 2024
1 parent 101e7ea commit ef8d435
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspdf-product-label",
"version": "1.0.3",
"version": "1.0.4",
"main": "src/app.js",
"author": "André Kelling",
"description": "Dymo Label PDF printing.",
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspdf-template-labelprint",
"version": "1.0.3",
"version": "1.0.4",
"main": "src/app.js",
"author": "André Kelling",
"description": "Dymo Label PDF template",
Expand All @@ -11,13 +11,18 @@
"scripts": {
"build": "esbuild docs/app-demo.js --bundle --minify --sourcemap --outfile=docs/dist/demo-bundle.js",
"dev": "esbuild docs/app-demo.js --bundle --watch --sourcemap --outfile=docs/dist/demo-bundle.js",
"serve": "npx http-server docs -p 6262"
"serve": "npx http-server docs -p 6262",
"test": "jest"
},
"dependencies": {
"jspdf": "^2.5.1"
},
"devDependencies": {
"esbuild": "0.20.0"
"@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"babel-jest": "^29.7.0",
"esbuild": "0.20.0",
"jest": "^29.7.0"
},
"engines": {
"node": ">=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/print/partials/qr-code.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import jsPDF from 'jspdf';
import scaleDown from "../utils/scale-down";
import scaleDown from "../utils/scale-down.js";

/**
* jsPDF import just for typing!
Expand Down

0 comments on commit ef8d435

Please sign in to comment.