Skip to content

Commit

Permalink
switch from import asserts to with
Browse files Browse the repository at this point in the history
  • Loading branch information
samualtnorman committed Dec 21, 2024
1 parent fe62fd4 commit 1f9bd59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/emit-package-json.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import { mkdirSync as makeDirectorySync, writeFileSync } from "fs"
import packageJson_ from "../package.json" assert { type: "json" }
import packageJson_ from "../package.json" with { type: "json" }

const { private: _0, devDependencies: _1, pnpm: _2, scripts: _3, engines: { pnpm, ...engines }, ...packageJson } = packageJson_

Expand Down
2 changes: 1 addition & 1 deletion scripts/version-dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
import { spawnSync } from "child_process"
import * as Semver from "semver"
import packageConfig from "../package.json" assert { type: "json" }
import packageConfig from "../package.json" with { type: "json" }

const incrementedVersion = Semver.inc(packageConfig.version || "0.0.0", "patch")
const hash = spawnSync("git", [ "rev-parse", "--short", "HEAD" ], { encoding: "utf8" }).stdout.trim()
Expand Down

0 comments on commit 1f9bd59

Please sign in to comment.