Skip to content

Commit

Permalink
Update links to core
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Dec 2, 2024
1 parent e49c702 commit 5b9fb08
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 29 deletions.
8 changes: 4 additions & 4 deletions extensions/src/platform-get-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"zip": "zip-build dist release --template '%NAME%_%VERSION%.%EXT%' --override",
"package": "npm run build:production && npm run zip",
"package:debug": "cross-env DEBUG_PROD=true npm run package",
"start:core": "cd ../paranext-core && npm run start",
"start:core": "cd ../../.. && npm run start",
"start": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch\" \"npm:start:core\"",
"start:production": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:start:core\"",
"lint": "npm run lint:scripts && npm run lint:styles",
Expand All @@ -34,7 +34,7 @@
},
"dependencies": {
"@sillsdev/scripture": "^2.0.2",
"platform-bible-utils": "file:../paranext-core/lib/platform-bible-utils"
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
"devDependencies": {
"@swc/core": "^1.7.35",
Expand Down Expand Up @@ -66,8 +66,8 @@
"eslint-plugin-react-hooks": "^4.6.2",
"glob": "^10.4.5",
"lucide-react": "^0.452.0",
"papi-dts": "file:../paranext-core/lib/papi-dts",
"platform-bible-react": "file:../paranext-core/lib/platform-bible-react",
"papi-dts": "file:../../../lib/papi-dts",
"platform-bible-react": "file:../../../lib/platform-bible-react",
"postcss": "^8.4.47",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
Expand Down
6 changes: 3 additions & 3 deletions extensions/src/platform-get-resources/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
// Include default type declarations
"node_modules/@types",
// Include papi-dts type declarations (for papi.d.ts)
"../paranext-core/lib",
"../../../lib",
// Include core extensions' type declarations
"../paranext-core/extensions/src",
"../../../extensions/src",
// Include this extension's type declarations. It's in this location so there aren't any
// unexpected files there for typeRoots to include
"src/types",
Expand All @@ -48,7 +48,7 @@

// Include cached extension type declarations in case this extension needs to depend on them
// These are last, so any modules in the above typeRoots take precedence.
"../paranext-core/dev-appdata/cache/extension-types"
"../../../dev-appdata/cache/extension-types"
],
// Papi exposes decorators for use in classes
"experimentalDecorators": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,10 @@ const configBase: webpack.Configuration = {
// https://webpack.js.org/configuration/resolve/#resolvealias
// TODO: Remove this when `platform-bible-react` is published to npm
alias: {
'@emotion/react': path.resolve(
__dirname,
'..',
'../paranext-core/node_modules/@emotion/react',
),
'@emotion/styled': path.resolve(
__dirname,
'..',
'../paranext-core/node_modules/@emotion/styled',
),
'@mui/material': path.resolve(__dirname, '..', '../paranext-core/node_modules/@mui/material'),
'react-data-grid': path.resolve(
__dirname,
'..',
'../paranext-core/node_modules/react-data-grid',
),
'@emotion/react': path.resolve(__dirname, '..', '../../../node_modules/@emotion/react'),
'@emotion/styled': path.resolve(__dirname, '..', '../../../node_modules/@emotion/styled'),
'@mui/material': path.resolve(__dirname, '..', '../../../node_modules/@mui/material'),
'react-data-grid': path.resolve(__dirname, '..', '../../../node_modules/react-data-grid'),
},
},
};
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b9fb08

Please sign in to comment.