Skip to content

Commit

Permalink
Update wrapper govuk-frontend package to use built code
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Apr 13, 2023
1 parent e549685 commit 1728c9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions package/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"private": true,
"name": "govuk-frontend",
"description": "Used only for the development of GOV.UK Frontend, see `package/dist/package.json` for the published `package.json`",
"main": "src/govuk/all.mjs",
"description": "GOV.UK Frontend wrapper for local development only (see dist/package.json)",
"main": "dist/govuk/all.js",
"module": "dist/govuk-esm/all.mjs",
"exports": {
".": {
"sass": "./src/govuk/all.scss",
"import": "./src/govuk/all.mjs",
"default": "./src/govuk/all.mjs"
"sass": "./dist/govuk/all.scss",
"import": "./dist/govuk-esm/all.mjs",
"require": "./dist/govuk/all.js"
},
"./*": "./src/*"
"./*": "./dist/*"
},
"sass": "src/govuk/all.scss",
"sass": "dist/govuk/all.scss",
"engines": {
"node": "^18.12.0",
"npm": "^8.1.0 || ^9.1.0"
Expand Down
2 changes: 1 addition & 1 deletion tasks/styles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function compileStylesheet ([modulePath, { srcPath, destPath, fileP
// Resolve @imports via
loadPaths: [
join(paths.root, 'node_modules/govuk_frontend_toolkit/stylesheets'),
join(paths.root, 'node_modules/govuk-frontend/src'),
join(paths.root, 'node_modules/govuk-frontend/dist'),
join(paths.root, 'node_modules')
],

Expand Down

0 comments on commit 1728c9b

Please sign in to comment.