8000 fix: ship types for moduleResolution node and a LICENSE in each package by morellodev · Pull Request #327 · awesome-reveal/awesome-reveal · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"devDependencies": {
"@vitejs/plugin-vue": "^6.0.10",
"vite": "catalog:",
"vue-tsc": "^3.3.13"
"vue-tsc": "catalog:"
}
}
21 changes: 21 additions & 0 deletions packages/astro/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Dennis Morello

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"scripts": {
"build": "tsc --noEmit && vite build",
"check:package": "tsc -p test/package && publint --strict && attw --pack . --profile esm-only"
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@awesome-reveal/core": "workspace:^"
Expand Down
21 changes: 21 additions & 0 deletions packages/core/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Dennis Morello

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 9 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
],
"type": "module",
"sideEffects": false,
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"adapter": [
"dist/adapter.d.ts"
]
}
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -61,7 +69,7 @@
},
"scripts": {
"build": "tsc --noEmit && vite build",
"check:package": "tsc -p test/package && publint --strict && attw --pack . --profile esm-only"
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"engines": {
"node": ">=20.19.0"
Expand Down
21 changes: 21 additions & 0 deletions packages/react-awesome-reveal/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Dennis Morello

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 8 additions & 1 deletion packages/react-awesome-reveal/package.json
Original file line number Diff line number Diff line change
F438 Expand Up @@ -51,6 +51,13 @@
"*.css"
],
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"reveal.css": [
"dist/reveal.css.d.ts"
]
}
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -67,7 +74,7 @@
},
"scripts": {
"build": "tsc --noEmit && vite build",
"check:package": "tsc -p test/package && publint --strict && attw --pack . --profile esm-only"
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@awesome-reveal/react": "workspace:^"
Expand Down
6 changes: 6 additions & 0 deletions packages/react-awesome-reveal/test/package/dist.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ describe("dist", () => {
});
});

it("ships the LICENSE of the repository", () => {
expect(readFileSync(new URL("LICENSE", root), "utf8")).toBe(
readFileSync(new URL("../../LICENSE", root), "utf8"),
);
});

describe("skills", () => {
// v4 users approve the skills of this package, not those of @awesome-reveal/react.
it("ships the migrating-from-v4 skill of @awesome-reveal/react unchanged", () => {
Expand Down
21 changes: 21 additions & 0 deletions packages/react/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Dennis Morello

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission no 10BC8 tice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
11 changes: 9 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"*.css"
],
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"reveal.css": [
"dist/reveal.css.d.ts"
]
}
},
"imports": {
"#reveal-style.css": {
"node": {
Expand Down Expand Up @@ -79,7 +86,7 @@
},
"scripts": {
"build": "tsc --noEmit && vite build",
"check:package": "tsc -p test/package && publint --strict && attw --pack . --profile esm-only"
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@awesome-reveal/core": "workspace:^"
Expand All @@ -89,7 +96,7 @@
"@types/react-dom": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"vitest-browser-react": "^2.3.0"
"vitest-browser-react": "catalog:"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/test-utils/src/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export function describeDocs(root: URL, { jsx, skipFences }: DocsOptions = {}) {
return readFileSync(new URL(`${skill}/SKILL.md`, skillsDir), "utf8");
}

// npm adds a LICENSE file only from the package folder, not from the workspace root.
it("ships the LICENSE of the repository", () => {
expect(readFileSync(new URL("LICENSE", root), "utf8")).toBe(
readFileSync(new URL("../../LICENSE", root), "utf8"),
);
});

it("ships the skills folder, where pnpm links skills from", () => {
expect(skills.length).toBeGreaterThan(0);
expect(pkg.files).toContain("skills");
Expand Down
21 changes: 21 additions & 0 deletions packages/vue/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Dennis Morello

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 10 additions & 3 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"*.css"
],
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"reveal.css": [
"dist/reveal.css.d.ts"
]
}
},
"imports": {
"#reveal-style.css": {
"node": {
Expand Down Expand Up @@ -79,15 +86,15 @@
},
"scripts": {
"build": "tsc --noEmit && vite build",
"check:package": "tsc -p test/package && publint --strict && attw --pack . --profile esm-only"
"check:package": "tsc -p test/package && publint --strict && attw --pack . --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@awesome-reveal/core": "workspace:^"
},
"devDependencies": {
"vitest-browser-vue": "^3.1.0",
"vitest-browser-vue": "catalog:",
"vue": "catalog:",
"vue-tsc": "^3.3.13"
"vue-tsc": "catalog:"
},
"peerDependencies": {
"vue": "^3.5.0"
Expand Down
17 changes: 13 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ catalog:
react: ^19.3.1
react-dom: ^19.3.1
vite: ^8.3.4
vitest-browser-react: ^2.3.0
vitest-browser-vue: ^3.1.0
vue: ^3.5.44
vue-tsc: ^3.3.13
Loading
0