-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support in @neon-rs/manifest for optional prefixes in npm prebuil…
…d package names - update optional `{ neon: { type: "library", prefix?: string, ... } }` field to package.json - update codegen of load.cts to load package name with prefix if needed
- Loading branch information
Showing
6 changed files
with
84 additions
and
5 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
src/manifest/fixtures/empty-platforms-with-prefix/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "empty-platforms-with-prefix", | ||
"private": false, | ||
"version": "0.1.17", | ||
"description": "A simple Neon library with a prefix and no platforms.", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./types/index.d.mts", | ||
"default": "./lib/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./types/index.d.cts", | ||
"default": "./lib/index.cjs" | ||
} | ||
} | ||
}, | ||
"types": "./types/index.d.cts", | ||
"main": "./lib/index.cjs", | ||
"files": [ | ||
"lib/index.cjs", | ||
"lib/load.cjs", | ||
"lib/index.mjs", | ||
"types/index.d.cts", | ||
"types/index.d.mts" | ||
], | ||
"scripts": { | ||
"test": "cargo test", | ||
"cargo-build": "cargo build --message-format=json > cargo.log", | ||
"cross-build": "cross build --message-format=json > cross.log", | ||
"postcargo-build": "neon dist -v < cargo.log", | ||
"postcross-build": "neon dist -v -m /target < cross.log", | ||
"debug": "npm run cargo-build --", | ||
"build": "npm run cargo-build -- --release", | ||
"cross": "npm run cross-build -- --release", | ||
"prepack": "neon update-platforms -v 2>update-platforms.log", | ||
"version": "neon bump -v --binaries platforms" | ||
}, | ||
"author": "David Herman <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@neon-rs/cli": "^0.0.186" | ||
}, | ||
"dependencies": { | ||
"@neon-rs/load": "^0.0.186" | ||
}, | ||
"neon": { | ||
"type": "library", | ||
"org": "@dherman", | ||
"prefix": "empty-platforms-with-prefix-", | ||
"platforms": {}, | ||
"load": "./lib/load.cjs" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,16 @@ | |
"version": "0.1.81", | ||
"workspaces": [ | ||
"cli", | ||
"install" | ||
"install", | ||
"manifest" | ||
], | ||
"author": "Dave Herman <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"dist": "npm run dist:cli && npm run dist:install", | ||
"dist": "npm run dist:cli && npm run dist:install && npm run dist:manifest", | ||
"dist:cli": "cd cli && npm run dist", | ||
"dist:install": "cd install && npm run dist", | ||
"dist:manifest": "cd manifest && npm run dist", | ||
"version": "node ../dist/cli bump -v --workspaces" | ||
}, | ||
"dependencies": { | ||
|