alteryx / alteryx/generator-node-typescript-simple

Classlib generator should be able to work from any path

未關閉
#2 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug help wanted
主要語言
JavaScript
星號
3
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。