@langri-sha/projen-lint-synthesized 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +10 -2
- package/package.json +1 -1
- package/src/index.test.ts +18 -0
- package/src/index.ts +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@langri-sha/projen-lint-synthesized",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 01 May 2024 23:11:10 GMT",
|
|
6
|
+
"version": "0.1.1",
|
|
7
|
+
"tag": "@langri-sha/projen-lint-synthesized_v0.1.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "filip.dupanovic@gmail.com",
|
|
12
|
+
"package": "@langri-sha/projen-lint-synthesized",
|
|
13
|
+
"commit": "71b1eccec703fc7903cea5182a198e66f5c765ce",
|
|
14
|
+
"comment": "fix(lint-synthesized): Lint hidden files"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Tue, 30 Apr 2024 23:02:33 GMT",
|
|
6
21
|
"version": "0.1.0",
|
|
7
22
|
"tag": "@langri-sha/projen-lint-synthesized_v0.1.0",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @langri-sha/projen-lint-synthesized
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 01 May 2024 23:11:10 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.1.1
|
|
8
|
+
|
|
9
|
+
Wed, 01 May 2024 23:11:10 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- fix(lint-synthesized): Lint hidden files (filip.dupanovic@gmail.com)
|
|
14
|
+
|
|
7
15
|
## 0.1.0
|
|
8
16
|
|
|
9
|
-
Tue, 30 Apr 2024 23:02:
|
|
17
|
+
Tue, 30 Apr 2024 23:02:33 GMT
|
|
10
18
|
|
|
11
19
|
### Minor changes
|
|
12
20
|
|
package/package.json
CHANGED
package/src/index.test.ts
CHANGED
|
@@ -62,6 +62,24 @@ test('lints synthesized files', async () => {
|
|
|
62
62
|
expect(contents).toEqual(`module.exports = { foo: "bar" };\n`)
|
|
63
63
|
})
|
|
64
64
|
|
|
65
|
+
test('lints hidden synthesized files', async () => {
|
|
66
|
+
const { project } = setup({
|
|
67
|
+
'*': 'prettier --ignore-unknown --write',
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
let file
|
|
71
|
+
|
|
72
|
+
file = new TextFile(project, '.test.js')
|
|
73
|
+
file.addLine(`module.exports = ${JSON.stringify({ foo: 'bar' })}`)
|
|
74
|
+
|
|
75
|
+
project.synth()
|
|
76
|
+
|
|
77
|
+
file = await fs.readFile(path.join(project.outdir, '.test.js'))
|
|
78
|
+
const contents = file.toString('utf8')
|
|
79
|
+
|
|
80
|
+
expect(contents).toEqual(`module.exports = { foo: "bar" };\n`)
|
|
81
|
+
})
|
|
82
|
+
|
|
65
83
|
test('preserves file modes', async () => {
|
|
66
84
|
const { project } = setup({
|
|
67
85
|
'*': 'prettier --ignore-unknown',
|
package/src/index.ts
CHANGED