Skip to content

Commit a2600ba

Browse files
committed
feat(npm): trial removing node entry file
1 parent 350fbb1 commit a2600ba

File tree

6 files changed

+11
-50
lines changed

6 files changed

+11
-50
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "syncpack"
3-
version = "14.0.0-alpha.34"
3+
version = "14.0.0-canary.0"
44
authors = ["Jamie Mason <jamie@foldleft.io>"]
55
edition = "2021"
66
homepage = "https://jamiemason.github.io/syncpack"

justfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ create-npm-binary-package-json:
310310
const pkg = require(srcPath);
311311
const nextPkg = {
312312
...pkg,
313-
bin: undefined,
313+
bin: {
314+
syncpack: "./bin/syncpack",
315+
},
314316
contributors: undefined,
315317
dependencies: undefined,
316318
devDependencies: undefined,
@@ -334,7 +336,6 @@ create-npm-root-package:
334336
rm -rf "$NODE_ROOT_PKG_DIR_PATH"
335337
mkdir -p "$NODE_ROOT_PKG_DIR_PATH"
336338
cp README.md "$NODE_ROOT_PKG_DIR_PATH/README.md"
337-
cp npm/index.cjs "$NODE_ROOT_PKG_DIR_PATH/index.cjs"
338339
just build-npm-types
339340
just create-npm-root-package-json
340341

@@ -356,10 +357,8 @@ create-npm-root-package-json:
356357
const pkg = require(srcPath);
357358
const nextPkg = {
358359
...pkg,
360+
bin: undefined,
359361
devDependencies: undefined,
360-
bin: {
361-
syncpack: "./index.cjs",
362-
},
363362
optionalDependencies: {
364363
"syncpack-linux-x64": pkg.version,
365364
"syncpack-linux-x64-musl": pkg.version,
@@ -393,12 +392,12 @@ publish-npm-binary-package:
393392
set -euxo pipefail
394393

395394
cd "$NODE_PKG_DIR_PATH"
396-
npm publish --access public --tag alpha
395+
npm publish --access public --tag canary
397396

398397
# Publish the parent npm package
399398
publish-npm-root-package:
400399
#!/usr/bin/env bash
401400
set -euxo pipefail
402401

403402
cd "$NODE_ROOT_PKG_DIR_PATH"
404-
npm publish --access public --tag alpha
403+
npm publish --access public --tag canary

npm/index.cjs

Lines changed: 0 additions & 38 deletions
This file was deleted.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "syncpack",
33
"description": "Consistent dependency versions in large JavaScript Monorepos",
4-
"version": "14.0.0-alpha.34",
4+
"version": "14.0.0-canary.0",
55
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",
66
"bugs": "https://github.com/JamieMason/syncpack/issues",
77
"contributors": [

0 commit comments

Comments
 (0)