Skip to content

Commit

Permalink
Do not publish anything that's not CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Mar 20, 2020
1 parent 7e4589a commit ccf0621
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .make-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ fs.removeSync(PKG_ROOT);
let rootPackageJson = Object.assign({}, pkg, {
name: 'rxjs',
main: './index.js',
typings: './index.d.ts',
module: './_esm5/index.js',
es2015: './_esm2015/index.js'
});

// Execute build optimizer transforms on ESM5 files
Expand Down
24 changes: 18 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@reactivex/rxjs",
"name": "@react-native-community/rxjs",
"version": "6.5.4",
"description": "Reactive Extensions for modern JavaScript",
"main": "index.js",
Expand Down Expand Up @@ -44,8 +44,6 @@
]
},
"scripts": {
"precommit": "lint-staged",
"commitmsg": "validate-commit-msg",
"build_all": "npm-run-all compat_build_all clean_dist copy_sources build_cjs build_esm5 build_esm2015 build_esm5_for_rollup build_umd build_types build_legacy_reexport build_migrations generate_packages",
"build_cjs": "npm-run-all clean_dist_cjs compile_dist_cjs",
"build_esm5": "npm-run-all clean_dist_esm5 compile_dist_esm5",
Expand Down Expand Up @@ -92,7 +90,6 @@
"perf:protractor": "echo \"Protractor is not working currently\" && exit -1 && protractor protractor.conf.js",
"perf:micro": "node ./perf/micro/index.js",
"prepublish": "shx rm -rf ./typings && npm run build_all",
"postpublish": "./docs_app/scripts/publish-docs.sh",
"publish_docs": "./publish_docs.sh",
"test": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha --opts spec/support/default.opts \"spec/**/*-spec.ts\"",
"test_no_cache": "cross-env TS_NODE_PROJECT=spec/tsconfig.json TS_NODE_CACHE=false mocha --opts spec/support/default.opts \"spec/**/*-spec.ts\"",
Expand Down Expand Up @@ -252,8 +249,23 @@
"engines": {
"npm": ">=2.0.0"
},
"typings": "./dist/package/Rx.d.ts",
"ng-update": {
"migrations": "./migrations/collection.json"
}
},
"files": [
"ajax/index.js",
"ajax/index.map",
"fetch/index.js",
"fetch/index.map",
"index.js.map",
"index.js",
"internal/**/!(*.ts)",
"LICENSE.txt",
"operators/index.js",
"operators/index.map",
"package.json",
"README.md",
"webSocket/index.js",
"webSocket/index.map"
]
}

0 comments on commit ccf0621

Please sign in to comment.