Skip to content

Commit

Permalink
chore: upgrade deps, add enable-pre-post-scripts for shiki
Browse files Browse the repository at this point in the history
Copy over WASM related files required for shiki to our `public/`
directory, which is done in our `predev` and `prebuild` script
  • Loading branch information
sreetamdas committed Jan 16, 2023
1 parent 1443f88 commit 8757c08
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 65 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
auto-install-peers=true
enable-pre-post-scripts=true
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
"version": "2.0.0",
"type": "module",
"scripts": {
"copy": "shx mkdir -p public/shiki && shx cp -r node_modules/shiki/{dist,languages,samples,themes} public/shiki/",
"predev": "pnpm run copy",
"dev": "next dev",
"start": "next start",
"prebuild": "pnpm run copy",
"build": "next build",
"build:analyze": "ANALYZE=true next build",
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
"export": "next build && next export",
"compile": "tsc --watch",
"typecheck": "tsc -p tsconfig.json",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}' --cache --fix",
"lintcheck": "eslint 'src/**/*.{js,jsx,ts,tsx}' --cache",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}' --cache",
"lint:fix": "eslint 'src/**/*.{js,jsx,ts,tsx}' --cache --fix",
"prettier": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'"
},
"dependencies": {
Expand Down Expand Up @@ -65,7 +68,7 @@
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"eslint": "^8.31.0",
"eslint": "^8.32.0",
"eslint-config-next": "^13.1.2",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-typescript": "^3.5.3",
Expand All @@ -76,6 +79,7 @@
"msw": "^0.49.2",
"next-sitemap": "^3.1.45",
"prettier": "^2.8.3",
"shx": "^0.3.4",
"typescript": "^4.9.4",
"vscode-textmate": "^8.0.0"
},
Expand Down

0 comments on commit 8757c08

Please sign in to comment.