Skip to content

Commit

Permalink
📦 Update packaging (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Jun 14, 2023
1 parent 069b1da commit 10f3c52
Show file tree
Hide file tree
Showing 17 changed files with 16,587 additions and 18,167 deletions.
34,557 changes: 16,523 additions & 18,034 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,21 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@remix-run/node": "^1.12.0",
"@remix-run/react": "^1.12.0",
"@remix-run/node": "^1.17.0",
"@remix-run/react": "^1.17.0",
"@tailwindcss/typography": "^0.5.9",
"@types/jest": "^29.4.1",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"concurrently": "^8.2.0",
"eslint-config-curvenote": "latest",
"glob": "^10.2.7",
"jest": "^29.5.0",
"npm-run-all": "^4.1.5",
"patch-package": "^6.5.1",
"prettier": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.2.4",
"ts-jest": "^29.0.5",
"tailwindcss": "^3.3.2",
"turbo": "latest",
"typescript": "^4.9.5",
"typescript": "^5.1.3",
"vitest": "^0.32.0"
},
"engines": {
Expand Down
7 changes: 1 addition & 6 deletions packages/diagrams/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5",
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"npm-run-all": "^4.1.5",
"tsconfig": "latest",
"typescript": "latest"
"@types/js-yaml": "^4.0.5"
}
}
7 changes: 1 addition & 6 deletions packages/frontmatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5",
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"npm-run-all": "^4.1.5",
"tsconfig": "latest",
"typescript": "latest"
"@types/js-yaml": "^4.0.5"
}
}
8 changes: 1 addition & 7 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,5 @@
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"npm-run-all": "^4.1.5",
"tsconfig": "latest",
"typescript": "latest"
}
"devDependencies": {}
}
18 changes: 6 additions & 12 deletions packages/jupyter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
"test": "vitest run"
},
"dependencies": {
"@headlessui/react": "^1.7.13",
"@heroicons/react": "^2.0.13",
"@headlessui/react": "^1.7.15",
"@heroicons/react": "^2.0.18",
"@myst-theme/providers": "^0.3.0",
"ansi-to-react": "^6.1.6",
"buffer": "^6.0.3",
"classnames": "^2.3.2",
"myst-common": "^1.0.0",
"myst-common": "^1.0.1",
"myst-config": "^1.0.0",
"myst-frontmatter": "^1.0.0",
"myst-spec": "^0.0.4",
"nanoid": "^4.0.0",
"nanoid": "^4.0.2",
"nbtx": "^0.2.3",
"react-syntax-highlighter": "^15.5.0",
"swr": "^1.3.0",
"swr": "^2.1.5",
"thebe-core": "^0.2.3",
"thebe-lite": "^0.2.3",
"thebe-react": "^0.2.3",
Expand All @@ -45,11 +45,5 @@
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"npm-run-all": "^4.1.5",
"tsconfig": "latest",
"typescript": "latest"
}
"devDependencies": {}
}
4 changes: 2 additions & 2 deletions packages/jupyter/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export function useLongContent(
return { data, error };
}

const arrayFetcher = (...urls: string[]) => {
return Promise.all(urls.map((url) => fetcher(url)));
const arrayFetcher = (...urls: string[][]) => {
return Promise.all(urls.map((url) => fetcher(url[0])));
};

type ObjectWithPath = MinifiedErrorOutput | MinifiedStreamOutput | MinifiedMimePayload;
Expand Down
1 change: 1 addition & 0 deletions packages/jupyter/src/jupyter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const JupyterOutputs = React.memo(
}, [id, data, fullOutputs]);

if (error) {
console.error(error);
return <div className="text-red-500">Error rendering output: {error.message}</div>;
}

