Skip to content

Commit bf2f1bf

Browse files
authored
fix: update build script to make it package properly (#48)
1 parent 7bc76cd commit bf2f1bf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ build:
1414
./node_modules/.bin/fedx-scripts babel src --out-dir dist --source-maps --ignore **/*.test.jsx,**/*.test.js,**/setupTest.js --copy-files
1515
@# --copy-files will bring in everything else that wasn't processed by babel. Remove what we don't want.
1616
@find dist -name '*.test.js*' -delete
17-
rm ./dist/setupTest.js
1817
cp ./package.json ./dist/package.json
1918
cp ./LICENSE ./dist/LICENSE
20-
cp ./README.md ./dist/README.md
19+
cp ./README.rst ./dist/README.rst
2120

2221
precommit:
2322
npm run lint

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@openedx/frontend-plugin-framework",
33
"version": "1.0.0-semantically-released",
4-
"description": "Frontend Plugin Framework ",
4+
"description": "Frontend Plugin Framework",
5+
"main": "dist/index.js",
56
"repository": {
67
"type": "git",
78
"url": "git+https://github.com/openedx/frontend-plugin-framework.git"
@@ -10,7 +11,7 @@
1011
"extends @edx/browserslist-config"
1112
],
1213
"scripts": {
13-
"build": "fedx-scripts webpack",
14+
"build": "make build",
1415
"i18n_extract": "fedx-scripts formatjs extract",
1516
"lint": "fedx-scripts eslint --ext .js --ext .jsx .",
1617
"lint:fix": "fedx-scripts eslint --fix --ext .js --ext .jsx .",

0 commit comments

Comments
 (0)