Skip to content

型定義パッケージのテンプレート

Notifications You must be signed in to change notification settings

Suyama-Daichi/types-template

Repository files navigation

types-template

型定義パッケージのテンプレート

How to use

Generating PAT granted read:packages

for macOS

settings.json

}
  //
  "terminal.integrated.env.osx": {
    "GITHUB_PACKAGE_TOKEN": "ghp_************************************"
  }
  //
}
for Windows

settings.json

}
  //
  "terminal.integrated.env.windows": {
    "GITHUB_PACKAGE_TOKEN": "ghp_************************************"
  }
  //
}

Add token to config

if use npm
//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGE_TOKEN}
@suyama-daichi:registry=https://npm.pkg.github.com/
if use yarn
yarnPath: .yarn/releases/yarn-3.2.1.cjs
nodeLinker: node-modules

npmScopes:
  'suyama-daichi':
    npmAlwaysAuth: true
    npmRegistryServer: 'https://npm.pkg.github.com/'
    npmPublishRegistry: 'https://npm.pkg.github.com/'
    npmAuthToken: ${GITHUB_PACKAGE_TOKEN}

install

if use npm
npm install -D @suyama-daichi/sample-types
if use yarn
yarn add -D @suyama-daichi/sample-types

About

型定義パッケージのテンプレート

Topics

Resources

Stars

Watchers

Forks

Packages