Expand Down
13 changes: 4 additions & 9 deletions packages/myst-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@heroicons/react": "^2.0.13",
"classnames": "^2.3.2",
"js-yaml": "^4.1.0",
"myst-common": "^1.0.0",
"myst-common": "^1.0.1",
"myst-config": "^1.0.0",
"myst-directives": "^1.0.1",
"myst-ext-card": "^1.0.0",
Expand All @@ -35,14 +35,14 @@
"myst-spec": "^0.0.4",
"myst-to-docx": "^1.0.0",
"myst-to-html": "^1.0.1",
"myst-to-jats": "^1.0.0",
"myst-to-jats": "^1.0.1",
"myst-to-react": "^0.3.0",
"myst-to-tex": "^1.0.0",
"myst-transforms": "^1.0.0",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.2",
"vfile": "^5.3.7",
"vfile-message": "^3.1.3"
"vfile-message": "^3.1.4"
},
"peerDependencies": {
"@types/react": "^16.8 || ^17.0 || ^18.0",
Expand All @@ -51,11 +51,6 @@
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5",
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"npm-run-all": "^4.1.5",
"tsconfig": "latest",
"typescript": "latest"
"@types/js-yaml": "^4.0.5"
}
}
24 changes: 6 additions & 18 deletions packages/myst-to-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"build": "npm-run-all -l clean -p build:cjs build:esm build:types"
},
"dependencies": {
"@heroicons/react": "^2.0.13",
"@heroicons/react": "^2.0.18",
"@myst-theme/providers": "^0.3.0",
"@radix-ui/react-hover-card": "^1.0.5",
"@radix-ui/react-hover-card": "^1.0.6",
"buffer": "^6.0.3",
"classnames": "^2.3.2",
"myst-common": "^1.0.0",
"myst-common": "^1.0.1",
"myst-config": "^1.0.0",
"myst-spec": "^0.0.4",
"nanoid": "^4.0.0",
"nanoid": "^4.0.2",
"react-syntax-highlighter": "^15.5.0",
"swr": "^1.3.0",
"swr": "^2.1.5",
"unist-util-select": "^4.0.3"
},
"peerDependencies": {
Expand All @@ -39,18 +39,6 @@
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5",
"@types/react-syntax-highlighter": "^15.5.6",
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"npm-run-all": "^4.1.5",
"tsconfig": "latest",
"typescript": "latest"
},
"overrides": {
"ansi-to-react": {
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
}
"@types/react-syntax-highlighter": "^15.5.7"
}
}
10 changes: 2 additions & 8 deletions packages/providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@
"peerDependencies": {
"@types/react": "^16.8 || ^17.0 || ^18.0",
"@types/react-dom": "^16.8 || ^17.0 || ^18.0",
"myst-common": "^1.0.0",
"myst-common": "^1.0.1",
"myst-config": "^1.0.0",
"myst-frontmatter": "^1.0.0",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"npm-run-all": "^4.1.5",
"tsconfig": "latest",
"typescript": "latest"
}
"devDependencies": {}
}
19 changes: 7 additions & 12 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,33 @@
"lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\""
},
"dependencies": {
"@headlessui/react": "^1.7.13",
"@heroicons/react": "^2.0.14",
"@headlessui/react": "^1.7.15",
"@heroicons/react": "^2.0.18",
"@myst-theme/diagrams": "^0.3.0",
"@myst-theme/frontmatter": "^0.3.0",
"@myst-theme/jupyter": "^0.3.0",
"@myst-theme/providers": "^0.3.0",
"classnames": "^2.3.2",
"lodash.throttle": "^4.1.1",
"myst-common": "^1.0.0",
"myst-common": "^1.0.1",
"myst-config": "^1.0.0",
"myst-demo": "^0.3.0",
"myst-to-react": "^0.3.0",
"nbtx": "^0.2.3",
"node-cache": "^5.1.2",
"node-fetch": "^2.6.7",
"node-fetch": "^2.6.11",
"thebe-react": "^0.2.3",
"unist-util-select": "^4.0.1"
},
"peerDependencies": {
"@remix-run/node": "^1.12.0",
"@remix-run/react": "^1.12.0",
"@remix-run/node": "^1.17.0",
"@remix-run/react": "^1.17.0",
"@types/react": "^16.8 || ^17.0 || ^18.0",
"@types/react-dom": "^16.8 || ^17.0 || ^18.0",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"devDependencies": {
"@types/lodash.throttle": "^4.1.7",
"@types/node-fetch": "^2.6.2",
"eslint": "^8.21.0",
"eslint-config-curvenote": "latest",
"tsconfig": "latest",
"typescript": "latest"
"@types/lodash.throttle": "^4.1.7"
}
}
2 changes: 1 addition & 1 deletion patches
31 changes: 12 additions & 19 deletions themes/article/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,24 @@
"@myst-theme/providers": "^0.3.0",
"@myst-theme/site": "^0.3.0",
"@myst-theme/styles": "^0.3.0",
"@remix-run/node": "^1.14.2",
"@remix-run/react": "^1.14.2",
"@remix-run/vercel": "^1.14.2",
"css-selector-parser": "^1.4.1",
"myst-common": "^1.0.0",
"@remix-run/node": "^1.17.0",
"@remix-run/react": "^1.17.0",
"@remix-run/vercel": "^1.17.0",
"myst-common": "^1.0.1",
"myst-config": "^1.0.0",
"node-fetch": "^2.6.7",
"node-fetch": "^2.6.11",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^1.14.2",
"@remix-run/eslint-config": "^1.14.2",
"@remix-run/serve": "^1.14.2",
"@remix-run/dev": "^1.17.0",
"@remix-run/eslint-config": "^1.17.0",
"@remix-run/serve": "^1.17.0",
"@tailwindcss/typography": "^0.5.9",
"@types/node-fetch": "^2.6.2",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vercel/node": "^2.9.12",
"concurrently": "^7.6.0",
"eslint": "^8.23.1",
"patch-package": "^7.0.0",
"prettier": "latest",
"tailwindcss": "^3.2.7",
"typescript": "^4.9.5"
"@types/node-fetch": "^2.6.4",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@vercel/node": "^2.15.1"
},
"engines": {
"node": ">=14"
Expand Down
2 changes: 0 additions & 2 deletions themes/article/remix.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ module.exports = {
'@myst-theme/jupyter',
'@myst-theme/frontmatter',
'react-syntax-highlighter',
'@jupyterlab/rendermime',
'@jupyterlab/rendermime-interfaces',
],
watchPaths: ['../../packages/**/*'],
future: {
Expand Down
31 changes: 12 additions & 19 deletions themes/book/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,24 @@
"@myst-theme/providers": "^0.3.0",
"@myst-theme/site": "^0.3.0",
"@myst-theme/styles": "^0.3.0",
"@remix-run/node": "^1.14.2",
"@remix-run/react": "^1.14.2",
"@remix-run/vercel": "^1.14.2",
"css-selector-parser": "^1.4.1",
"myst-common": "^1.0.0",
"@remix-run/node": "^1.17.0",
"@remix-run/react": "^1.17.0",
"@remix-run/vercel": "^1.17.0",
"myst-common": "^1.0.1",
"myst-config": "^1.0.0",
"node-fetch": "^2.6.7",
"node-fetch": "^2.6.11",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^1.14.2",
"@remix-run/eslint-config": "^1.14.2",
"@remix-run/serve": "^1.14.2",
"@remix-run/dev": "^1.17.0",
"@remix-run/eslint-config": "^1.17.0",
"@remix-run/serve": "^1.17.0",
"@tailwindcss/typography": "^0.5.9",
"@types/node-fetch": "^2.6.2",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vercel/node": "^2.9.12",
"concurrently": "^7.6.0",
"eslint": "^8.23.1",
"patch-package": "^7.0.0",
"prettier": "latest",
"tailwindcss": "^3.2.7",
"typescript": "^4.9.5"
"@types/node-fetch": "^2.6.4",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@vercel/node": "^2.15.1"
},
"engines": {
"node": ">=14"
Expand Down
2 changes: 0 additions & 2 deletions themes/book/remix.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ module.exports = {
'@myst-theme/jupyter',
'@myst-theme/frontmatter',
'react-syntax-highlighter',
'@jupyterlab/rendermime',
'@jupyterlab/rendermime-interfaces',
],
watchPaths: ['../../packages/**/*'],
future: {
Expand Down

0 comments on commit 10f3c52

Please sign in to comment.