Skip to content

Commit 31b0750

Browse files
Merge pull request #57 from MiroslavDionisiev/fix-missing-dist-output
fix: missing dist outputs in published packages
2 parents 8733fb2 + f51f229 commit 31b0750

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

packages/scratch-gui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"default": "./dist/scratch-gui-standalone.js"
2222
}
2323
},
24+
"files": ["dist", "src"],
2425
"scripts": {
2526
"build": "npm run clean && BUILD_TYPE=dev webpack && BUILD_TYPE=dist webpack && BUILD_TYPE=dist-standalone webpack",
2627
"clean": "rimraf ./build ./dist",
@@ -31,7 +32,7 @@
3132
"i18n:src": "rimraf ./translations/messages/src && babel src > tmp.js && rimraf tmp.js && build-i18n-src ./translations/messages/src ./translations/",
3233
"start": "webpack serve",
3334
"test": "npm run test:lint && npm run test:unit && npm run build && npm run test:integration",
34-
"test:integration": "cross-env JEST_JUNIT_OUTPUT_NAME=integration-tests-results.xml jest --maxWorkers=2 test[\\\\/]integration",
35+
"test:integration": "cross-env JEST_JUNIT_OUTPUT_NAME=integration-tests-results.xml jest --maxWorkers=4 test[\\\\/]integration",
3536
"test:lint": "eslint . --ext .js,.jsx,.ts,.tsx",
3637
"test:unit": "cross-env JEST_JUNIT_OUTPUT_NAME=unit-tests-results.xml jest test[\\\\/]unit",
3738
"test:smoke": "jest --runInBand test[\\\\/]smoke",

packages/scratch-render/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
"type": "git",
1010
"url": "https://github.com/scratchfoundation/scratch-editor.git"
1111
},
12+
"main": "./dist/node/scratch-render.js",
1213
"exports": {
1314
"webpack": "./src/index.js",
1415
"browser": "./dist/web/scratch-render.js",
1516
"node": "./dist/node/scratch-render.js",
1617
"default": "./src/index.js"
1718
},
19+
"files": ["dist", "src"],
1820
"scripts": {
1921
"build": "webpack --progress",
2022
"docs": "jsdoc -c .jsdoc.json",

packages/scratch-svg-renderer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"node": "./dist/node/scratch-svg-renderer.js",
1111
"default": "./src/index.js"
1212
},
13+
"files": ["dist", "src"],
1314
"scripts": {
1415
"build": "npm run clean && webpack",
1516
"clean": "rimraf ./dist",

packages/scratch-vm/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"node": "./dist/node/scratch-vm.js",
1818
"default": "./src/index.js"
1919
},
20+
"files": ["dist", "src"],
2021
"scripts": {
2122
"build": "npm run docs && webpack --progress",
2223
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",

0 commit comments

Comments
 (0)