Configure the package to compile TypeScript and copy SCSS files to dist/ before publishing, rather than publishing raw source files. This allows us to use tsc-alias for @src imports. Also use a more modern export map to decouple the internal file structure from the package's API, and add a build step to CI. BREAKING CHANGE: Consuming projects may need to update their imports or SASS @use lines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
91 lines
2.5 KiB
JSON
91 lines
2.5 KiB
JSON
{
|
|
"name": "@openedx/frontend-app-authn",
|
|
"version": "1.0.0-alpha.5",
|
|
"description": "Frontend authentication",
|
|
"engines": {
|
|
"node": "^24.12"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/openedx/frontend-app-authn.git"
|
|
},
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./app.scss": "./dist/app.scss"
|
|
},
|
|
"files": [
|
|
"/dist"
|
|
],
|
|
"browserslist": [
|
|
"extends @edx/browserslist-config"
|
|
],
|
|
"sideEffects": [
|
|
"*.css",
|
|
"*.scss"
|
|
],
|
|
"scripts": {
|
|
"build": "make build",
|
|
"clean": "make clean",
|
|
"dev": "PORT=1999 PUBLIC_PATH=/authn openedx dev",
|
|
"i18n_extract": "openedx formatjs extract",
|
|
"lint": "openedx lint .",
|
|
"lint:fix": "openedx lint --fix .",
|
|
"prepack": "npm run build",
|
|
"snapshot": "openedx test --updateSnapshot",
|
|
"test": "openedx test --coverage --passWithNoTests"
|
|
},
|
|
"author": "Open edX",
|
|
"license": "AGPL-3.0",
|
|
"homepage": "https://github.com/openedx/frontend-app-authn#readme",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/openedx/frontend-app-authn/issues"
|
|
},
|
|
"dependencies": {
|
|
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.3",
|
|
"@edx/openedx-atlas": "^0.7.0",
|
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
"@redux-devtools/extension": "^3.3.0",
|
|
"classnames": "^2.5.1",
|
|
"fastest-levenshtein": "^1.0.16",
|
|
"form-urlencoded": "^6.1.5",
|
|
"i18n-iso-countries": "^7.13.0",
|
|
"prop-types": "^15.8.1",
|
|
"query-string": "^7.1.3",
|
|
"react-helmet": "^6.1.0",
|
|
"react-loading-skeleton": "^3.5.0",
|
|
"react-responsive": "^8.2.0",
|
|
"redux-logger": "^3.0.6",
|
|
"redux-mock-store": "^1.5.5",
|
|
"redux-saga": "^1.3.0",
|
|
"redux-thunk": "^2.4.2",
|
|
"reselect": "^5.1.1",
|
|
"universal-cookie": "^8.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@edx/browserslist-config": "^1.5.0",
|
|
"@testing-library/react": "^16.3.0",
|
|
"babel-plugin-formatjs": "10.5.38",
|
|
"eslint-plugin-import": "2.31.0",
|
|
"jest": "^29.7.0",
|
|
"react-test-renderer": "^18.3.1",
|
|
"ts-jest": "^29.4.0",
|
|
"tsc-alias": "^1.8.16"
|
|
},
|
|
"peerDependencies": {
|
|
"@openedx/frontend-base": "^1.0.0-alpha.13",
|
|
"@openedx/paragon": "^23",
|
|
"react": "^18",
|
|
"react-dom": "^18",
|
|
"react-redux": "^8",
|
|
"react-router": "^6",
|
|
"react-router-dom": "^6",
|
|
"redux": "^4"
|
|
}
|
|
}
|