Skip to content

Commit c588ea1

Browse files
fix publish warnings (#9)
* init * upd script * fix action
1 parent 75f51e3 commit c588ea1

File tree

9 files changed

+19
-32
lines changed

9 files changed

+19
-32
lines changed

β€Ž.github/workflows/on-pr-push-code-check.ymlβ€Ž

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id: check_files
1616
uses: andstor/file-existence-action@v1
1717
with:
18-
files: 'pubspec.yaml, tools/add_imports/pubspec.yaml'
18+
files: 'pubspec.yaml'
1919

2020
- name: Early exit
2121
if: steps.check_files.outputs.files_exists == 'false'
@@ -34,10 +34,6 @@ jobs:
3434
- name: Get main dependencies
3535
run: dart pub get
3636

37-
- name: Get add_imports dependencies
38-
run: dart pub get
39-
working-directory: tools/add_imports
40-
4137
- name: Run static code analysis
4238
uses: invertase/github-action-dart-analyzer@v1
4339
with:

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The main scenario is Supabase Edge Functions, but it should also work for other
3636

3737
4. Add imports to generated file by calling the script:
3838
```bash
39-
dart run tools/add_imports/bin/add_imports.dart
39+
dart run deno_postgres_interop:add_imports \
4040
--filename=example/functions/dart_edge/main.dart.js
4141
```
4242
Note: your filename may differ from the example
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
// This is a CLI tool so it is okay here.
2+
// ignore_for_file: avoid_print
3+
14
import 'dart:io';
25

3-
import 'package:add_imports/src/args.dart';
4-
import 'package:add_imports/src/config.dart';
56
import 'package:args/args.dart';
67
import 'package:collection/collection.dart';
8+
import 'package:deno_postgres_interop/src/add_imports/args.dart';
9+
import 'package:deno_postgres_interop/src/add_imports/config.dart';
710
import 'package:yaml/yaml.dart';
811

912
void main(List<String> arguments) {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This is an internal implementation so it is okay here.
2+
// ignore_for_file: public_member_api_docs
3+
14
import 'package:args/args.dart';
25

36
class Args {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This is an internal implementation so it is okay here.
2+
// ignore_for_file: public_member_api_docs
3+
14
import 'package:collection/collection.dart';
25
import 'package:yaml/yaml.dart';
36

β€Žpubspec.yamlβ€Ž

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ environment:
88
# Tested with 3.0.6, but others should work too
99
sdk: '>=3.0.0 <3.1.0'
1010

11+
dependencies:
12+
args: ^2.4.2
13+
collection: ^1.18.0
14+
yaml: ^3.1.2
15+
1116
dev_dependencies:
12-
solid_lints: 0.0.19
17+
solid_lints: ^0.0.19

β€Žtools/add_imports/.gitignoreβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtools/add_imports/analysis_options.yamlβ€Ž

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

β€Žtools/add_imports/pubspec.yamlβ€Ž

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

0 commit comments

Comments
Β (0)