Skip to content

chore: Fix package build scripts for git-deps and npm-link symlinks #746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.DS_STORE
node_modules/
/packages/*/optimizely-*.tgz

npm-debug.log
dist
node_modules
lerna-debug.log

coverage/
dist/

# user-specific ignores ought to be defined in user's `core.excludesfile`
.idea/*
.DS_STORE
13 changes: 6 additions & 7 deletions packages/datafile-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
"test": "__test__"
},
"files": [
"lib",
"LICENSE",
"CHANGELOG",
"README.md",
"package.json"
"lib"
],
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -61,10 +57,13 @@
}
},
"scripts": {
"clean": "rm -rf lib",
"lint": "tsc --noEmit && eslint --fix 'src/**/*.ts' '__test__/**/*.ts'",
"test": "jest",
"posttest": "npm run lint",
"tsc": "rm -rf lib && tsc",
"prepublishOnly": "npm run lint && npm test && npm run tsc"
"prebuild": "npm run clean",
"build": "tsc",
"prepare": "npm run build",
"prepublishOnly": "npm test"
}
}
13 changes: 6 additions & 7 deletions packages/event-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@
"test": "test"
},
"files": [
"lib",
"LICENSE",
"CHANGELOG",
"README.md",
"package.json"
"lib"
],
"scripts": {
"tsc": "rm -rf lib && tsc",
"clean": "rm -rf lib",
"prebuild": "npm run clean",
"build": "tsc",
"test": "jest",
"prepublishOnly": "jest && npm run tsc"
"prepare": "npm run build",
"prepublishOnly": "npm test"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes.
13 changes: 6 additions & 7 deletions packages/logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@
"test": "test"
},
"files": [
"lib",
"LICENSE",
"CHANGELOG",
"README.md",
"package.json"
"lib"
],
"scripts": {
"tsc": "rm -rf lib && tsc",
"clean": "rm -rf lib",
"prebuild": "npm run clean",
"build": "tsc",
"test": "jest",
"prepublishOnly": "jest && npm run tsc"
"prepare": "npm run build",
"prepublishOnly": "npm test"
},
"repository": {
"type": "git",
Expand Down
9 changes: 3 additions & 6 deletions packages/optimizely-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"cover": "nyc report -r lcov",
"precoveralls": "npm run cover",
"coveralls": "< coverage/lcov.info coveralls",
"prepublishOnly": "npm run build && npm test && npm run test-xbrowser && npm run test-umdbrowser"
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run test-ci"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -87,11 +88,7 @@
},
"files": [
"dist/",
"lib/",
"LICENSE",
"CHANGELOG",
"README.md",
"package.json"
"lib/"
],
"nyc": {
"temp-dir": "coverage/raw"
Expand Down
File renamed without changes.
13 changes: 6 additions & 7 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@
"test": "test"
},
"files": [
"lib",
"LICENSE",
"CHANGELOG",
"README.md",
"package.json"
"lib"
],
"scripts": {
"tsc": "rm -rf lib && tsc",
"clean": "rm -rf lib",
"prebuild": "npm run clean",
"build": "tsc",
"test": "jest",
"prepublishOnly": "jest && npm run tsc"
"prepare": "npm run build",
"prepublishOnly": "npm test"
},
"repository": {
"type": "git",
Expand Down