Skip to content

Commit

Permalink
Add subpaths to exports so webpack can see css files
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed May 7, 2024
1 parent f4c855d commit 27ce07a
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"browser": "dist/pretty-print-json.min.js",
"style": "dist/css/pretty-print-json.css",
"types": "dist/pretty-print-json.d.ts",
"exports": "./dist/pretty-print-json.js",
"exports": {
".": "./dist/pretty-print-json.js",
"./": "./dist/"
},
"files": [
"dist"
],
Expand Down Expand Up @@ -83,7 +86,7 @@
],
"docs": [
"replacer spec/interactive.html build/docs1 --find=dynamic.html --replacement=dynamic/",
"replacer build/docs1 build/docs2 --find=../dist --replacement=https://cdn.jsdelivr.net/npm/pretty-print-json@{{pkg.version{{pipe}}minor-version}}/dist",
"replacer build/docs1 build/docs2 --find=../dist --replacement=https://cdn.jsdelivr.net/npm/pretty-print-json@{{package.version{{pipe}}minor-version}}/dist",
"copy-file build/docs2/interactive.html docs/index.html",
"copy-file spec/dynamic.html docs/dynamic/index.html",
"html-validator docs"
Expand All @@ -96,27 +99,27 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.5",
"@types/node": "~20.11",
"@typescript-eslint/eslint-plugin": "~6.19",
"@typescript-eslint/parser": "~6.19",
"add-dist-header": "~1.3",
"assert-deep-strict-equal": "~1.1",
"copy-file-util": "~1.1",
"@types/node": "~20.12",
"@typescript-eslint/eslint-plugin": "~7.8",
"@typescript-eslint/parser": "~7.8",
"add-dist-header": "~1.4",
"assert-deep-strict-equal": "~1.2",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"csso-cli": "~4.0",
"dna-engine": "~3.1",
"eslint": "~8.56",
"dna-engine": "~3.2",
"eslint": "8.57.0",
"esm-to-plain-js": "~1.1",
"fetch-json": "~3.3",
"jsdom": "~24.0",
"jshint": "~2.13",
"mocha": "~10.2",
"replacer-util": "~1.2",
"mocha": "~10.4",
"replacer-util": "~1.3",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"typescript": "~5.3",
"typescript": "~5.4",
"uglify-js": "~3.17",
"w3c-html-validator": "~1.6",
"w3c-html-validator": "~1.8",
"web-ignition": "~2.1"
}
}

0 comments on commit 27ce07a

Please sign in to comment.