-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of individual package.json files
- Loading branch information
Showing
13 changed files
with
22 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"repository": "https://github.com/thefrontside/interactors.git", | ||
"homepage": "https://frontside.com/interactors", | ||
"author": "Frontside Engineering <[email protected]>", | ||
"license": "MIT", | ||
n "license": "MIT", | ||
"files": [ | ||
"dist/**/*", | ||
"src/**/*", | ||
|
@@ -22,7 +22,7 @@ | |
"cypress": ">=6.0.0 <13.0.0" | ||
}, | ||
"scripts": { | ||
"start": "cd ./cypres/sample/ && yarn && yarn start -Y -p 3000", | ||
"start": "cd ./cypress/sample/ && yarn && yarn start -Y -p 3000", | ||
"cypress:run": "npx cypress run", | ||
"test": "echo 'Tests are skipped for now due to a issue with some scripts' && exit 0", | ||
"test:skip": "start-server-and-test 'yarn start' http://localhost:3000 cypress:run", | ||
|
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 |
---|---|---|
|
@@ -14,10 +14,7 @@ export async function buildNpm(packageDirectory: string) { | |
with: { type: "json" }, | ||
} | ||
); | ||
const { default: packageJson } = await import( | ||
`../${packageDirectory}/package.json`, | ||
{ with: { type: "json" } } | ||
); | ||
|
||
const outDir = new URL(`../${packageDirectory}/build/npm`, import.meta.url); | ||
|
||
await emptyDir(outDir); | ||
|
@@ -44,8 +41,6 @@ export async function buildNpm(packageDirectory: string) { | |
import.meta.resolve(`../${packageDirectory}/imports-${Date.now()}.json`) | ||
); | ||
|
||
console.log({ ...denoJson.imports, ...workspaceImports }); | ||
|
||
await Deno.writeTextFile( | ||
tmpImportMapFile, | ||
JSON.stringify({ | ||
|
@@ -72,8 +67,21 @@ export async function buildNpm(packageDirectory: string) { | |
sourceMap: true, | ||
}, | ||
package: { | ||
...packageJson, | ||
version: denoJson.version, | ||
name: denoJson.name, | ||
version: denoJson.version, | ||
description: denoJson.description, | ||
license: "MIT", | ||
homepage: "https://frontside.com/interactors", | ||
author: "Frontside Engineering <[email protected]>", | ||
repository: { | ||
type: "git", | ||
url: "git+https://github.com/thefrontside/interactors.git", | ||
directory: packageDirectory, | ||
}, | ||
bugs: { | ||
url: "https://github.com/thefrontside/interactors/issues", | ||
}, | ||
sideEffects: false | ||
}, | ||
}); | ||
|
||
|