alteryx / alteryx/generator-node-typescript-simple

Classlib generator should be able to work from any path

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug help wanted
Ngôn ngữ chính
JavaScript
Star
3
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

The classlib generator only works at the src directory.

```sh
src/src-test-tester.ts: SyntaxError: '{' expected. (1:14)
> 1 | export class .\src\test\tester {
| ^
2 | private greeting: string;
3 |
4 | constructor(message: string) {
test/greeter-tests.ts 8ms
test/index-tests.ts 5ms
test/logger-tests.ts 2ms
test/src-test-tester-tests.ts
test/src-test-tester-tests.ts: SyntaxError: Identifier expected. (1:10)
> 1 | import { .\src\test\tester } from '../src/src-test-tester';
| ^
2 | import * as chai from 'chai';
3 |
4 | const expect = chai.expect;
error Command failed with exit code 2.
error Command failed with exit code 1.
```

You should be able to run the classlib generator from any path and have it generate valid import statements

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.