Skip to content

Commit

Permalink
Merge pull request #433 from medz/workspace
Browse files Browse the repository at this point in the history
project to pub workspace
  • Loading branch information
medz authored Oct 9, 2024
2 parents de3aa62 + 3acf8cd commit 59c626e
Show file tree
Hide file tree
Showing 20 changed files with 325 additions and 840 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.DS_Store
.env
.idea/
.vscode/
.dart_tool/
prisma-query-engine*
generated_*/
node_modules/
Expand Down
1 change: 0 additions & 1 deletion docs-example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
node_modules/
prisma/generated_*
prisma-query-engine
pubspec.lock

# Keep environment variables out of version control
.env
10 changes: 7 additions & 3 deletions docs-example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: prisma_dart_client_example
name: prisma_dart_docs_example
description: Prisma Dart Client Example
publish_to: "none"
version: 1.0.0
publish_to: "none"
resolution: workspace
repository: https://github.com/medz/prisma-dart
homepage: https://github.com/medz/prisma-dart/tree/master/example

environment:
sdk: ^3.2.0
sdk: ^3.5.0

dependencies:
orm:
path: ../packages/orm

dev_dependencies:
lints: ^5.0.0
test: ^1.24.8
11 changes: 4 additions & 7 deletions examples/flutter_with_orm/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: flutter_with_orm
name: prisma_flutter_example
description: "Demo using Prisma ORM in Flutter"
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
Expand All @@ -18,8 +18,9 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1

resolution: workspace
environment:
sdk: ">=3.4.1 <4.0.0"
sdk: ^3.5.0

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand All @@ -41,10 +42,6 @@ dependencies:
path_provider: ^2.1.4
path: ^1.9.0

dependency_overrides:
orm:
path: ../../packages/orm

dev_dependencies:
flutter_test:
sdk: flutter
Expand All @@ -54,7 +51,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^3.0.0
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
Loading

0 comments on commit 59c626e

Please sign in to comment.