Skip to content

Commit

Permalink
chore(framework-tools): add project:tarsync script (#9766)
Browse files Browse the repository at this point in the history
While working on ESM, I wanted a better way to test framework changes in
a project. There's just a few too many gotchas with `yarn rwfw
project:sync`.

NPM packages are more or less just tarballs. Yarn can make packages into
tarballs. And it can of course install them.

So here's an alternative to `project:sync`: `project:tarsync`:

```
cd redwood-app
yarn rwfw project:tarsync
[framework] ✔ finished in 10.65 seconds
[ project ] ✔ finished in 2.67 seconds
```

Since this currently doesn't have watch mode, for now I recommend using
it when you want to be more sure of your changes.

With Nx caching, it completes in about ~15 seconds (on my machine):


https://github.com/redwoodjs/redwood/assets/32992335/eb19b6e0-f6ed-43fa-9735-3fa3f5613779

With `--verbose`:


https://github.com/redwoodjs/redwood/assets/32992335/a4309615-71e0-4b1d-b312-6cac55e40e63

## Pros

- new binaries are recognized. we're installing packages so they're
registered!


https://github.com/redwoodjs/redwood/assets/32992335/dd0b9f75-af06-4223-860a-00cd0c6a775d

- test changes to a package's dependencies. be confident that you
actually fixed that peer dependency warning:


https://github.com/redwoodjs/redwood/assets/32992335/91cb18aa-5aaa-4c0b-b4ad-7a15984a3ee4

- `yarn install` preserves changes. finally test CLI setup commands that
add packages!

- basically, test your changes as if they were published

## PR Details

While this still needs to be snappier, it was even less snappy before.

Nx knows everything about the monorepo. I wanted to leverage it. To do
that, I had to add a target (a.k.a. a script in `package.json`) that Nx
could cache to every package: `build:pack`. I also had to tell Nx that
this script 1) depends on `build` and 2) outputs a file ending in
`.tgz`. That way Nx can cache it. Hence the files changed.

In the process I learned that `lerna run` commands are really just `nx
run-many` commands, so I swapped them out.

Lastly, some `package.json`s weren't sorted so sorted those.
  • Loading branch information
jtoar authored Dec 30, 2023
1 parent 46f4644 commit 1e2877c
Show file tree
Hide file tree
Showing 66 changed files with 268 additions and 20 deletions.
13 changes: 11 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,24 @@
],
"cache": true
},

"test": {
"inputs": [
"default",
"^prod"
],
"cache": true
},

"build:pack": {
"dependsOn": ["build"],
"outputs": [
"{projectRoot}/*.tgz"
],
"cache": true
}

},

"nxCloudAccessToken": "ODMxYWQ1ZjgtMTJhNi00M2Q1LTg1YTAtNTk3NjFkNzNmZjk0fHJlYWQ=",
"parallel": 5
"nxCloudAccessToken": "ODMxYWQ1ZjgtMTJhNi00M2Q1LTg1YTAtNTk3NjFkNzNmZjk0fHJlYWQ="
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"packages/studio/web"
],
"scripts": {
"build": "lerna run build",
"build": "nx run-many -t build",
"build:clean": "node ./tasks/clean.mjs",
"build:clean:super": "git clean -fdx && yarn && yarn build",
"build:link": "node ./tasks/build-and-copy",
"build:pack": "nx run-many -t build:pack",
"build:test-project": "node ./tasks/test-project/test-project",
"build:watch": "lerna run build:watch --parallel; tsc --build",
"check": "node ./tasks/check/check.mjs",
Expand All @@ -26,14 +26,15 @@
"project:copy": "node ./tasks/framework-tools/frameworkFilesToProject.mjs",
"project:deps": "node ./tasks/framework-tools/frameworkDepsToProject.mjs",
"project:sync": "node ./tasks/framework-tools/frameworkSyncToProject.mjs",
"project:tarsync": "node ./tasks/framework-tools/tarsync.mjs",
"rebuild-test-project-fixture": "node ./tasks/test-project/rebuild-test-project-fixture.js",
"release": "node ./tasks/release/release.mjs",
"release:compare": "node ./tasks/release/compare/compare.mjs",
"release:notes": "node ./tasks/release/generateReleaseNotes.mjs",
"release:triage": "node ./tasks/release/triage/triage.mjs",
"smoke-tests": "node ./tasks/smoke-tests/smoke-tests.mjs",
"test": "lerna run test --concurrency 2 -- --colors --maxWorkers=4",
"test-ci": "lerna run test --concurrency 2 -- --colors --maxWorkers",
"test": "nx run-many -t test -- --colors --maxWorkers=4",
"test-ci": "nx run-many -t test -- --colors --maxWorkers",
"test:k6": "tsx ./tasks/k6-test/run-k6-tests.mts",
"test:types": "tstyche"
},
Expand Down
1 change: 1 addition & 0 deletions packages/api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\"",
"build:pack": "yarn pack -o redwoodjs-api-server.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build && yarn fix:permissions\"",
"fix:permissions": "chmod +x dist/index.js; chmod +x dist/watch.js",
Expand Down
1 change: 1 addition & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\"",
"build:pack": "yarn pack -o redwoodjs-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/auth0/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-auth0-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/auth0/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-auth0-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/auth0/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-auth0-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-azure-active-directory-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-azure-active-directory-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-azure-active-directory-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/clerk/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-clerk-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/clerk/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-clerk-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/clerk/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-clerk-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/custom/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-custom-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/dbAuth/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-dbauth-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/dbAuth/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-dbauth-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/dbAuth/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-dbauth-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/firebase/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-firebase-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/firebase/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-firebase-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/firebase/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-firebase-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/netlify/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-netlify-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/netlify/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-netlify-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/netlify/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-netlify-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/supabase/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-supabase-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/supabase/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-supabase-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/supabase/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-supabase-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/supertokens/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-supertokens-api.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/supertokens/setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-supertokens-setup.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth-providers/supertokens/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"build:pack": "yarn pack -o redwoodjs-auth-supertokens-web.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\"",
"build:pack": "yarn pack -o redwoodjs-auth.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"scripts": {
"build": "yarn node ./build.mjs && run build:types",
"build:pack": "yarn pack -o redwoodjs-babel-config.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,ts,tsx\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/cli-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\"",
"build:pack": "yarn pack -o redwoodjs-cli-helpers.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
9 changes: 5 additions & 4 deletions packages/cli-packages/dataMigrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@
"directory": "packages/cli-packages/storybook"
},
"license": "MIT",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"up": "./dist/bin.js"
},
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "yarn node ./build.mjs && yarn build:types",
"build:pack": "yarn pack -o redwoodjs-cli-data-migrate.tgz",
"build:types": "tsc --build --verbose",
"prepublishOnly": "NODE_ENV=production yarn build",
"test": "yarn test:unit && yarn test:dist",
"test:unit": "yarn jest src",
"test:dist": "yarn jest ./dist.test.ts"
"test:dist": "yarn jest ./dist.test.ts",
"test:unit": "yarn jest src"
},
"dependencies": {
"@redwoodjs/babel-config": "6.0.7",
Expand Down
1 change: 1 addition & 0 deletions packages/cli-packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"scripts": {
"build": "yarn node ./build.mjs && yarn build:types",
"build:pack": "yarn pack -o redwoodjs-cli-storybook.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build": "yarn build:js",
"build:clean-dist": "rimraf 'dist/**/*/__tests__' --glob",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored && yarn build:clean-dist",
"build:pack": "yarn pack -o redwoodjs-cli.tgz",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build && yarn fix:permissions\"",
"dev": "RWJS_CWD=../../__fixtures__/example-todo-main node dist/index.js",
"fix:permissions": "chmod +x dist/index.js dist/rwfw.js",
Expand Down
1 change: 1 addition & 0 deletions packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "yarn build:js",
"build:js": "babel src -d dist --extensions \".js,.ts\" --ignore \"src/**/__tests__/**\" --ignore \"src/**/__testfixtures__/**\"",
"build:pack": "yarn pack -o redwoodjs-codemods.tgz",
"build:watch": "nodemon --watch src --ignore dist --exec \"yarn build\"",
"generate:codemod": "yarn node ./tasks/generateCodemod/generateCodemod.mjs",
"prepublishOnly": "yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"scripts": {
"build": "yarn node ./build.mjs && yarn build:types",
"build:pack": "yarn pack -o redwoodjs-context.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build"
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"scripts": {
"build": "yarn build:js",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\"",
"build:pack": "yarn pack -o redwoodjs-core.tgz",
"prepublishOnly": "NODE_ENV=production yarn build",
"test": "jest",
"test:watch": "yarn test --watch"
Expand Down
1 change: 1 addition & 0 deletions packages/create-redwood-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"scripts": {
"build": "yarn node ./build.mjs",
"build:pack": "yarn pack -o create-redwood-app.tgz",
"build:watch": "nodemon --watch src --ignore dist,template --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
"test": "yarn run jest tests",
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "echo 'Nothing to build..'"
"build": "echo 'Nothing to build..'",
"build:pack": "yarn pack -o redwoodjs-eslint-config.tgz"
},
"dependencies": {
"@babel/core": "^7.22.20",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"scripts": {
"build": "yarn node ./build.mjs && yarn build:types",
"build:pack": "yarn pack -o redwoodjs-eslint-plugin.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
"prepublishOnly": "NODE_ENV=production yarn build",
Expand Down
1 change: 1 addition & 0 deletions packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"scripts": {
"build": "yarn node ./build.mjs && yarn build:types",
"build:pack": "yarn pack -o redwoodjs-fastify.tgz",
"build:types": "tsc --build --verbose",
"prepublishOnly": "NODE_ENV=production yarn build"
},
Expand Down
Loading

0 comments on commit 1e2877c

Please sign in to comment.