Skip to content

Commit

Permalink
Merge pull request #2879 from patrick-rodgers/version-4
Browse files Browse the repository at this point in the history
Version 4 - introduces both module type to package
  • Loading branch information
patrick-rodgers authored Dec 27, 2023
2 parents 67e87e9 + 98af8e9 commit 58662a9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 119 deletions.
20 changes: 19 additions & 1 deletion buildsystem-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
WritePackageJSON,
Publish,
PublishNightly,
CreateResolutionPackageFiles,
} from "@pnp/buildsystem";
import {
Logger,
Expand All @@ -24,7 +25,7 @@ Logger.subscribe(ConsoleListener("", {
warning: "yellow",
}));

const logLevel = LogLevel.Verbose;
const logLevel = LogLevel.Info;
const distFolder = "./dist/packages";
const commonPublishTags = ["--access", "public"];

Expand All @@ -47,6 +48,7 @@ function PnPPackage(): (b: BuildTimeline) => BuildTimeline {
CopyAssetFiles(".", ["LICENSE"])(instance);
CopyAssetFiles("./packages", ["readme.md"])(instance);
CopyPackageFiles("built", ["**/*.d.ts", "**/*.js", "**/*.js.map", "**/*.d.ts.map"])(instance);
CreateResolutionPackageFiles()(instance),
WritePackageJSON((p) => {
return Object.assign({}, p, {
type: "module",
Expand Down Expand Up @@ -80,6 +82,22 @@ function PnPPackage(): (b: BuildTimeline) => BuildTimeline {
"default": "./esm/index.js"
}
},
maintainers: [
{
name: "patrick-rodgers",
email: "[email protected]"
},
{
name: "juliemturner",
email: "[email protected]",
url: "https://julieturner.net"
},
{
name: "bcameron1231",
email: "[email protected]",
url: "https://beaucameron.net"
},
],
funding: {
type: "individual",
url: "https://github.com/sponsors/patrick-rodgers/",
Expand Down
120 changes: 4 additions & 116 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
"@azure/identity": "3.3.0",
"@azure/msal-node": "1.18.3",
"@microsoft/microsoft-graph-types": "2.38.0",
"@pnp/buildsystem": "^4.0.0-beta7",
"@pnp/buildsystem": "^4.0.0-beta8",
"@pnp/logging": "^3.21.0",
"@types/chai": "4.3.6",
"@types/chai-as-promised": "7.1.6",
"@types/core-js": "2.5.6",
"@types/findup-sync": "4.0.2",
"@types/gulp": "4.0.13",
"@types/mocha": "10.0.1",
"@types/node": "16.11.7",
"@types/webpack": "5.28.2",
Expand Down

0 comments on commit 58662a9

Please sign in to comment.